[PATCH v2 06/12] sandbox: dts: define default environment node
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Oct 12 02:26:13 EDT 2020
Now that we can define a hostfile that's persistent over barebox resets,
but does not rely on a hard coded filename, we can have an always-on
environment node.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
v1 -> v2: no changes
---
arch/sandbox/dts/sandbox.dts | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
index b3327837a38a..afca02d41014 100644
--- a/arch/sandbox/dts/sandbox.dts
+++ b/arch/sandbox/dts/sandbox.dts
@@ -11,10 +11,30 @@
};
chosen {
+ environment {
+ compatible = "barebox,environment";
+ device-path = &part_env;
+ };
};
memory {
device_type = "memory";
reg = <0 0 0 0>;
};
+
+ stickypage: stickypage {
+ compatible = "barebox,hostfile";
+ reg = <0 0 0 4096>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ part_env: env at 400 {
+ reg = <0x400 0x800>;
+ label = "env";
+ };
+ };
+ };
};
--
2.28.0
More information about the barebox
mailing list