shutle 发表于 2005-11-17 10:15:36

RAMDISK 的问题

我想让linux-2.4.13-patched-4-ep7312内核支持RAMDISK根文件系统,采取如下操作:
1.)在menuconfig中支持initrd
2.)在edb7312.c中
#include <linux/blk.h>
在fixup_edb7312函数中加入
initrd_start=0xc0200000;
initrd_end=0xc0200000+0x00200000;
3.)将CONFIG_CMDLINE ""
修改为CONFIG_CMDLINE "root=/dev/ram"

模拟时出现如下错误:
RAMDISK:couldn't find valid RAM disk image starting at 0

好像是kmalloc函数的问题,但不知怎样修改,请大侠们指教,非常感谢!

ksh 发表于 2005-11-17 15:27:32

You can debug kernel through skyeye. break do_initrd function or other related function.The error message show that your kernel can not find the ramdisk ininitrd_start address. First , you should select ext2 filesystem support. Second you make sure your initrd image is placed the right place.

shutle 发表于 2005-11-17 16:29:36

You can debug kernel through skyeye. break do_initrd function or other related function.The error message show that your kernel can not find the ramdisk ininitrd_start address. First , you should select ext2 filesystem support. Second you make sure your initrd image is placed the right place.
这两点我都做到了

ksh 发表于 2005-11-27 20:59:12

Then what need to do is todebug it by yourself.....

napobona 发表于 2006-5-31 16:07:39

what do you mean by "right pla

how do specify the so called "right place"?
thx.
页: [1]
查看完整版本: RAMDISK 的问题