主题 : 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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-01-30 14:25

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

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?)


这个出错信息说明内核所知道的rootfs所在的存储设备是hda1, 然而,实际上当前合法的设备只有mtdblock0,1,2也就是NAND Flash的三个分区。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-02-19 15:36

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

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?)

你不觉得mtdblock后面少了一个数字吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-10-19 14:25

 回 7楼(shuichunfeng) 的帖子

Please append a correct "root=" boot option; here are the available partitions:
1f00       2048 mtdblock0 (driver?)
1f01       8192 mtdblock1 (driver?)
1f02     120832 mtdblock2 (driver?)

看不懂英文吗?当前有的MTD分区只有mtdblock0,1,2
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."