mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 1/2] ARM: at91sam9263ek: Update NAND partitioning
Date: Mon, 19 Oct 2020 09:47:01 +0200	[thread overview]
Message-ID: <20201019074702.8809-2-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20201019074702.8809-1-s.hauer@pengutronix.de>

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>
---
 arch/arm/dts/at91sam9263ek.dts | 34 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

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
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-10-19  7:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-19  7:47 [PATCH 0/2] AT91: Update partition tables Sascha Hauer
2020-10-19  7:47 ` Sascha Hauer [this message]
2020-10-19  7:47 ` [PATCH 2/2] ARM: at91sam9x5ek: Update NAND partitioning Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201019074702.8809-2-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox