您尚未登录。

楼主 # 2022-02-16 20:39:28

wealiron
会员
注册时间: 2022-01-26
已发帖子: 4
积分: 2

请教大咖:Licheepi zero 内核加载不停复位问题。谢谢!

出现下面不停复位,是什么问题?

U-Boot 2017.01-rc2 (Feb 14 2022 - 16:51:39 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  2  1  0
SF: Detected xt25f128b 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 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffc30 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero (root@lfq-virtual-machine) (gcc version 12.0.1 20220205 (experimental) [master revision f49b8d25b1ff96e9cd09326666cc510b3a3accde] (GCC)) #2 SMP Mon Feb 14 11:08:14 CST 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3f5f000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 55092K/65536K available (6144K kernel code, 217K rwdata, 1444K rodata, 1024K init, 263K bss, 10444K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3de68 - 0xc0a7fcd4   ( 264 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]     RCU event tracing is enabled.
[    0.000000]     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000177] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000408] Console: colour dummy device 80x30
[    0.000449] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000463] pid_max: default: 32768 minimum: 301
[    0.000597] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000611] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001192] CPU: Testing write buffer coherency: ok
[    0.001565] /cpus/cpu@0 missing clock-frequency property
[    0.001587] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002029] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002205] Hierarchical SRCU implementation.
[    0.002713] smp: Bringing up secondary CPUs ...
[    0.002727] smp: Brought up 1 node, 1 CPU
[    0.002736] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002742] CPU: All CPU(s) started in SVC mode.
[    0.003516] devtmpfs: initialized
[    0.006305] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006585] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006615] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006774] pinctrl core: initialized pinctrl subsystem
[    0.007638] random: get_random_u32 called from bucket_table_alloc+0x104/0x22c with crng_init=0
[    0.007771] NET: Registered protocol family 16
[    0.008160] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009175] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009193] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021438] SCSI subsystem initialized
[    0.021728] usbcore: registered new interface driver usbfs
[    0.021814] usbcore: registered new interface driver hub
[    0.021911] usbcore: registered new device driver usb
[    0.022144] pps_core: LinuxPPS API ver. 1 registered
[    0.022156] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022179] PTP clock support registered
[    0.022399] Advanced Linux Sound Architecture Driver Initialized.
[    0.024079] clocksource: Switched to clocksource arch_sys_counter
[    0.034299] NET: Registered protocol family 2
[    0.034846] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.034880] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.034901] TCP: Hash tables configured (established 1024 bind 1024)
[    0.035028] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.035077] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.035280] NET: Registered protocol family 1
[    0.035860] RPC: Registered named UNIX socket transport module.
[    0.035880] RPC: Registered udp transport module.
[    0.035887] RPC: Registered tcp transport module.
[    0.035893] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.037814] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.046746] NFS: Registering the id_resolver key type
[    0.046795] Key type id_resolver registered
[    0.046803] Key type id_legacy registered
[    0.046842] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[    0.048386] random: fast init done
[    0.051334] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.051357] io scheduler noop registered
[    0.051364] io scheduler deadline registered
[    0.051622] io scheduler cfq registered (default)
[    0.051634] io scheduler mq-deadline registered
[    0.051641] io scheduler kyber registered
[    0.055931] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.122830] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.126274] console [ttyS0] disabled
[    0.146538] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.740550] console [ttyS0] enabled
[    0.748076] m25p80 spi32766.0: unrecognized JEDEC id bytes: 0b, 40, 18
[    0.754729] m25p80: probe of spi32766.0 failed with error -2
[    0.760755] libphy: Fixed MDIO Bus: probed
[    0.765266] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.771793] ehci-platform: EHCI generic platform driver
[    0.777310] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.782923] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.790894] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.824122] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.831293] hub 1-0:1.0: USB hub found
[    0.835239] hub 1-0:1.0: 1 port detected
[    0.839713] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.846015] ohci-platform: OHCI generic platform driver
[    0.851534] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.858254] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.866215] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    0.939147] hub 2-0:1.0: USB hub found
[    0.942980] hub 2-0:1.0: 1 port detected
[    0.950442] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.960151] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.967049] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.971580] i2c /dev entries driver
[    0.976479] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    0.986000] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.054307] sunxi-mmc 1c0f000.mmc: base:0xc48ba000 irq:23
[    1.061317] usbcore: registered new interface driver usbhid
[    1.066987] usbhid: USB HID core driver
[    1.072629] NET: Registered protocol family 17
[    1.077320] Key type dns_resolver registered
[    1.081689] Registering SWP/SWPB emulation handler
[    1.093351] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.104737] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.110506] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.121743] hub 3-0:1.0: USB hub found
[    1.125744] hub 3-0:1.0: 1 port detected
[    1.130768] using random self ethernet address
[    1.135326] using random host ethernet address
[    1.140727] usb0: HOST MAC 76:be:1f:8b:32:df
[    1.145195] usb0: MAC d6:06:30:3f:a9:6b
[    1.149080] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.156600] g_cdc gadget: g_cdc ready
[    1.160588] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 02:10:05 UTC (7805)
[    1.169078] vcc3v0: disabling
[    1.172054] vcc5v0: disabling
[    1.175072] ALSA device list:
[    1.178037]   No soundcards found.
[    1.182357] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[    1.190057] Please append a correct "root=" boot option; here are the available partitions:
[    1.198436] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.206782] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero #2
[    1.213991] Hardware name: Allwinner sun8i Family
[    1.218727] [<c010e068>] (unwind_backtrace) from [<c010ac28>] (show_stack+0x10/0x14)
[    1.226470] [<c010ac28>] (show_stack) from [<c068f42c>] (dump_stack+0x80/0x94)
[    1.233689] [<c068f42c>] (dump_stack) from [<c011b2c4>] (panic+0xd8/0x234)
[    1.240565] [<c011b2c4>] (panic) from [<c0901220>] (mount_block_root+0x1b8/0x248)
[    1.248042] [<c0901220>] (mount_block_root) from [<c090150c>] (prepare_namespace+0x150/0x194)
[    1.256559] [<c090150c>] (prepare_namespace) from [<c0900e0c>] (kernel_init_freeable+0x1b4/0x1c4)
[    1.265422] [<c0900e0c>] (kernel_init_freeable) from [<c06a1150>] (kernel_init+0x8/0x108)
[    1.273592] [<c06a1150>] (kernel_init) from [<c0107238>] (ret_from_fork+0x14/0x3c)
[    1.281163] Rebooting in 5 seconds..

