主题 : 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下编译的)
追求卓越,拒绝平庸
级别: 新手上路
UID: 16052
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
贡献值: 0 点
综合积分: 42 分
注册时间: 2010-03-13
最后登录: 2011-04-07
1楼  发表于: 2010-03-24 22:41

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

我刚买的mini2440 也出现这种问题

我只按照  用户手册 上把 2.2节的测试做了(包括设置启动参数,我印象最后又通过 [r] 选项复原了的),后来通过Nand Flash启动预装的Linux系统就出现了这种问题
追求卓越,拒绝平庸
级别: 新手上路
UID: 16052
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
贡献值: 0 点
综合积分: 42 分
注册时间: 2010-03-13
最后登录: 2011-04-07
2楼  发表于: 2010-03-25 21:50

 回 10楼(hellobbs) 的帖子

我的问题已经解决:还是启动参数设置问题,重新通过 [r] 选项恢复出厂设置后,就可以进入预装的Linux系统了。Happy............