主题 : u-boot 启动内核出现 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 3023
精华: 0
发帖: 2
金钱: 20 两
威望: 20 点
贡献值: 0 点
综合积分: 4 分
注册时间: 2008-12-22
最后登录: 2009-02-06
楼主  发表于: 2009-01-22 18:48

 u-boot 启动内核出现 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

我已经按照《嵌入式LINUX应用开始完全手册》中的LINUX内核移植章节中的介绍的方法,用书中的提供的补丁对
内核打了补丁,也按照书中说的增加了对YAFFS文件系统的支持,编译下到MINI2440 启动后,还是出现了
。。。。。。。。
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "hda1" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00       2048 mtdblock0 (driver?)
1f01       8192 mtdblock1 (driver?)
1f02      55296 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
的错误。
查了一些资料,有人说要在make menuconfig 的时候增加对 ramdisk   和 initrd 支持,
但是我不知道ramdisk   和 initrd 在内核配置选项的那个选项下。
有那位大哥碰到过类似的问题或是知道这么解决这个问题,望指教,谢谢!
(我是在虚拟机中安装的LINUX下编译的)
Linux@ARM
级别: 新手上路
UID: 2478
精华: 0
发帖: 48
金钱: 410 两
威望: 354 点
贡献值: 0 点
综合积分: 96 分
注册时间: 2008-11-19
最后登录: 2018-02-08
1楼  发表于: 2009-02-19 11:03

 Re:u-boot 启动内核出现 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block ..

我也出现这个问题
欢迎访问Linux@ARM博客:
http://l0p0c.cublog.cn
Linux@ARM
级别: 新手上路
UID: 2478
精华: 0
发帖: 48
金钱: 410 两
威望: 354 点
贡献值: 0 点
综合积分: 96 分
注册时间: 2008-11-19
最后登录: 2018-02-08
2楼  发表于: 2009-02-19 11:07

 Re:u-boot 启动内核出现 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block ..

Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mtdblock" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00       1024 mtdblock0 (driver?)
1f01       2048 mtdblock1 (driver?)
1f02      40960 mtdblock2 (driver?)
1f03      21504 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
欢迎访问Linux@ARM博客:
http://l0p0c.cublog.cn