您尚未登录。

楼主 #1 2019-09-27 14:51:00

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

[licheepi-nano]linux 5.2 开机后卡住

开机log如下:



U-Boot SPL 2018.01-05679-g013ca45 (Sep 25 2019 - 16:44:44)
DRAM: 32 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 22
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI


U-Boot 2018.01-05679-g013ca45 (Sep 25 2019 - 16:44:44 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e5f000, end 80e64047 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano+ (x@x-HP-Z600) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #6 Fri Sep 27 14:40:33 CST 2019
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 23752K/32768K available (5120K kernel code, 210K rwdata, 1332K rodata, 1024K init, 221K bss, 9016K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x244/0x40c with crng_init=0
[    0.000054] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000761] Console: colour dummy device 80x30
[    0.001372] printk: console [tty0] enabled
[    0.001474] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070292] pid_max: default: 32768 minimum: 301
[    0.070767] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070849] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072645] CPU: Testing write buffer coherency: ok
[    0.075007] Setting up static identity map for 0x80100000 - 0x80100058
[    0.077536] devtmpfs: initialized
[    0.083961] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.084143] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.084540] pinctrl core: initialized pinctrl subsystem
[    0.088121] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.090540] cpuidle: using governor menu
[    0.144908] SCSI subsystem initialized
[    0.145392] usbcore: registered new interface driver usbfs
[    0.145640] usbcore: registered new interface driver hub
[    0.145939] usbcore: registered new device driver usb
[    0.146524] pps_core: LinuxPPS API ver. 1 registered
[    0.146617] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.147267] Advanced Linux Sound Architecture Driver Initialized.
[    0.147689] clocksource: Switched to clocksource timer
[    0.180359] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.182521] Initialise system trusted keyrings
[    0.183184] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.201834] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.202552] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.210744] Key type asymmetric registered
[    0.210865] Asymmetric key parser 'x509' registered
[    0.211088] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.211177] io scheduler mq-deadline registered
[    0.211224] io scheduler kyber registered
[    0.223696] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.422689] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.429023] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.451250] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    0.784209] printk: console [ttyS0] enabled
[    0.792600] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.809588] panel-simple panel: panel supply power not found, using dummy regulator
[    0.819223] SCSI Media Changer driver v0.25
[    0.824997] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator

离线

楼主 #2 2019-09-27 15:00:02

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

Re: [licheepi-nano]linux 5.2 开机后卡住

clean后重新编译linux,开机后卡在[    1.435954] Waiting for root device /dev/mtdblock3...

rootfs是jffs2的linux中也配置编译了jffs2文件系统。。。


U-Boot 2018.01-05679-g013ca45 (Sep 25 2019 - 16:44:44 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e5f000, end 80e63ddc ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano+ (x@x-HP-Z600) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #7 Fri Sep 27 14:53:08 CST 2019
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Memory: 23760K/32768K available (5120K kernel code, 210K rwdata, 1332K rodata, 1024K init, 221K bss, 9008K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x244/0x40c with crng_init=0
[    0.000052] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000135] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000746] Console: colour dummy device 80x30
[    0.001354] printk: console [tty0] enabled
[    0.001454] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070287] pid_max: default: 32768 minimum: 301
[    0.070756] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070846] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072657] CPU: Testing write buffer coherency: ok
[    0.075005] Setting up static identity map for 0x80100000 - 0x80100058
[    0.077568] devtmpfs: initialized
[    0.083606] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.083785] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.084169] pinctrl core: initialized pinctrl subsystem
[    0.087754] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.089976] cpuidle: using governor menu
[    0.143816] SCSI subsystem initialized
[    0.144307] usbcore: registered new interface driver usbfs
[    0.144552] usbcore: registered new interface driver hub
[    0.144815] usbcore: registered new device driver usb
[    0.145412] pps_core: LinuxPPS API ver. 1 registered
[    0.145503] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146173] Advanced Linux Sound Architecture Driver Initialized.
[    0.146593] clocksource: Switched to clocksource timer
[    0.179199] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.181517] Initialise system trusted keyrings
[    0.182261] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.200763] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.201499] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.209705] Key type asymmetric registered
[    0.209830] Asymmetric key parser 'x509' registered
[    0.210062] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.210155] io scheduler mq-deadline registered
[    0.210200] io scheduler kyber registered
[    0.222643] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.422433] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.428785] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.451002] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[    0.783972] printk: console [ttyS0] enabled
[    0.792256] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.811008] SCSI Media Changer driver v0.25
[    0.816960] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.830300] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.836123] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.842705] Creating 4 MTD partitions on "spi0.0":
[    0.847648] 0x000000000000-0x000000100000 : "u-boot"
[    0.854394] 0x000000100000-0x000000110000 : "dtb"
[    0.860888] 0x000000110000-0x000000510000 : "kernel"
[    0.867568] 0x000000510000-0x000001000000 : "rootfs"
[    0.874589] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.881351] ehci-platform: EHCI generic platform driver
[    0.887050] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.893356] ohci-platform: OHCI generic platform driver
[    0.899197] usbcore: registered new interface driver usb-storage
[    0.906039] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[    0.915184] i2c /dev entries driver
[    0.922867] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.961192] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.970753] usbcore: registered new interface driver usbhid
[    0.976412] usbhid: USB HID core driver
[    0.999447] Loading compiled-in X.509 certificates
[    1.015109] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.026863] sun4i-backend 1e60000.display-backend: Couldn't find matching frontend, frontend features disabled
[    1.037875] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0638fd4)
[    1.047043] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0637c2c)
[    1.054797] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.061528] [drm] No driver support for vblank timestamp query.
[    1.068883] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.324638] Console: switching to colour frame buffer device 100x30
[    1.378082] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.400307] ALSA device list:
[    1.417679]   #0: Loopback 1
[    1.435954] Waiting for root device /dev/mtdblock3...
[    2.237519] random: fast init done

