环境:hi3519AV100+ Hi3519A V100R001C02SPC010
问题:使用Hitool5.0.46烧写EMMC,成功烧写uboot、Image和EXT4文件系统,uboot和内核都可以正常启动,报错加载不了文件系统
参考文档启动参数设置如下:
setenv bootargs 'mem=256M console=ttyAMA0,115200 clk_ignore_unused root=/dev/mmcblk0p3 rw rootfstype=ext4 rootwait blkdevparts=mmcblk0:1M(boot),4M(kernel),32M(rootfs)'
setenv bootcmd 'mmc read 0x0 0x21000000 0x800 0x2000;bootm 0x21000000'
后面通过直接挂载NFS文件系统发现,EMMC的分区只有mmcblk0、mmcblk0boot0、mmcblk0boot2和mmcblk0rpmb。感觉EMMC没有成功进行分区,完全就没有/dev/mmcblk0p3,但是uboot和内核又确实可以运行起来。所以比较困惑,不知道有没有大佬可以解答一下,如何才能通过EMMC挂载EXT4文件系统。
报错log如下:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.9.37 #1
Hardware name: Generic DT based system
[] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[] (show_stack) from [] (dump_stack+0x84/0x98)
[] (dump_stack) from [] (panic+0xdc/0x248)
[] (panic) from [] (mount_block_root+0x21c/0x268)
[] (mount_block_root) from [] (mount_root+0x120/0x128)
[] (mount_root) from [] (prepare_namespace+0x170/0x1b8)
mmc2: 3.3V output did not became stable
[] (prepare_namespace) from [] (kernel_init_freeable+0x1d0/0x1e0)
[] (kernel_init_freeable) from [] (kernel_init+0x8/0x114)
[] (kernel_init) from [] (ret_from_fork+0x14/0x3c)
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.37 #1
Hardware name: Generic DT based system
[] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[] (show_stack) from [] (dump_stack+0x84/0x98)
[] (dump_stack) from [] (handle_IPI+0x174/0x190)
[] (handle_IPI) from [] (gic_handle_irq+0x88/0x8c)
[] (gic_handle_irq) from [] (__irq_svc+0x6c/0x90)
Exception stack(0xc0901f60 to 0xc0901fa8)
1f60: 00000000 00000540 cedc82e8 c0115840 c0900000 c0902fe4 00000001 c090304c
1f80: c090cf24 c082f8c8 cefffa40 00000000 00000000 c0901fb0 c01085c0 c01085c4
1fa0: 60000013 ffffffff
[] (__irq_svc) from [] (arch_cpu_idle+0x38/0x3c)
[] (arch_cpu_idle) from [] (cpu_startup_entry+0xbc/0x130)
[] (cpu_startup_entry) from [] (start_kernel+0x310/0x31c)
[] (start_kernel) from [<22008088>] (0x22008088)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)