Skip to contentSkip to conversation

ARM: dts: am335x-phytec-phyflex: Increase kernel partition on SPI NOR

PATCH In review Teresa Gámez 2 participants 6 messages Dec 8, 2014 – Dec 9, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

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
index c4481f5..0de7e87 100644
@@ -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
#1 lore raw

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
index f1bcb8b..98945b2 100644
@@ -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
#2 lore raw

PATCH 3/3 ARM: phytec: am335x: Update enviroment comment

In reply to Teresa Gámez

We 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
index c87299a..2147a6c 100644
@@ -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
index c87299a..2147a6c 100644
@@ -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
#3 lore raw
In reply to Teresa Gámez

Hi Teresa,

Quoted 12 lines · Teresa Gámez

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 +0 -0
index c4481f5..0de7e87 100644

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
#4 lore raw

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.

---
 arch/arm/dts/am335x-phytec-phyflex.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/am335x-phytec-phyflex.dts +0 -0
index c4481f5..0de7e87 100644
@@ -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 -1
 		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?

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

#5 lore raw
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.

---
 arch/arm/dts/am335x-phytec-phyflex.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/am335x-phytec-phyflex.dts +0 -0
index c4481f5..0de7e87 100644
@@ -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 -1
 		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?

have a look at include/linux/mtd/partitions.h in the linux kernel.

Quoted 8 lines

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.

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