Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

运行内核出现“Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)”

原因:u-boot传送的root参数不对,导致内核无法找到根文件系统在哪个分区

解决:修改u-boot命令行参数将root参数修改为root=/dev/mtdblockx,“x”为你的根文件系统所在分区

你可能感兴趣的:(Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2))