lvliangtest 发表于 2010-4-8 17:07:32

lvliangtest 发表于 2010-4-8 17:21:10

飞凌-fatfish 发表于 2010-4-9 08:34:17

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即可

飞凌-fatfish 发表于 2010-4-9 08:35:00

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即可

lvliangtest 发表于 2010-4-9 16:09:46

飞凌-fatfish 发表于 2010-4-10 08:15:14

bootloader kernel文件系统这三个分区号需要对应上。

lvliangtest 发表于 2010-4-10 22:31:14

musicotherapie 发表于 2011-3-4 16:04:55

chinaye1 发表于 2011-3-4 18:28:00

飞凌-alexlee 发表于 2011-3-5 07:55:42

大家好,我是新来的,对嵌入式也是新手。 然后虽然住在北京,我是外国人。。。 计算机本来不容易,那么用中 ...
musicotherapie 发表于 2011-3-4 16:04 http://bbs.witech.com.cn/images/common/back.gif


    你写你的母语说问题吧~
页: [1] 2 3
查看完整版本: fl2440的bootloader能改为单系统吗?