|  | 
 
| 添加ramdisk(ramfs2048.img),在向/ramdisk下拷贝大于1M的文件时出现如下错误信息: ...
 attempt to access beyond end of device
 01:01: rw=1, want=1025, limit=1024
 attempt to access beyond end of device
 01:01: rw=1, want=1026, limit=1024
 attempt to access beyond end of device
 ...
 从网上搜了一下,在http://mailman.uclinux.org/pipermail/uclinux-dev/2004-October/029045.html发现一封邮件和我的问题有些相似,内容如下
 > I have config a ramdisk for 2MB. This seams to be OK when I look at it with
 > df /var.
 >
 > But when I copy a file greater than 1MB I get some error outprints.
 >
 > attempt to access beyond end of device
 >
 > 01:00: rw=0, want=1347, limit=1024
 >
 > Why does this text appear ?
 
 Looks like you RD is limited to 1Mb
 
 > I have config the ramdisk to 2048KB in Misc. configuration  -> (2048K) RAMFS
 > Image.
 >
 > Do I need to make any changes to the kernel ?
 
 Only if you kernel has set the RD size lower than the default of 4096,check your kernel config for the ram disk size,  that may be your problems,
 
 但是怎样设置RD啊?
 
 试图在kernel/Block devices/RAM disk support/Default RAM disk size中修改default ram disk size(默认值是1024),但是这一项修改不了.
 
 怎么办呢?
 | 
 |