主题 : linux2.6.22移植到mini2440启动出现问题? 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
楼主  发表于: 2009-09-30 16:36

 linux2.6.22移植到mini2440启动出现问题?

VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00        256 mtdblock0 (driver?)
1f01       2048 mtdblock1 (driver?)
1f02      61408 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
linux2.6.22移植到mini2440启动出现问题。请问有没有人知道是什么原因?怎么解决?先谢了!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-09-30 17:28
贴出完整的启动log
"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: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
2楼  发表于: 2009-09-30 17:56
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00040000 : "uboot"
0x00200000-0x00400000 : "kernel"
0x00400000-0x03ff8000 : "yaffs2"
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 98 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)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 108K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
请高手指点。
级别: 侠客
UID: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
3楼  发表于: 2009-09-30 17:58
采用的是nfs启动
setenv bootcmd tftp 0x30008000 zImage.img\;bootm 0x30008000

setenv bootarg console=ttySAC0 root=/dev/nfs rw nfsroot=192.168.1.111:/opt/xiongbiao/busybox/root-fs/ ip=192.168.1.230:192.168.1.111:192.168.1.1:255.255.255.0:xiongbiao:eth0:off
出现上面的问题怎么解决啊?
级别: 新手上路
UID: 7800
精华: 0
发帖: 49
金钱: 490 两
威望: 257 点
综合积分: 98 分
注册时间: 2009-07-29
最后登录: 2017-09-13
4楼  发表于: 2009-10-02 09:20
第一次错误:可以查看分区信息对不对?多半是bootloader传递参数错误,还查看那内核要支持相应的文件系统。
第二次错误信息看:应该是文件系统出错,可以重新编译个文件系统出来看看!
级别: 侠客
UID: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
5楼  发表于: 2009-10-10 13:48
Looking up port of RPC 100003/2 on 192.168.1.111
Looking up port of RPC 100005/1 on 192.168.1.111
VFS: Mounted root (nfs filesystem).
Freeing init memory: 112K

卡在这里不动了,进不了命令行,是怎么回事啊?
级别: 侠客
UID: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
6楼  发表于: 2009-10-10 14:34
可以继续敲回车, 可是就没有显示和命令的返回。是什么原因啊,大家帮忙分析下。