ARM: LPC32XX: Update PHY3250 MTD partition info
Subsystems (3)
PATCH 1/1 ARM: LPC32XX: Update PHY3250 MTD partition info
Adding the two other partitions of the phycore3250's nand flash:
u-boot and the u-boot environment partitions. The former can be useful if you are feeling adventurous and would like to upgrade u-boot. The later is very useful for userspace utilities like fw_setenv which can be used to modify the bootargs for the next reboot or insert many other useful scripts.
In addition, adding these partitions brings the mtdblock numbers back to what they were with the 2.6.27.8 release of the linux kernel shipped with the phycore3250 evm.
--- arch/arm/mach-lpc32xx/phy3250.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
arch/arm/mach-lpc32xx/phy3250.c +10 -0
@@ -345,6 +345,16 @@ static int nandwp_enable(int enable)#define BLK_SIZE (512 * 32)static struct mtd_partition __initdata phy3250_nand_partition[] = { { + .name ="phy3250-uboot" , + .offset =0 , + .size = (BLK_SIZE *90 ) + }, + { + .name ="phy3250-ubt-env" , + .offset = (BLK_SIZE *90 ), + .size = (BLK_SIZE *10 ) + }, + { .name ="phy3250-kernel" , .offset = (BLK_SIZE *100 ), .size = (BLK_SIZE *256 )
Signature · 1 line
1.6.3.3
PATCH 1/1 ARM: LPC32XX: Update PHY3250 MTD partition info
Hi Ben,
Thanks for posting these. The MTD support is currently only available on our GIT server, although we plan on getting the MTD patches into the mtd subtree soon..
Quoted 28 lines
Adding the two other partitions of the phycore3250's nand flash:
u-boot and the u-boot environment partitions. The former can be useful if you are feeling adventurous and would like to upgrade u-boot. The later is very useful for userspace utilities likefw_setenvwhich can be used to modify the bootargs for the next reboot or insert many other useful scripts.In addition, adding these partitions brings the mtdblock numbers back to what they were with the 2.6.27.8 release of the linux kernel shipped with the phycore3250 evm.
Signed-off-by Ben Gardiner <[email protected]>--- arch/arm/mach-lpc32xx/phy3250.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)arch/arm/mach- renamed from arch/arm/mach-lpc32xx/phy3250.c +0
-0
lpc32xx/phy3250.c
index b908d17..2672b63 100644arch/arm/mach-lpc32xx/phy3250.c +3
-0@@ -345,6 +345,16 @@ static int nandwp_enable(int enable)#define BLK_SIZE (512 * 32)static struct mtd_partition __initdata phy3250_nand_partition[] = { { + .name ="phy3250-uboot" , + .offset =0 , + .size = (BLK_SIZE *90 )
arch/arm/mach-lpc32xx/phy3250.c static int nandwp_enable(int enable) · line 360
Quoted 10 lines
arch/arm/mach-lpc32xx/phy3250.c +7
-0+ }, + { + .name = "phy3250-ubt-env", + .offset = (BLK_SIZE * 90), + .size = (BLK_SIZE *10 ) + }, + { .name = "phy3250-kernel", .offset = (BLK_SIZE *100 ), .size = (BLK_SIZE * 256)
This partitioning scheme isn't set it stone yet. We'll look at it again once we get those patches up for review.
Quoted 2 lines
--
1.6.3.3
thanks,
Kevin
PATCH 1/1 ARM: LPC32XX: Update PHY3250 MTD partition info
Quoted 39 lines · Kevin Wells
Hi Ben,
Thanks for posting these. The MTD support is currently only available on our GIT server, although we plan on getting the MTD patches into the mtd subtree soon..
Quoted 33 lines
Adding the two other partitions of the phycore3250's nand flash:
u-boot and the u-boot environment partitions. The former can be useful if you are feeling adventurous and would like to upgrade u-boot. The later is very useful for userspace utilities likefw_setenvwhich can be used to modify the bootargs for the next reboot or insert many other useful scripts.In addition, adding these partitions brings the mtdblock numbers back to what they were with the 2.6.27.8 release of the linux kernel shipped with the phycore3250 evm.
Signed-off-by Ben Gardiner <[email protected]>--- arch/arm/mach-lpc32xx/phy3250.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)arch/arm/mach- renamed from arch/arm/mach-lpc32xx/phy3250.c +0
-0
lpc32xx/phy3250.c
index b908d17..2672b63 100644arch/arm/mach-lpc32xx/phy3250.c +8
-0@@ -345,6 +345,16 @@ static int nandwp_enable(int enable)#define BLK_SIZE (512 * 32)static struct mtd_partition __initdata phy3250_nand_partition[] = { { + .name ="phy3250-uboot" , + .offset =0 , + .size = (BLK_SIZE *90 ) + }, + { + .name ="phy3250-ubt-env" , + .offset = (BLK_SIZE *90 ), + .size = (BLK_SIZE *10 )
Quoted 8 lines
arch/arm/mach-lpc32xx/phy3250.c static int nandwp_enable(int enable) · line 360
Quoted 5 lines
arch/arm/mach-lpc32xx/phy3250.c +2
-0+ }, + { .name = "phy3250-kernel", .offset = (BLK_SIZE *100 ), .size = (BLK_SIZE * 256)This partitioning scheme isn't set it stone yet. We'll look at it again once we get those patches up for review.
The last two offsets could just be:
.offset = MTDPART_OFS_APPEND,
That way then automatically align to the next block offset. It's cleaner and will make changing the partitioning scheme easier.
Regards,
Hartley
PATCH 1/1 ARM: LPC32XX: Update PHY3250 MTD partition info
Quoted 8 lines · H Hartley Sweeten
Quoted 7 lines · Kevin Wells
Hi Ben,
Thanks for posting these. The MTD support is currently only available on our GIT server, although we plan on getting the MTD patches into the mtd subtree soon.. This partitioning scheme isn't set it stone yet. We'll look at it again once we get those patches up for review.
Ok. Please consider including Linux access to the u-boot environment (at least) and u-boot in the MTD partitions that are set in stone.
Quoted 6 lines
The last two offsets could just be:
? ? ? ?.offset =
MTDPART_OFS_APPEND,That way then automatically align to the next block offset. ?It's cleaner and will make changing the partitioning scheme easier.
Cool. Thanks for the tip, Hartley.
Regards,
Ben Gardiner
Signature · 4 lines
Ben Gardiner Nanometrics Inc. +1 (613) 592-6776 x239 http://www.nanometrics.ca