ARM: dts: am335x-phytec-phyflex: Increase kernel partition on SPI NOR
PATCH 1/3 ARM: dts: am335x-phytec-phyflex: Increase kernel partition on SPI NOR
Increase kernel partition to end of SPI NOR.
--- arch/arm/dts/am335x-phytec-phyflex.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/am335x-phytec-phyflex.dts +1 -1
@@ -187,7 +187,7 @@ partition@4 { label = "kernel"; - reg = <0xe0000 0x400000>; + reg = <0xe0000 0x0>; }; }; };
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/3 ARM: dts: am335x-phytec-phycore-som: Increase kernel partition on SPI NOR
Increase kernel partition to end of SPI NOR.
--- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/am335x-phytec-phycore-som.dtsi +1 -1
@@ -162,7 +162,7 @@ partition@4 { label = "kernel"; - reg = <0xe0000 0x400000>; + reg = <0xe0000 0x0>; }; }; };
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/3 ARM: phytec: am335x: Update enviroment comment
In reply to Teresa GámezWe do not have a root partition in spi flash any more. Adapt comment.
--- .../arm/boards/phytec-phycore-am335x/defaultenv-phycore-am335x/boot/spi | 2 +- .../arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/spi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boards/phytec-phycore-am335x/defaultenv-phycore-am335x/boot/spi +1 -1
@@ -4,5 +4,5 @@ global.bootm.image="/dev/m25p0.kernel" bootargs-ip -# Use rootfs form NAND for now as rootfs partition < 4MB +# Use rootfs form NAND global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root,2048 rw rootfstype=ubifs"
arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/spi +1 -1
@@ -4,5 +4,5 @@ global.bootm.image="/dev/m25p0.kernel" bootargs-ip -# Use rootfs form NAND for now as rootfs partition < 4MB +# Use rootfs form NAND global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root,2048 rw rootfstype=ubifs"
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Hi Teresa,
Quoted 12 lines · Teresa Gámez
Increase kernel partition to end of SPI NOR.
Signed-off-by Teresa Gámez <[email protected]>--- arch/arm/dts/am335x-phytec-phyflex.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/dts/am335x-phytec-phyflex.dts +0
-0
arch/arm/dts/am335x-phytec-phyflex.dts line 191
Quoted 6 lines
arch/arm/dts/am335x-phytec-phyflex.dts +1
-1@@ -187,7 +187,7 @@ partition@4 { label = "kernel"; - reg = <0xe0000 0x400000>; + reg = <0xe0000 0x0>; };
I wasn't aware barebox handles this case like you intend here. What about the kernel? Won't you end up with a zero sized partition there?
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Hello Sascha,
Am Dienstag, den 09.12.2014, 10:13 +0100 schrieb Sascha Hauer:
Quoted 16 lines
Hi Teresa,
Quoted 13 lines · Teresa Gámez
Increase kernel partition to end of SPI NOR.
Signed-off-by Teresa Gámez <[email protected]>--- arch/arm/dts/am335x-phytec-phyflex.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/dts/am335x-phytec-phyflex.dts +0
-0@@ -187,7 +187,7 @@
Quoted 8 lines
arch/arm/dts/am335x-phytec-phyflex.dts line 191
Quoted 5 lines
arch/arm/dts/am335x-phytec-phyflex.dts +1
-1partition@4 { label = "kernel"; - reg = <0xe0000 0x400000>; + reg = <0xe0000 0x0>; };I wasn't aware barebox handles this case like you intend here. What about the kernel? Won't you end up with a zero sized partition there?
have a look at include/linux/mtd/partitions.h in the linux kernel.
There is a macro defined
#define MTDPART_SIZ_FULL (0)
And the comment above says:
size: the partition size; if defined as MTDPART_SIZ_FULL, the partition will extend to the end of the master MTD device.
This works fine for kernel and barebox.
Teresa
Quoted 3 lines
Sascha
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 30 lines · Teresa Gámez
Hello Sascha,
Am Dienstag, den 09.12.2014, 10:13 +0100 schrieb Sascha Hauer:
Quoted 16 lines
Hi Teresa,
Quoted 13 lines · Teresa Gámez
Increase kernel partition to end of SPI NOR.
Signed-off-by Teresa Gámez <[email protected]>--- arch/arm/dts/am335x-phytec-phyflex.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/dts/am335x-phytec-phyflex.dts +0
-0@@ -187,7 +187,7 @@Quoted 8 lines
arch/arm/dts/am335x-phytec-phyflex.dts line 191
Quoted 5 lines
arch/arm/dts/am335x-phytec-phyflex.dts +1
-1partition@4 { label = "kernel"; - reg = <0xe0000 0x400000>; + reg = <0xe0000 0x0>; };I wasn't aware barebox handles this case like you intend here. What about the kernel? Won't you end up with a zero sized partition there?
have a look at
include/linux/mtd/partitions.hin the linux kernel.
Quoted 8 lines
There is a macro defined
#defineMTDPART_SIZ_FULL(0)And the comment above says:
size: the partition size; if defined asMTDPART_SIZ_FULL, the partition will extend to the end of the master MTD device.This works fine for kernel and barebox.
Oh nice, didn't know that. In this case consider your patches applied.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox