您尚未登录。

楼主 # 2023-03-11 00:23:59

william198757
会员
注册时间: 2019-11-22
已发帖子: 7
积分: 12

Nano 加载文件系统报错,log如下,是什么问题?

U-Boot 2018.01-05679-g013ca45-dirty (Mar 09 2023 - 08:05:58 -0800) Allwinner Technology

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

Setting up a 800x480 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected xt25f128b with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 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 80e63f5a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.2.0-licheepi-nano+ (william@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #184 Thu Mar 9 07:39:05 PST 2023
[    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: console=ttyS0,115200 earlyprintk panic=5 rootwait; mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) 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: 25832K/32768K available (3550K kernel code, 182K rwdata, 1116K rodata, 1024K init, 215K bss, 6936K 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+0x250/0x3c4 with crng_init=0
[    0.000047] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000128] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000704] Console: colour dummy device 80x30
[    0.000804] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070249] pid_max: default: 32768 minimum: 301
[    0.070696] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070743] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072302] CPU: Testing write buffer coherency: ok
[    0.074342] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076772] devtmpfs: initialized
[    0.083508] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.083577] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083851] pinctrl core: initialized pinctrl subsystem
[    0.086445] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088565] cpuidle: using governor menu
[    0.142078] SCSI subsystem initialized
[    0.142397] usbcore: registered new interface driver usbfs
[    0.142519] usbcore: registered new interface driver hub
[    0.142711] usbcore: registered new device driver usb
[    0.143189] videodev: Linux video capture interface: v2.00
[    0.144199] clocksource: Switched to clocksource timer
[    0.178907] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.194981] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.195631] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[    0.202593] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.202637] io scheduler mq-deadline registered
[    0.202655] io scheduler kyber registered
[    0.215373] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.416982] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.424771] printk: console [ttyS0] disabled
[    0.445046] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.739162] printk: console [ttyS0] enabled
[    0.746125] SCSI Media Changer driver v0.25
[    0.751793] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.758461] ehci-platform: EHCI generic platform driver
[    0.763981] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.770309] ohci-platform: OHCI generic platform driver
[    0.775995] usbcore: registered new interface driver usb-storage
[    0.782365] udc-core: couldn't find an available UDC - added [g_webcam] to list of pending drivers
[    0.791834] i2c /dev entries driver
[    0.797204] vivid-000: using single planar format API
[    0.824697] vivid-000: CEC adapter cec0 registered for HDMI input 0
[    0.831643] vivid-000: V4L2 capture device registered as video0
[    0.838705] vivid-000: CEC adapter cec1 registered for HDMI output 0
[    0.845794] vivid-000: V4L2 output device registered as video1
[    0.852142] vivid-000: V4L2 capture device registered as vbi0, supports raw and sliced VBI
[    0.861116] vivid-000: V4L2 output device registered as vbi1, supports raw and sliced VBI
[    0.870024] vivid-000: V4L2 capture device registered as swradio0
[    0.876835] vivid-000: V4L2 receiver device registered as radio0
[    0.883340] vivid-000: V4L2 transmitter device registered as radio1
[    0.891027] vim2m vim2m.0: Device registered as /dev/video2
[    0.898010] vicodec vicodec.0: Device 'stateful-encoder' registered as /dev/video3
[    0.906276] vicodec vicodec.0: Device 'stateful-decoder' registered as /dev/video4
[    0.914500] vicodec vicodec.0: Device 'stateless-decoder' registered as /dev/video5
[    0.922539] usbcore: registered new interface driver uvcvideo
[    0.928399] USB Video Class driver (1.1.1)
[    0.932494] gspca_main: v2.14.0 registered
[    0.936645] cpia2: V4L-Driver for Vision CPiA2 based cameras v3.0.1
[    0.943028] usbcore: registered new interface driver cpia2
[    0.977446] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.986420] usbcore: registered new interface driver usbhid
[    0.991996] usbhid: USB HID core driver
[    1.010683] mv64xxx_i2c 1c27000.i2c: ignoring dependency for device, assuming no driver
[    1.021465] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin PE9 already requested by 0-0014; cannot claim for 1c20800.pinctrl:137
[    1.032794] suniv-f1c100s-pinctrl 1c20800.pinctrl: pin-137 (1c20800.pinctrl:137) status -22
[    1.041269] ------------[ cut here ]------------
[    1.045996] WARNING: CPU: 0 PID: 38 at lib/refcount.c:190 refcount_sub_and_test_checked+0x98/0xb4
[    1.054897] refcount_t: underflow; use-after-free.
[    1.059692] CPU: 0 PID: 38 Comm: kworker/0:2 Not tainted 5.2.0-licheepi-nano+ #184
[    1.067281] Hardware name: Allwinner suniv Family
[    1.072013] Workqueue: events deferred_probe_work_func
[    1.077260] [<c0107f98>] (unwind_backtrace) from [<c0105c04>] (show_stack+0x10/0x14)
[    1.085103] [<c0105c04>] (show_stack) from [<c0110680>] (__warn+0xc8/0xf0)
[    1.091990] [<c0110680>] (__warn) from [<c01106ec>] (warn_slowpath_fmt+0x44/0x6c)
[    1.099553] [<c01106ec>] (warn_slowpath_fmt) from [<c029cd3c>] (refcount_sub_and_test_checked+0x98/0xb4)
[    1.109120] [<c029cd3c>] (refcount_sub_and_test_checked) from [<c02b2504>] (sunxi_pmx_free+0x38/0x4c)
[    1.118413] [<c02b2504>] (sunxi_pmx_free) from [<c02af7e4>] (pin_free+0x90/0xf8)
[    1.125875] [<c02af7e4>] (pin_free) from [<c02b0290>] (pinmux_disable_setting+0xa8/0x15c)
[    1.134055] [<c02b0290>] (pinmux_disable_setting) from [<c02acfc0>] (pinctrl_free+0xb4/0x138)
[    1.142636] [<c02acfc0>] (pinctrl_free) from [<c03120a8>] (release_nodes+0x194/0x1e4)
[    1.150540] [<c03120a8>] (release_nodes) from [<c030ef24>] (really_probe+0x194/0x2cc)
[    1.158440] [<c030ef24>] (really_probe) from [<c030f3e0>] (driver_probe_device+0x5c/0x16c)
[    1.166760] [<c030f3e0>] (driver_probe_device) from [<c030da24>] (bus_for_each_drv+0x54/0xb8)
[    1.175341] [<c030da24>] (bus_for_each_drv) from [<c030f240>] (__device_attach+0xc8/0x13c)
[    1.183603] [<c030f240>] (__device_attach) from [<c030dc08>] (bus_probe_device+0x84/0x8c)
[    1.191834] [<c030dc08>] (bus_probe_device) from [<c030c4e4>] (device_add+0x384/0x5fc)
[    1.199817] [<c030c4e4>] (device_add) from [<c03ab848>] (i2c_new_client_device+0x118/0x2b8)
[    1.208226] [<c03ab848>] (i2c_new_client_device) from [<c03ac4bc>] (i2c_new_device+0x8/0x14)
[    1.216729] [<c03ac4bc>] (i2c_new_device) from [<c03ae81c>] (of_i2c_register_devices+0xbc/0x130)
[    1.225575] [<c03ae81c>] (of_i2c_register_devices) from [<c03ac020>] (i2c_register_adapter+0x160/0x408)
[    1.235028] [<c03ac020>] (i2c_register_adapter) from [<c03b0cd0>] (mv64xxx_i2c_probe+0x19c/0x540)
[    1.243921] [<c03b0cd0>] (mv64xxx_i2c_probe) from [<c0310968>] (platform_drv_probe+0x48/0x98)
[    1.252518] [<c0310968>] (platform_drv_probe) from [<c030ee7c>] (really_probe+0xec/0x2cc)
[    1.260755] [<c030ee7c>] (really_probe) from [<c030f3e0>] (driver_probe_device+0x5c/0x16c)
[    1.269071] [<c030f3e0>] (driver_probe_device) from [<c030da24>] (bus_for_each_drv+0x54/0xb8)
[    1.277653] [<c030da24>] (bus_for_each_drv) from [<c030f240>] (__device_attach+0xc8/0x13c)
[    1.285977] [<c030f240>] (__device_attach) from [<c030dc08>] (bus_probe_device+0x84/0x8c)
[    1.294156] [<c030dc08>] (bus_probe_device) from [<c030e7f8>] (deferred_probe_work_func+0x60/0x8c)
[    1.303185] [<c030e7f8>] (deferred_probe_work_func) from [<c0124ce8>] (process_one_work+0x1c8/0x3f8)
[    1.312380] [<c0124ce8>] (process_one_work) from [<c01251ac>] (worker_thread+0x294/0x5a0)
[    1.320618] [<c01251ac>] (worker_thread) from [<c012a0ec>] (kthread+0x104/0x118)
[    1.328061] [<c012a0ec>] (kthread) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[    1.335310] Exception stack(0xc12bffb0 to 0xc12bfff8)
[    1.340360] ffa0:                                     00000000 00000000 00000000 00000000
[    1.348570] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.356772] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.363374] ---[ end trace 491d9177aa5488cc ]---
[    1.368088] Goodix-TS: probe of 0-0014 failed with error -22
[    1.376416] List of all partitions:
[    1.379985] No filesystem could mount root, tried:
[    1.379995]  jffs2
[    1.384971]
[    1.388489] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.396740] CPU: 0 PID: 1 Comm: swapper Tainted: G        W         5.2.0-licheepi-nano+ #184
[    1.405233] Hardware name: Allwinner suniv Family
[    1.410000] [<c0107f98>] (unwind_backtrace) from [<c0105c04>] (show_stack+0x10/0x14)
[    1.417763] [<c0105c04>] (show_stack) from [<c01108c4>] (panic+0xe8/0x2e8)
[    1.424647] [<c01108c4>] (panic) from [<c06014e4>] (mount_block_root+0x260/0x2e0)
[    1.432124] [<c06014e4>] (mount_block_root) from [<c0601704>] (prepare_namespace+0x11c/0x17c)
[    1.440645] [<c0601704>] (prepare_namespace) from [<c0473430>] (kernel_init+0x8/0x110)
[    1.448556] [<c0473430>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[    1.456103] Exception stack(0xc1831fb0 to 0xc1831ff8)
[    1.461150] 1fa0:                                     00000000 00000000 00000000 00000000
[    1.469317] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.477477] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.484085] Rebooting in 5 seconds..
[    7.463316] Reboot failed -- System halted

