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函数的问题,但不知怎样修改,请大侠们指教,非常感谢! 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. 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.
这两点我都做到了 Then what need to do is todebug it by yourself.....
what do you mean by "right pla
how do specify the so called "right place"?thx.
页:
[1]