分类: LINUX
2008-05-21 21:58:34
Boot options ---> Default kernel command string:
noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200
文件系统建立时,设定linuxrc就可,mtdblock2的设定在这是64M的分区信息,我们用的是32M的
要修改:
static struct mtd_partition partition_info[] ={ { /* 1MB */ name: "bootloader", size: 0x00100000, offset: 0x0, },{ /* 3MB */ name: "kernel", size: 0x00300000, offset: 0x00100000, }, { /* 40MB */ name: "root", size: 0x02800000, offset: 0x00400000, }, { /* 20MB */ name: "user", size: 0x00f00000, offset: 0x02d00000, } }; |
struct s3c2410_nand_set nandset ={ nr_partitions: 4, /* the number of partitions */ partitions: partition_info, /* partition table */ }; |
static struct mtd_partition partition_info[] ={
{ /* 1MB */
name: "bootloader",
size: 0x00100000,
offset: 0x0,
},{ /* 3MB */
name: "kernel",
size: 0x00300000,
offset: 0x00100000,
}, { /* 24MB */
name: "root",
size: 0x01800000,
offset: 0x00400000,
}, { /* 4MB */
name: "user",
size: 0x00400000,
offset: 0x01d00000,
}
};