离线

#1 2023-03-14 11:49:08

zj
会员
注册时间: 2023-02-08
已发帖子: 6
积分: 2

Re: Nano 加载文件系统报错,log如下,是什么问题?

建议检测下PE9引脚是否哪里重复用了,看错误好像是i2c驱动加载失败导致的

离线

楼主 #2 2023-03-19 15:11:33

william198757
会员
注册时间: 2019-11-22
已发帖子: 7
积分: 12

Re: Nano 加载文件系统报错,log如下,是什么问题?

zj 说:

建议检测下PE9引脚是否哪里重复用了,看错误好像是i2c驱动加载失败导致的


谢谢,PE9确实有问题,屏蔽掉就可以了,但主要问题是文件系统挂不上,不知道哪里没有配置好


[    1.117510] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.125761] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.0-licheepi-nano #7
[    1.132611] Hardware name: Allwinner suniv Family
[    1.137382] [<c0107f98>] (unwind_backtrace) from [<c0105c04>] (show_stack+0x10/0x14)
[    1.145144] [<c0105c04>] (show_stack) from [<c01108c4>] (panic+0xe8/0x2e8)
[    1.152029] [<c01108c4>] (panic) from [<c06014e4>] (mount_block_root+0x260/0x2e0)
[    1.159506] [<c06014e4>] (mount_block_root) from [<c0601704>] (prepare_namespace+0x11c/0x17c)
[    1.168026] [<c0601704>] (prepare_namespace) from [<c0473410>] (kernel_init+0x8/0x110)
[    1.175939] [<c0473410>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[    1.183486] Exception stack(0xc3835fb0 to 0xc3835ff8)
[    1.188533] 5fa0:                                     00000000 00000000 00000000 00000000
[    1.196699] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.204860] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.211467] Rebooting in 5 seconds..
[    7.190697] Reboot failed -- System halted

离线

#3 2023-03-19 15:37:33

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: Nano 加载文件系统报错,log如下,是什么问题?

bootargs指定了root了吗?或者是设备树里没有mmc0的配置?

离线

#4 2023-03-20 10:28:27

zj
会员
注册时间: 2023-02-08
已发帖子: 6
积分: 2

Re: Nano 加载文件系统报错,log如下,是什么问题?

@william198757
看启动信息,挂载的是mtd设备 ,是不是内核配置里面MTD相关配置没有打开?

离线

页脚

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

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