您尚未登录。

楼主 # 2021-10-19 16:32:11

shzn
会员
注册时间: 2021-10-19
已发帖子: 10
积分: 5

荔枝派nano,全志f1c100s的板子rootfs挂不起来。

请问各位大佬,又遇到过内核起来之后,挂在不了跟文件系统的问题吗?


*** Warning - bad CRC, using default environment

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 xt25f128 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 816fb000, end 816fff2e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (root@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #6 Mon Oct 18 22:44:05 PDT 2021
[    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:
[    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: 22684K/32768K available (6144K kernel code, 236K rwdata, 1388K rodata, 1024K init, 244K bss, 10084K 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 : 0xc2800000 - 0xff800000   ( 976 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (7136 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 237 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 245 kB)
[    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.000045] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000110] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000631] Console: colour dummy device 80x30
[    0.001475] console [tty0] enabled
[    0.001574] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070285] pid_max: default: 32768 minimum: 301
[    0.070621] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070711] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072273] CPU: Testing write buffer coherency: ok
[    0.073972] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076347] devtmpfs: initialized
[    0.082161] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082332] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.082627] pinctrl core: initialized pinctrl subsystem
[    0.084484] random: get_random_u32 called from bucket_table_alloc+0x80/0x1a4 with crng_init=0
[    0.084820] NET: Registered protocol family 16
[    0.085882] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.087701] cpuidle: using governor menu
[    0.112387] SCSI subsystem initialized
[    0.112814] usbcore: registered new interface driver usbfs
[    0.113031] usbcore: registered new interface driver hub
[    0.113274] usbcore: registered new device driver usb
[    0.113738] pps_core: LinuxPPS API ver. 1 registered
[    0.113820] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.113943] PTP clock support registered
[    0.114451] Advanced Linux Sound Architecture Driver Initialized.
[    0.115639] clocksource: Switched to clocksource timer
[    0.141466] NET: Registered protocol family 2
[    0.142921] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.143072] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.143158] TCP: Hash tables configured (established 1024 bind 1024)
[    0.143459] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.143564] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.144078] NET: Registered protocol family 1
[    0.145318] RPC: Registered named UNIX socket transport module.
[    0.145428] RPC: Registered udp transport module.
[    0.145477] RPC: Registered tcp transport module.
[    0.145521] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.147461] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.149287] Initialise system trusted keyrings
[    0.149898] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.167158] NFS: Registering the id_resolver key type
[    0.167314] Key type id_resolver registered
[    0.167370] Key type id_legacy registered
[    0.170155] random: fast init done
[    0.180863] Key type asymmetric registered
[    0.180974] Asymmetric key parser 'x509' registered
[    0.181208] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.181307] io scheduler noop registered
[    0.181353] io scheduler deadline registered
[    0.182117] io scheduler cfq registered (default)
[    0.182211] io scheduler mq-deadline registered
[    0.182265] io scheduler kyber registered
[    0.183405] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.192966] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.359252] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.386037] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A
[    0.855257] console [ttyS0] enabled
[    0.865773] panel-simple panel: panel supply power not found, using dummy regulator
[    0.875112] SCSI Media Changer driver v0.25
[    0.882868] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[    0.888999] 4 ofpart partitions found on MTD device spi0.0
[    0.894567] Creating 4 MTD partitions on "spi0.0":
[    0.899523] 0x000000000000-0x000000100000 : "u-boot"
[    0.905747] 0x000000100000-0x000000110000 : "dtb"
[    0.911597] 0x000000110000-0x000000510000 : "kernel"
[    0.917740] 0x000000510000-0x000001000000 : "rootfs"
[    0.924271] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.930995] ehci-platform: EHCI generic platform driver
[    0.936631] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.942910] ohci-platform: OHCI generic platform driver
[    0.948668] usbcore: registered new interface driver usb-storage
[    0.955758] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.964796] i2c /dev entries driver
[    1.025756] sunxi-mmc 1c0f000.mmc: base:0x(ptrval) irq:19
[    1.033257] usbcore: registered new interface driver usbhid
[    1.039026] usbhid: USB HID core driver
[    1.060617] NET: Registered protocol family 17
[    1.065404] Key type dns_resolver registered
[    1.071700] Loading compiled-in X.509 certificates
[    1.086966] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0739498)
[    1.095958] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073877c)
[    1.103738] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.110488] [drm] No driver support for vblank timestamp query.
[    1.164529] Console: switching to colour frame buffer device 60x34
[    1.188212] sun4i-drm display-engine: fb0:  frame buffer device
[    1.195780] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.216766] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.246463] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.264522] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.287521] hub 1-0:1.0: USB hub found
[    1.298126] hub 1-0:1.0: 1 port detected
[    1.310221] using random self ethernet address
[    1.321191] using random host ethernet address
[    1.333788] usb0: HOST MAC 1a:c6:90:5a:b5:eb
[    1.344568] usb0: MAC 82:6b:a6:6a:17:fd
[    1.354746] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.374448] g_cdc gadget: g_cdc ready
[    1.385209] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.414886] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.434171] vcc3v3: disabling
[    1.443452] ALSA device list:
[    1.452633]   #0: Loopback 1
[    1.462416] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.483126] cfg80211: failed to load regulatory.db
[    1.495258] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.514820] Please append a correct "root=" boot option; here are the available partitions:
[    1.535250] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.555447] CPU: 0 PID: 1 Comm: swapper Not tainted 4.15.0-rc8-licheepi-nano+ #6
[    1.574686] Hardware name: Allwinner suniv Family
[    1.585451] [<c010e550>] (unwind_backtrace) from [<c010b6a8>] (show_stack+0x10/0x14)
[    1.605015] [<c010b6a8>] (show_stack) from [<c0116878>] (panic+0xb8/0x230)
[    1.623686] [<c0116878>] (panic) from [<c0901190>] (mount_block_root+0x170/0x250)
[    1.643048] [<c0901190>] (mount_block_root) from [<c0901364>] (mount_root+0xf4/0x120)
[    1.663120] [<c0901364>] (mount_root) from [<c09014b8>] (prepare_namespace+0x128/0x188)
[    1.683828] [<c09014b8>] (prepare_namespace) from [<c0900dc0>] (kernel_init_freeable+0x174/0x1b8)
[    1.705760] [<c0900dc0>] (kernel_init_freeable) from [<c064faf0>] (kernel_init+0x8/0x10c)
[    1.727077] [<c064faf0>] (kernel_init) from [<c0107dc0>] (ret_from_fork+0x14/0x34)
[    1.747851] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[  128.485753] random: crng init done

