记录一波:

mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
 mmcblk0: p1(u-boot.bin) p2(kernel) p3(rootfs.ext4) p4(data)
List of all partitions:
0100           65536 ram0 
 (driver?)
0101           65536 ram1 
 (driver?)
0102           65536 ram2 
 (driver?)
0103           65536 ram3 
 (driver?)
0104           65536 ram4 
 (driver?)
0105           65536 ram5 
 (driver?)
0106           65536 ram6 
 (driver?)
0107           65536 ram7 
 (driver?)
0108           65536 ram8 
 (driver?)
0109           65536 ram9 
 (driver?)
010a           65536 ram10 
 (driver?)
010b           65536 ram11 
 (driver?)
010c           65536 ram12 
 (driver?)
010d           65536 ram13 
 (driver?)
010e           65536 ram14 
 (driver?)
010f           65536 ram15 
 (driver?)
b300        31166976 mmcblk0 
 driver: mmcblk
  b301            1024 mmcblk0p1 

  b302           12288 mmcblk0p2 

  b303         1048576 mmcblk0p3 

  b304        30105088 mmcblk0p4 

No filesystem could mount root, tried: 
 ext4

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.19.90 #2
Hardware name: Vendor SS928V100 DEMO Board (DT)
Call trace:
 dump_backtrace+0x0/0x1a0
 show_stack+0x14/0x20
 dump_stack+0xa8/0xcc
 panic+0x134/0x28c
 mount_block_root+0x290/0x2ec
 mount_root+0x84/0x94
 prepare_namespace+0x16c/0x1b4
 kernel_init_freeable+0x1d0/0x1f0
 kernel_init+0x10/0x100
 ret_from_fork+0x10/0x1c
SMP: stopping secondary CPUs
Kernel Offset: disabled
CPU features: 0x4,22002218
Memory Limit: 512 MB
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3) ]---

经过反复排查, 发现问题出现在启动方式上;

linux内核源码下有个 .config 文件,一般是从arm/arm/configs/拷贝对应配置过来; 里面有default,emmc,nand等配置; 

之前拷贝的是默认的配置,为spi falsh对应配置, 而正在使用的开发板为 emmc启动; 所以启动出现上述错误;

其他参考: http://www.aiothome.net/read.php?tid=1091

Logo

欢迎加入龙蜥社区,参与开源活动即刻有好礼相送!

更多推荐