离线

#3 2019-09-27 15:02:45

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: [licheepi-nano]linux 5.2 开机后卡住

是不是没开串口输出啊,rootfs的etc/inittab看一下

离线

#4 2019-09-27 15:03:55

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: [licheepi-nano]linux 5.2 开机后卡住

看看有没有这句console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL

离线

楼主 #5 2019-09-27 15:05:30

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

Re: [licheepi-nano]linux 5.2 开机后卡住

zero 说:

看看有没有这句console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL

shell还没开起来,进去看不了

离线

#6 2019-09-27 15:07:36

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: [licheepi-nano]linux 5.2 开机后卡住

在你烧录之前的文件里面看

离线

#7 2019-09-27 15:08:15

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: [licheepi-nano]linux 5.2 开机后卡住

压缩包解压一下看看

离线

#8 2019-09-27 15:10:51

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: [licheepi-nano]linux 5.2 开机后卡住

CONFIG_MTD_BLOCK

这个选项开了吗?

看 log mtd 分区已经生成。





离线

楼主 #9 2019-09-27 15:28:32

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

Re: [licheepi-nano]linux 5.2 开机后卡住

晕哥 说:

CONFIG_MTD_BLOCK

这个选项开了吗?

看 log mtd 分区已经生成。


勾上并进入 Device Drivers -> Memory Technology Device (MTD) support,选上下面两项:

    Command line partitioning table parsing #为了解析内核参数传过来的分区信息,如果用设备树应该可以不选

    Caching block device access to MTD devices  #为了生成/dev/mtdblock*设备,不选会报错

这2项漏掉了。clean后重编可以开进去。

离线

楼主 #10 2019-09-27 15:36:03

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

Re: [licheepi-nano]linux 5.2 开机后卡住

用linux 5.2巨卡

离线

#11 2019-09-27 15:45:18

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: [licheepi-nano]linux 5.2 开机后卡住

应该不至于吧





离线

楼主 #12 2019-09-27 18:05:46

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

Re: [licheepi-nano]linux 5.2 开机后卡住

一堆的这个log是什么问题?


[    6.456488] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002f5f8: Read 0x04024088, calculated 0xd7622e1b
[    6.507023] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002f704: Read 0x05001009, calculated 0x647954da
[    6.557683] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002f80c: Read 0x4980119c, calculated 0xaab1750d
[    6.608434] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002f934: Read 0x44025009, calculated 0xb70698ba
[    6.659018] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fa64: Read 0x4d804000, calculated 0x1ee426b3
[    6.709563] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fb9c: Read 0x44824119, calculated 0xb5ce878a
[    6.760110] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fcb8: Read 0x05825008, calculated 0xc682349b
[    6.810736] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fdb8: Read 0x04025118, calculated 0x754f9d89
[    6.861438] jffs2: jffs2_scan_inode_node(): CRC failed on node at 0x0002fec0: Read 0x0582419d, calculated 0xc6e68d2e

离线

楼主 #13 2019-09-27 18:06:18

luckymist
会员
注册时间: 2019-09-18
已发帖子: 50
积分: 50

Re: [licheepi-nano]linux 5.2 开机后卡住

晕哥 说:

应该不至于吧

我的板上好卡。不知道什么原因。

离线

#14 2019-09-27 18:17:16

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: [licheepi-nano]linux 5.2 开机后卡住

这个是你文件系统的问题





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn