|
发表于 2005-2-5 11:09:47
|
显示全部楼层
我说一下我熟悉的Lubbock开发板的Flash分区在内核中的设置:
static struct map_info lubbock_maps[2] = { {
.size = WINDOW_SIZE,
.phys = 0x00000000,
.inval_cache = lubbock_map_inval_cache,
}, {
.size = WINDOW_SIZE,
.phys = 0x04000000,
.inval_cache = lubbock_map_inval_cache,
} };
static struct mtd_partition lubbock_partitions[] = {
{
.name = "Bootloader",
.size = 0x00040000,
.offset = 0,
.mask_flags = MTD_WRITEABLE /* force read-only */
},{
.name = "Kernel",
.size = 0x00100000,
.offset = 0x00040000,
},{
.name = "Filesystem",
.size = MTDPART_SIZ_FULL,
.offset = 0x00140000
}
};
如果采用的是RAMdisk则设置
CONGIG_CMDLINE="root=/dev/ram rw initrd=0xa1000000,0x00800000 console=ttyS0,115200 mem=64M"
其中initrd=0xa1000000就是内核启动时挂载根文件系统的位置,事先在skyeye.conf中配置
mem_bank: map=M, type=RW, addr=0xa1000000, size=0x00800000, file=./initrd4M.img
这样SkyEye运行target sim时就将镜像装入模拟的RAM中的0xa1000000开始的空间
不知道我目前了解的这点信息对你到uClinux源码中寻找答案是否有帮助。 |
|