From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kRjZX-0004vU-5a for barebox@lists.infradead.org; Sun, 11 Oct 2020 22:12:08 +0000 From: Ahmad Fatoum Date: Mon, 12 Oct 2020 00:11:54 +0200 Message-Id: <20201011221200.9023-5-a.fatoum@pengutronix.de> In-Reply-To: <20201011221200.9023-1-a.fatoum@pengutronix.de> References: <20201011221200.9023-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 05/11] sandbox: dts: define default environment node To: barebox@lists.infradead.org Cc: Ahmad Fatoum 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 --- 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@400 { + reg = <0x400 0x800>; + label = "env"; + }; + }; + }; }; -- 2.28.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox