diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-19 09:34:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-19 09:34:57 +0200 |
commit | d87ad092255c6742c653f864ac8a663e7f8c4b46 (patch) | |
tree | 64624ba92ae9638b04fdaa70837ffca4cadd27cc | |
parent | bee1da7fcc005edab18fde60fd2ce956d12c5e18 (diff) | |
download | barebox-d87ad092255c6742c653f864ac8a663e7f8c4b46.tar.gz barebox-d87ad092255c6742c653f864ac8a663e7f8c4b46.tar.xz |
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.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/dts/at91sam9263ek.dts | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/arch/arm/dts/at91sam9263ek.dts b/arch/arm/dts/at91sam9263ek.dts index 9013108144..29a615f482 100644 --- a/arch/arm/dts/at91sam9263ek.dts +++ b/arch/arm/dts/at91sam9263ek.dts @@ -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 |