离线

楼主 #2 2021-10-20 09:42:23

shzn
会员
注册时间: 2021-10-19
已发帖子: 10
积分: 5

Re: 荔枝派nano,全志f1c100s的板子rootfs挂不起来。

赋值了,不起效果,我再uboot的make menuconfig里面配置了console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2    同时关闭了默认配置,打开手动设置,设置成了上面这个console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2 
但是不起效果,已经重新编译烧录,uboot命令行下打印参数信息,没有这个参数。然后我有换了一种方式,在uboot源码目录下 进入 ./include/configs/,修改 suniv.h ,添加了:
#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait " \
                  " mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) " \
                  " root=/dev/mtdblock3 rw rootfstype=jffs2 "

还是不行。一样,大佬知道怎么回事吗?

离线

楼主 #3 2021-10-20 09:46:06

shzn
会员
注册时间: 2021-10-19
已发帖子: 10
积分: 5

Re: 荔枝派nano,全志f1c100s的板子rootfs挂不起来。

现在唯一的办法就是uboot启动之后,自动添加参数:setenv bootargs 'console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2'
然后保存到uboot,这样子很麻烦。不能再烧录之前写死。

离线

楼主 #5 2021-10-20 10:58:11

shzn
会员
注册时间: 2021-10-19
已发帖子: 10
积分: 5

Re: 荔枝派nano,全志f1c100s的板子rootfs挂不起来。

2018的

离线

楼主 #6 2021-10-20 11:05:37

shzn
会员
注册时间: 2021-10-19
已发帖子: 10
积分: 5

Re: 荔枝派nano,全志f1c100s的板子rootfs挂不起来。

我就是再make menuconfig里面配置的,版本是nano-v2018.01

离线

楼主 #8 2021-10-20 11:37:39

shzn
会员
注册时间: 2021-10-19
已发帖子: 10
积分: 5

Re: 荔枝派nano,全志f1c100s的板子rootfs挂不起来。

没有改错,所以很奇怪

离线

楼主 #9 2021-10-20 12:38:33

shzn
会员
注册时间: 2021-10-19
已发帖子: 10
积分: 5

Re: 荔枝派nano,全志f1c100s的板子rootfs挂不起来。

我发现了一个问题,不管不怎么改变参数,编译出来的uboot始终没有变过,这是怎么回事?有两个参数,分别是:
#define CONFIG_BOOTCOMMAND   "sf probe 0 50000000; "                           \
                             "sf read 0x80C00000 0x100000 0x4000; "  \
                             "sf read 0x80008000 0x110000 0x400000; " \
                             "bootz 0x80008000 - 0x80C00000"

#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait " \
                 " mtdparts=spi32766.0:1M(uboot),64k(dtb),4M(kernel),-(rootfs) " \
                 " root=/dev/mtdblock3 rw rootfstype=jffs2 "

有一个是可以传递的,有一个不行,但是我改变里面的"sf probe 0 50000000; "  为"sf probe 0 60000000; "  ,编译烧录进去,打印参数信息printenv,还是"sf probe 0 50000000; "  ,所以也就是说,不管怎么编译uboot,我添加进去的东西根本没有编译,原因是什么具体分析不出来。

离线

页脚

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

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