/* NAND parititon from 2.4.18-swl5 */
static struct mtd_partition friendly_arm_default_nand_part[] = {
[0] = {
.name = "supervivi",
.size = 0x00060000,
.offset = 0,
},
[1] = {
.name = "Kernel",
.offset = 0x00060000,
.size = 0x00200000,
},
[2] = {
.name = "root",
.offset = 0x00260000,
.size = 1024 * 1024 * 1024, //64U * 1024 * 1024 - 0x00260000,
},
[3] = {
.name = "nand",
.offset = 0x00000000, // 怎么能用0呢??
.size = 1024 * 1024 * 1024, //64U * 1024 * 1024 - 0x00260000,
}
};
另外启动信息:
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x000000000000-0x000000060000 : "supervivi"
0x000000060000-0x000000260000 : "Kernel"
0x000000260000-0x000040260000 : "root"
mtd: partition "root" extends beyond the end of device "NAND 128MiB 3,3V 8-bit" -- size truncated to 0x7da0000
0x000000000000-0x000040000000 : "nand"
mtd: partition "nand" extends beyond the end of device "NAND 128MiB 3,3V 8-bit" -- size truncated to 0x8000000
难怪我写第四个分区后第一分区的supervivi会被破坏!!