参考手册编译Buildroot系统
make 100ask_stm32mp157_pro_ddr512m_systemD_qt5_defconfig
make all -j4
成功后将rootfs.ext2拷贝到Windows并更改名为rootfd.ext4,使用CubeProgrammer进行升级,整个过程没有问题,但是重新在EMMC启动开发板出现文件系统挂载不上,kernel panic的错误
[ 4.924458] No filesystem could mount root, tried:
[ 4.924462] ext3
[ 4.929354] ext2
[ 4.931252] ext4
[ 4.933170] squashfs
[ 4.935087] vfat
[ 4.937354] msdos
[ 4.939298] sysv
[ 4.941277] v7
[ 4.943194] ntfs
[ 4.944938] fuseblk
[ 4.946856]
[ 4.950570] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)
[ 4.958983] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.31 #1
[ 4.964902] Hardware name: STM32 (Device Tree Support)
[ 4.970083] [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[ 4.977817] [] (show_stack) from [] (dump_stack+0xb0/0xc4)
[ 4.985052] [] (dump_stack) from [] (panic+0x11c/0x31c)
[ 4.992028] [] (panic) from [] (mount_block_root+0x258/0x274)
[ 4.999522] [] (mount_block_root) from [] (mount_root+0x120/0x13c)
[ 5.007452] [] (mount_root) from [] (prepare_namespace+0x17c/0x1c4)
[ 5.015471] [] (prepare_namespace) from [] (kernel_init+0x8/0x110)
[ 5.023403] [] (kernel_init) from [] (ret_from_fork+0x14/0x2c)
[ 5.030979] Exception stack(0xdf087fb0 to 0xdf087ff8)
[ 5.036037] 7fa0: 00000000 00000000 00000000 00000000
[ 5.044233] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 5.052425] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 5.059058] CPU0: stopping
[ 5.061754] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.31 #1
[ 5.067674] Hardware name: STM32 (Device Tree Support)
[ 5.072833] [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[ 5.080585] [] (show_stack) from [] (dump_stack+0xb0/0xc4)
[ 5.087820] [] (dump_stack) from [] (handle_IPI+0x41c/0x448)
[ 5.095229] [] (handle_IPI) from [] (gic_handle_irq+0x8c/0x90)
[ 5.102810] [] (gic_handle_irq) from [] (__irq_svc+0x6c/0xa8)
[ 5.110296] Exception stack(0xc1201f30 to 0xc1201f78)
[ 5.115355] 1f20: 00000000 0000650c dfad4074 c011b640
[ 5.123551] 1f40: ffffe000 c1204ea8 c1204ee8 00000001 c12bc2fd c0eebd00 c116ea40 dffffe00
[ 5.131742] 1f60: 00000000 c1201f80 c010a13c c010a140 60000013 ffffffff
[ 5.138374] [] (__irq_svc) from [] (arch_cpu_idle+0x38/0x3c)
[ 5.145783] [] (arch_cpu_idle) from [] (do_idle+0x10c/0x150)
[ 5.153187] [] (do_idle) from [] (cpu_startup_entry+0x18/0x1c)
[ 5.160770] [] (cpu_startup_entry) from [] (start_kernel+0x4b4/0x4e4)
[ 5.168962] [] (start_kernel) from [<00000000>] (0x0)
[ 5.174892] —[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3) ]—