[PATCH] arm: baltos: add environment node

yegorslists at googlemail.com yegorslists at googlemail.com
Tue Jul 14 01:13:28 EDT 2020


From: Yegor Yefremov <yegorslists at googlemail.com>

Use the second SPL partition in NAND for environment storage.

Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
 arch/arm/dts/am335x-baltos-minimal.dts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/am335x-baltos-minimal.dts b/arch/arm/dts/am335x-baltos-minimal.dts
index 137c177b2..8dfad3eb0 100644
--- a/arch/arm/dts/am335x-baltos-minimal.dts
+++ b/arch/arm/dts/am335x-baltos-minimal.dts
@@ -22,6 +22,11 @@
 
 	chosen {
 		stdout-path = &uart0;
+
+		environment-nand {
+			compatible = "barebox,environment";
+			device-path = &nand, "partname:SPL.backup1";
+		};
 	};
 
 	cpus {
@@ -179,7 +184,7 @@
 	ranges = <0 0 0x08000000 0x10000000>;	/* CS0: NAND */
 	status = "okay";
 
-	nand at 0,0 {
+	nand: nand at 0,0 {
 		reg = <0 0 0>; /* CS0, offset 0 */
 		nand-bus-width = <8>;
 		ti,nand-ecc-opt = "bch8";
-- 
2.17.0




More information about the barebox mailing list