中国Linux公社论坛's Archiver

hyp429 发表于 2010-12-18 09:38

请教ramdisk+jffs2挂载问题

在自己的板子上挂载文件系统ramdisk+jffs2。

menuconfig的Default RAM disk size设置为:11676
启动信息如下:
RAMDISK: incomplete write (28672 != 32768) 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 != 32768) 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 != 32768) 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 != 32768) 30932992是否说明还是配置选项没设对?还是其它的什么问题? 

页: [1]

Powered by Discuz! Archiver 6.1.0F  © 2001-2007 Comsenz Inc.