• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 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: 3178
精华: 0
发帖: 12
金钱: 90 两
威望: 66 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2008-12-30
最后登录: 2016-11-23
1楼  发表于: 2009-01-22 20:48

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

我以前在PC上编译内核,漏了对intrid的支持,后来做了笔记,时间太久了,仅供参考:
复制代码
  1. CONFIG_BLK_DEV_INITRD这一项一定要选上,否则将引导新内核时将出现以下提示:
  2. No filesystem could mount root, tried: kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block(0,0)

你去看看.config文件,搜索CONFIG_BLK_DEV_INITRD,应该就能知道这个选项处于什么位置了。
Debsir。
级别: 侠客
UID: 3595
精华: 4
发帖: 53
金钱: 425 两
威望: 213 点
贡献值: 31 点
综合积分: 186 分
注册时间: 2009-01-20
最后登录: 2011-10-18
2楼  发表于: 2009-01-23 20:25

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

这个问题多半是因为yaffs的根文件系统没有正确烧录所至。但原因很多,难以确定。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 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."
Linux@ARM
级别: 新手上路
UID: 2478
精华: 0
发帖: 48
金钱: 410 两
威望: 354 点
贡献值: 0 点
综合积分: 96 分
注册时间: 2008-11-19
最后登录: 2018-02-08
4楼  发表于: 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
5楼  发表于: 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
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 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: 9248
精华: 0
发帖: 4
金钱: 25 两
威望: 8 点
贡献值: 0 点
综合积分: 8 分
注册时间: 2009-09-22
最后登录: 2014-08-04
7楼  发表于: 2009-10-19 13:37

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

usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
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 "mtdblock3" 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     120832 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


我的也是这种问题 还没解决

-友善之臂-mini2440-128M-   busybox-1.7.0
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 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."
级别: 新手上路
UID: 7800
精华: 0
发帖: 49
金钱: 490 两
威望: 257 点
贡献值: 0 点
综合积分: 98 分
注册时间: 2009-07-29
最后登录: 2017-09-13
9楼  发表于: 2009-10-20 10:19

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

你传递的启动参数是什么呢?
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go