albert198511 发表于 2008-4-28 20:34:49

关于启动内核的困惑

今天我自己做了一个initrd.img,正好4M,但是启动内核时出现如下错误:

RAMDISK: ext2 filesystem found at block 0
RAMDISK: image too big! (4096KiB/2048KiB)
JFFS: Trying to mount a non-mtd device.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)


请问“RAMDISK: image too big! (4096KiB/2048KiB)”,中的2048K的限制在哪里可以改?谢谢

skyeye.conf如下:
mem_bank: map=M, type=RW, addr=0x30800000, size=0x00800000, file=./initrd.img

在配置内核时:
Device Drivers --> Block devices --> (4096) Default RAM disk size (kbytes)

ksh 发表于 2008-4-29 09:12:41

检查一下COMMAND_LINE:
Kernel command line: noinitrd console=ttySAC0 root=/dev/mtdblock2 rootfstype=yaffs init=/linuxrc devfs=mount ramdisk_size=2048 rw

crook 发表于 2008-5-8 21:16:39

kernel boot option

ramdisk_size=4096

albert198511 发表于 2008-5-9 00:04:59

谢谢ksh和crook 已经改过来了! o(∩_∩)o...
页: [1]
查看完整版本: 关于启动内核的困惑