brcm63xx: rename mtd partitions to the ones used by other openwrt platforms - should make the automatic rootfs overlay split work and fix the mounting of the right partition

SVN-Revision: 13130
This commit is contained in:
Felix Fietkau 2008-11-06 12:52:39 +00:00
parent 3fb55fea83
commit d0388bbe5c

View file

@ -128,10 +128,6 @@ int parse_cfe_partitions( struct mtd_info *master, struct mtd_partition **pparts
nrparts++; nrparts++;
namelen =+ 6; namelen =+ 6;
}; };
if (sparelen > 0){
nrparts++;
namelen =+ 6;
};
// Ask kernel for more memory. // Ask kernel for more memory.
parts = kmalloc(sizeof(*parts)*nrparts+10*nrparts, GFP_KERNEL); parts = kmalloc(sizeof(*parts)*nrparts+10*nrparts, GFP_KERNEL);
if (!parts){ if (!parts){
@ -145,24 +141,20 @@ int parse_cfe_partitions( struct mtd_info *master, struct mtd_partition **pparts
parts[curpart].size = master->erasesize; parts[curpart].size = master->erasesize;
curpart++; curpart++;
if (kernellen > 0){ if (kernellen > 0){
parts[curpart].name = "Kernel"; parts[curpart].name = "kernel";
parts[curpart].offset = kerneladdr; parts[curpart].offset = kerneladdr;
parts[curpart].size = kernellen; parts[curpart].size = kernellen;
curpart++; curpart++;
}; };
if (rootfslen > 0){ if (rootfslen > 0){
parts[curpart].name = "Rootfs"; parts[curpart].name = "rootfs";
parts[curpart].offset = rootfsaddr; parts[curpart].offset = rootfsaddr;
parts[curpart].size = rootfslen; parts[curpart].size = rootfslen;
if (sparelen > 0)
parts[curpart].size += sparelen;
curpart++; curpart++;
}; };
if (sparelen > 0){ parts[curpart].name = "nvram";
parts[curpart].name = "OpenWrt";
parts[curpart].offset = spareaddr;
parts[curpart].size = sparelen;
curpart++;
};
parts[curpart].name = "NVRAM";
parts[curpart].offset = master->size - master->erasesize; parts[curpart].offset = master->size - master->erasesize;
parts[curpart].size = master->erasesize; parts[curpart].size = master->erasesize;
for (i = 0; i < nrparts; i++) { for (i = 0; i < nrparts; i++) {