QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1736|回复: 4

RAMDISK 的问题

[复制链接]
发表于 2005-11-17 10:15:36 | 显示全部楼层 |阅读模式
我想让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函数的问题,但不知怎样修改,请大侠们指教,非常感谢!
发表于 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 in  initrd_start address. First , you should select ext2 filesystem support. Second you make sure your initrd image is placed the right place.
回复

使用道具 举报

 楼主| 发表于 2005-11-17 16:29:36 | 显示全部楼层
[quote:eaff2f5b93="ksh"]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 in  initrd_start address. First , you should select ext2 filesystem support. Second you make sure your initrd image is placed the right place.[/quote]
这两点我都做到了
回复

使用道具 举报

发表于 2005-11-27 20:59:12 | 显示全部楼层
Then what need to do is to  debug it by yourself.....
回复

使用道具 举报

发表于 2006-5-31 16:07:39 | 显示全部楼层

what do you mean by "right pla

how do specify the so called "right place"?
thx.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-27 02:58 , Processed in 0.074061 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表