报错
List of all partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,7)
[ 3.130607] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.168 #11
[ 3.136769] Hardware name: Novatek NS02302 (DT)
[ 3.141283] Call trace:
[ 3.143729] dump_backtrace+0x0/0x190
[ 3.147379] show_stack+0x14/0x30
[ 3.150684] dump_stack+0xc4/0xfc
[ 3.153987] panic+0x174/0x328
[ 3.157032] mount_block_root+0x350/0x36c
[ 3.161028] mount_root+0x6c/0x78
[ 3.164330] prepare_namespace+0x120/0x15c
[ 3.168412] kernel_init_freeable+0x1f8/0x218
[ 3.172756] kernel_init+0x10/0x114
[ 3.176231] ret_from_fork+0x10/0x20
[ 3.179795] SMP: stopping secondary CPUs
[ 3.183706] Kernel Offset: disabled
可能性
1、内核没支持对应的文件系统,支持就好
2、uboot的环境变量设置有问题
3、文件系统本身有问题,无法挂载
以下为文件系统本身问题的报错位置
prepare_namespace–>mount_root–>mount_block_root–>do_mount_root–>init_mount–>path_mount–>do_new_mount–>vfs_get_tree–>error = fc->ops->get_tree(fc);返回错误码-22
本人调试联咏设备sdk的文件系统,sdk编译的时候带checksum多64字节头,用于校验,直接写进分区的时候文件系统异常
要么编译文件系统的时候不加校验头,要么烧写的时候地址跳过64字节的checksum