Skip to contentSkip to conversation

AT91: Update partition tables

PATCH New Sascha Hauer 1 participant 3 messages Oct 19, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover AT91: Update partition tables

This updates the NAND partition tables of the AT91sam9263ek and the AT91sam9x5ek boards. The current partition tables are unsuitable for modern Kernel and barebox sizes, so take the step and update to an incompatible partitioning. While this breaks existing setups I still think that this is acceptable for Evaluation boards.

This is series is meant to be placed before Ahmads "ARM: at91: define new at91_multi_defconfig" patch: With it we are able to enable the at91sam9263ek and the at91sam9x5ek for the new multi_defconfig as well.

Sascha Hauer (2):
ARM: at91sam9263ek: Update NAND partitioning
ARM: at91sam9x5ek: Update NAND partitioning

 arch/arm/dts/at91sam9263ek.dts | 34 +++++++++++++++++++++++++++++++++-
 arch/arm/dts/at91sam9x5ek.dts  | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 1 deletion(-)
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/2 ARM: at91sam9263ek: Update NAND partitioning

The current NAND partitioning is derived from the kernel dts. A current barebox built with at91sam9263ek_defconfig no longer fits into the barebox partition. Also a Kernel built with sama5_defconfig no longer fits into the kernel partition.
This makes the board quite unusable for modern setups, so take the step and do an incompatible update of the partitioning.

---
 arch/arm/dts/at91sam9263ek.dts | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)
arch/arm/dts/at91sam9263ek.dts +33 -1
index 9013108144..29a615f482 100644
@@ -3,12 +3,44 @@
 	chosen {
 		environment {
 			compatible = "barebox,environment";
-			device-path = &nand_controller, "partname:bareboxenv";
+			device-path = &environment_nand;
 		};
 	};
 
 };
 
+&nand_controller {
+	nand@3 {
+		/delete-node/ partitions;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			at91bootstrap@0 {
+				label = "at91bootstrap";
+				reg = <0x0 0x20000>;
+			};
+
+			barebox@20000 {
+				label = "barebox";
+				reg = <0x20000 0x100000>;
+			};
+
+			environment_nand: bareboxenv@120000 {
+				label = "barebox-environment";
+				reg = <0x120000 0x20000>;
+			};
+
+			rootfs@140000 {
+				label = "root";
+				reg = <0x140000 0x0>;
+			};
+		};
+	};
+};
+
 &{/ahb/apb/mmc@fff84000} {
 	pinctrl-0 = <
 		&pinctrl_board_mmc1
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 2/2 ARM: at91sam9x5ek: Update NAND partitioning

In reply to Sascha Hauer

The current NAND partitioning is derived from the kernel dts. A current barebox built with at91sam9x5ek_defconfig no longer fits into the barebox partition. Also a Kernel built with sama5_defconfig no longer fits into the kernel partition.
This makes the board quite unusable for modern setups, so take the step and do an incompatible update of the partitioning.

---
 arch/arm/dts/at91sam9x5ek.dts | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
arch/arm/dts/at91sam9x5ek.dts +32 -0
index c753268fb9..3a6976a7d9 100644
@@ -54,6 +54,38 @@
 	phy-mode = "rmii";
 };
 
+&nand_controller {
+	nand@3 {
+		/delete-node/ partitions;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			at91bootstrap@0 {
+				label = "at91bootstrap";
+				reg = <0x0 0x20000>;
+			};
+
+			barebox@20000 {
+				label = "barebox";
+				reg = <0x20000 0x100000>;
+			};
+
+			environment_nand: bareboxenv@120000 {
+				label = "barebox-environment";
+				reg = <0x120000 0x20000>;
+			};
+
+			rootfs@140000 {
+				label = "root";
+				reg = <0x140000 0x0>;
+			};
+		};
+	};
+};
+
 &{/ahb/apb/pinctrl@fffff400} {
 	spi0 {
 		pinctrl_board_spi: spi-board {
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox