主题 : 新手请教--用光盘中的kernel+root_default.cramfs,为什么起动不了 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 4318
精华: 0
发帖: 10
金钱: 100 两
威望: 70 点
综合积分: 20 分
注册时间: 2009-03-09
最后登录: 2009-11-20
楼主  发表于: 2009-03-24 20:04

 新手请教--用光盘中的kernel+root_default.cramfs,为什么起动不了

请教各位大虾,我用的是qq2440光盘中提供的镜像文件:vivi+zImage_tft640480+root_default.cramfs。我是从nor_flash启动的,在vivi中用x选项对nand_flash进行了操作,然后选择k下载了内核镜像(zImage_tft640480),然后选择c选项下载了文件系统(root_default.cramfs)。之后我执行b选项启动系统,出现错误,终端的部分打印如下:

yaffs: dev is 32505858 name is "mtdblock2"
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs filesystem).
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 144K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

我想问的是,难道是光盘的镜像给错啦,还是我自己的操作有问题?

*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-03-24 23:20
如果你用的是cramfs格式的镜像(root_default.cramfs), 在内核命令行上用rootfstype=cramfs来指定根文件系统镜像的格式
"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: 4318
精华: 0
发帖: 10
金钱: 100 两
威望: 70 点
综合积分: 20 分
注册时间: 2009-03-09
最后登录: 2009-11-20
2楼  发表于: 2009-03-25 00:56
谢楼上,是我烧的内核和文件系统不匹配,光盘给的这个内核不支持cramfs