- 积分
- 2835
贡献19274
飞刀101474 FD
注册时间2009-12-1
在线时间585 小时
|
发表于 2010-7-17 13:43:36
|
显示全部楼层
====================LINUX============================
LINUX分区表改为:(/arch/arm/mach-s3c2410/devs.c)
struct mtd_partition TE24xx_default_nand_part_b[]= {
[0] = {
.name = "Boot",
.size = 0x00100000,
.offset = 0
},
[1] = {
.name = "MyApp",
.size = 0x003c0000,
.offset = 0x00140000,
},
[2] = {
.name = "Kernel",
.size = 0x00300000,
.offset = 0x00500000,
},
[3] = {
.name = "fs_yaffs",
.size = 0x07800000, //原为60M现大小增大一倍
.offset = 0x00800000,
},
/* [4] = {
.name = "WINCE",
.size = 0x03c00000,
.offset = 0x04400000, //将wince屏蔽掉
}*/
};
/*
struct s3c2410_nand_set nandset ={
nr_partitions: 4 , //原为5现改为4
partitions: TE24xx_default_nand_part_b, //partition_info 64M
};
然后重新编译内核
-------------------------------------
boot源码中将nand.c中改为如下所示
static struct Partition NandPart[] = {
{0, 0x00100000, "boot"}, //128K
{0x00100000, 0x00040000, "bootParam"},//two blocks
{0x00140000, 0x003c0000, "MyApp"}, //4M512K
{0x00500000, 0x00300000, "kernel"}, //3M128K
//{0x00800000, 0x01400000, "fs_cramfs"}, //20M
{0x00800000, 0x07800000, "fs_yaffs"}, //40M
// {0x00500000, 0x03c00000, "wince"}, //60M
{0, 0 , 0}
};
然后重新编译boot即可
参考这个文档吧 |
|