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.

Signed-off-by: Sascha Hauer <[email protected]>
---
 arch/arm/dts/at91sam9x5ek.dts | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm/dts/at91sam9x5ek.dts b/arch/arm/dts/at91sam9x5ek.dts
index c753268fb9..3a6976a7d9 100644
--- a/arch/arm/dts/at91sam9x5ek.dts
+++ b/arch/arm/dts/at91sam9x5ek.dts
@@ -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 {
-- 
2.20.1


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

Reply via email to