页次: 1
看下linux的启动日志,有没有生成mtd分区。如果没有生成就是驱动和配置问题.
谢谢,刚刚解决
原因还不太不太理解 “这种情况是因为mkfs.ext4的时候制定的参数,旧的内核不支持导致”
方法如下:
1:读卡器插入SD卡
2:利用Gparted软件先取消rootfs的挂在
2:终端敲入tune2fs -O ^metadata_csum /dev/sdb2 (根据rootfs的分区选择sdb1,还是sdb2)
3:提示:请在这个文档系统上运行 e2fsck.
4:敲入e2fsck -f -a -v /dev/sdb1
370 个已使用的inode(0.02%,总共 1896832)
0 个不连续的文件(0.0%)
0 个不连续的目录(0.0%)
# 一次/二次/三次链接块数:0/0/0
Extent深度直方图: 76
163787 个已使用的块(2.16%,总共 7573504)
0 个坏块
1 个大文件
41 个普通文件
34 个文件夹
1 个字符设备文件
0 个块设备文件
0 个队列文件
0 个链接
285 个符号链接 (285 个直接符号链接)
0 个套接字文件
------------
361 个文件
5:查新插入sd卡 就可以正常启动了
[ 2.844481] *******************sd init ok*******************
[ 2.851035] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 2.859842] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 2.868390] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 2.877019] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 2.885641] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 2.894175] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 2.983820] EXT4-fs (mmcblk0p2): recovery complete
[ 2.990260] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.999482] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 3.007999] devtmpfs: mounted
[ 3.011609] Freeing init memory: 140K
[ 3.131952] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
Welcome to Buildroot
6:最后附上参考网址 https://www.dazhuanlan.com/2019/12/05/5de86b13e1c54/
@嵌入式小弟 根文件系统错误,bsp linux套路不同。
licheepi zero BSP 内核(linux3.4) 编译教程
http://whycan.com/t_682.html
(出处:哇酷开发者社区【全志 V3S/F1C100s/X3】)
谢谢回复,不过问题依旧,我按照bsp内核的编译流程都走了一遍,也将楼主的lichee_BSP_config拷贝成了.config,个人感觉还是有哪里的细节没有care到,应该和buildroot制造出的rootfs关系不大,
请教一下楼主;在内核反复重启是何原因?猜测是根文件系统无法挂载,但找不到分析头绪,还请指导!
备注:根文件系统之前一直在用,换了bsp内核之后,同样将rootfs 解压缩到rootfs分区,
[ 2.844561] *******************sd init ok*******************
[ 2.851030] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 2.859829] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 2.868376] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 2.877002] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 2.885622] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 2.894157] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 2.951189] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 2.961418] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 2.971571] EXT4-fs (mmcblk0p2): couldn't mount RDWR because of unsupported optional features (400)
[ 2.985524] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[ 2.995119] Backtrace:
[ 2.998049] [<c0013410>] (dump_backtrace+0x0/0x110) from [<c0354534>] (dump_stack+0x18/0x1c)
[ 3.007609] r6:00008000 r5:c183d024 r4:c183d024 r3:00000001
[ 3.014476] [<c035451c>] (dump_stack+0x0/0x1c) from [<c0354918>] (panic+0x78/0x1cc)
[ 3.023085] [<c03548a0>] (panic+0x0/0x1cc) from [<c047ed20>] (mount_block_root+0x240/0x290)
[ 3.032539] r3:c1821f0c r2:00000020 r1:c1821f38 r0:c040406e
[ 3.039310] r7:c049c0b8
[ 3.042419] [<c047eae0>] (mount_block_root+0x0/0x290) from [<c047edc8>] (mount_root+0x58/0x68)
[ 3.052087] [<c047ed70>] (mount_root+0x0/0x68) from [<c047ef08>] (prepare_namespace+0x130/0x190)
[ 3.062022] r5:c049c0c9 r4:c04e6024
[ 3.066371] [<c047edd8>] (prepare_namespace+0x0/0x190) from [<c047e94c>] (kernel_init+0x16c/0x1a8)
[ 3.076413] r5:c049c0b0 r4:00000007
[ 3.080770] [<c047e7e0>] (kernel_init+0x0/0x1a8) from [<c0031df4>] (do_exit+0x0/0x66c)
[ 3.089656] Rebooting in 5 seconds..
[ 8.178314] Restarting Linux version 3.4.39 (root@V3S) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #1 Wed Sep 16 12:43:52 CST 2020
[ 8.178329]
页次: 1