QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2288|回复: 0

请教ramdisk+jffs2挂载问题

[复制链接]
发表于 2010-12-18 09:38:54 | 显示全部楼层 |阅读模式
在自己的板子上挂载文件系统ramdisk+jffs2。

menuconfig的Default RAM disk size设置为:11676
启动信息如下:
RAMDISK: incomplete write (28672 != 3276 11927552
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 96k init
attempt to access beyond end of device
ram0: rw=0, want=32776, limit=23352
EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block - inode=3905, block=16387
Warning: unable to open an initial console.
attempt to access beyond end of device
ram0: rw=0, want=49676, limit=23352
EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block - inode=5857, block=24837
attempt to access beyond end of device
ram0: rw=0, want=24580, limit=23352
attempt to access beyond end of device
ram0: rw=0, want=24580, limit=23352
attempt to access beyond end of device
ram0: rw=0, want=24580, limit=23352
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
limit=23352刚好等于Default RAM disk size设置11676×2

于是把Default RAM disk size设置为最大的want=49676/2=24838
启动信息如下:
RAMDISK: incomplete write (6144 != 3276 25427968
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 96k init
attempt to access beyond end of device
ram0: rw=0, want=60420, limit=49676
attempt to access beyond end of device
ram0: rw=0, want=60420, limit=49676
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
怎么want=60420又变大了?

再把Default RAM disk size设置为最大的want=60420/2=30210
启动信息如下:
RAMDISK: incomplete write (2048 != 3276 30932992
VFS: Mounted root (ext2 filesystem)
Freeing unused kernel memory: 96k init
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
没出现limit了,但还是不能启动。incomplete write (2048 != 3276 30932992是否说明还是配置选项没设对?还是其它的什么问题? 
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-21 20:54 , Processed in 0.054515 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表