struct mtd_partition TE24xx_default_nand_part_b[]= {
= {
.name = "Boot",
.size = 0x00100000,
.offset = 0
},
= {
.name = "MyApp",
.size = 0x003c0000,
.offset = 0x00140000,
},
= {
.name = "Kernel",
.size = 0x00300000,
.offset = 0x00500000,
},
= {
.name = "fs_yaffs",
.size = 0x07800000, //原为60M现大小增大一倍
.offset = 0x00800000,
},
/* = {
.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即可 LINUX分区表改为:(/arch/arm/mach-s3c2410/devs.c)
struct mtd_partition TE24xx_default_nand_part_b[]= {
= {
.name = "Boot",
.size = 0x00100000,
.offset = 0
},
= {
.name = "MyApp",
.size = 0x003c0000,
.offset = 0x00140000,
},
= {
.name = "Kernel",
.size = 0x00300000,
.offset = 0x00500000,
},
= {
.name = "fs_yaffs",
.size = 0x07800000, //原为60M现大小增大一倍
.offset = 0x00800000,
},
/* = {
.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即可 bootloader kernel文件系统这三个分区号需要对应上。 大家好,我是新来的,对嵌入式也是新手。 然后虽然住在北京,我是外国人。。。 计算机本来不容易,那么用中 ...
musicotherapie 发表于 2011-3-4 16:04 http://bbs.witech.com.cn/images/common/back.gif
你写你的母语说问题吧~ bootloader problème?
Comment faire pour utiliser ou quoi?
Bootloader se compose désormais de deux parties, 1, WinCE 2, Linux 本帖最后由 飞凌-alexlee 于 2011-3-8 17:10 编辑
Tout d'abord, vous devez être en mesure de compiler linux.
Linux comment le compiler?
1、Installation arm-linux-gcc
2、Extrait du code source de Linux,tar -jxvf linux-2.6.12-090915.tar.bz2
3、make menuconfig
4、“ Load an Alternate Configuration File ”load S3C2440. CFG
5、make zImage
Vous devez d'abord faire ce que quelques-uns des mesures pour voir ce que le problème n'est pas? 1, sur le problème de l'intervalle QT, vous regardez cette vidéo
http://www.tudou.com/programs/view/R1_xOlK2XeI/
2、Le flash toute puce, Linux ne contient que des
(1)Modifier (/arch/arm/mach-s3c2410/devs.c) linux kernel
struct mtd_partition TE24xx_default_nand_part_b[]= {
= {
.name = "Boot",
.size = 0x00100000,
.offset = 0
},
= {
.name = "MyApp",
.size = 0x003c0000,
.offset = 0x00140000,
},
= {
.name = "Kernel",
.size = 0x00300000,
.offset = 0x00500000,
},
= {
.name = "fs_yaffs",
.size = 0x07800000, //原为60M现大小增大一倍
.offset = 0x00800000,
},
/* = {
.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
};
(2)Modifier le code source sera nand.c (boot)
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}
}; 帮助下国际友人~~
楼上有同样问题?
页:
[1]
2