当前位置: 技术问答>linux和unix
请教ramdisk+jffs2挂载问题
来源: 互联网 发布时间:2016-10-30
本文导语: 在自己的板子上挂载文件系统ramdisk+jffs2。 menuconfig的Default RAM disk size设置为:11676 启动信息如下: RAMDISK: incomplete write (28672 != 32768) 11927552 VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 96k ini...
在自己的板子上挂载文件系统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是否说明还是配置选项没设对?还是其它的什么问题?
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是否说明还是配置选项没设对?还是其它的什么问题?
|
看你的最后一句,KERNEL PANIC好像是你的初始化函数没写哟
|
panic应该还有些函数调用堆栈,没贴出来?
|
错误提示你没有给启动命令加参数
|
"VFS: Mounted root (ext2 filesystem)"
不是jffs2文件系统么,启动信息上怎么是ext2?
不是jffs2文件系统么,启动信息上怎么是ext2?
|
应该还是大小不对。此外你的块大小最好是4096的整数倍。不是一般都是设置block数量和每个block的大小吗,楼主的第一个default size怎么会是11676?