U-Boot SPL 2017.01-rc2 (Feb 14 2022 - 16:51:39)
DRAM: 64 MiB
Trying to boot from sunxi SPI

U-Boot 2017.01-rc2 (Feb 14 2022 - 16:51:39 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000

离线

#1 2022-02-16 22:41:50

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 276
积分: 254

Re: 请教大咖:Licheepi zero 内核加载不停复位问题。谢谢!

[    0.748076] m25p80 spi32766.0: unrecognized JEDEC id bytes: 0b, 40, 18
[    0.754729] m25p80: probe of spi32766.0 failed with error -2


你的FLASH ID没有再表中

离线

楼主 #2 2022-02-17 09:32:38

wealiron
会员
注册时间: 2022-01-26
已发帖子: 4
积分: 2

Re: 请教大咖:Licheepi zero 内核加载不停复位问题。谢谢!

谢谢!
是flash_info spi_nor_ids[]表吗?这个表已经加了flash的ID。
后面还有错,与这个有没有关系
[    1.182357] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[    1.190057] Please append a correct "root=" boot option; here are the available partitions:
[    1.198436] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)

离线

楼主 #3 2022-02-17 14:12:39

wealiron
会员
注册时间: 2022-01-26
已发帖子: 4
积分: 2

Re: 请教大咖:Licheepi zero 内核加载不停复位问题。谢谢!

ubuntu 说:

[    0.748076] m25p80 spi32766.0: unrecognized JEDEC id bytes: 0b, 40, 18
[    0.754729] m25p80: probe of spi32766.0 failed with error -2


你的FLASH ID没有再表中

重新检查了下,表中的ID写错了1位:0b4018写出了0b4008了。

这个问题解决了后,出现下面问题:
[    3.669876] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[    3.678356] jffs2: empty_blocks 0, bad_blocks 0, c->nr_blocks 2800
[    3.686864] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -5

这个是根文件系统有问题吗?

离线

页脚

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

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