From 8e204806f616af482f8509d17acc1978777ac8f6 Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Fri, 23 Jun 2023 14:47:49 +0200 Subject: v7a: add RAUC support for riotboard * Enable barebox bootchooser framework * Add a redundant root partition to the genimage config * Add appropriate variables to the barebox defaultenv so the bootchooser can decide into which partition to boot * Add a state backend to the device tree fragment * Map partitions in rauc-udev compatibility layer Signed-off-by: Roland Hieber --- configs/platform-v7a/dts/bootstate.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'configs/platform-v7a/dts') diff --git a/configs/platform-v7a/dts/bootstate.dtsi b/configs/platform-v7a/dts/bootstate.dtsi index 6415dcc..b118975 100644 --- a/configs/platform-v7a/dts/bootstate.dtsi +++ b/configs/platform-v7a/dts/bootstate.dtsi @@ -74,6 +74,33 @@ }; #endif +/** RIoTboard i.MX6S **********************************************************/ +#ifdef imx6s_riotboard_dts +/ { + aliases { + state = &state_usdhc4; + }; + + state_usdhc4: state { + #address-cells = <1>; + #size-cells = <1>; + compatible = "barebox,state"; + magic = <0x95ab2de7>; + backend-type = "raw"; + backend = <&backend_state_usdhc4>; + backend-storage-type = "direct"; + backend-stridesize = <0x40>; + }; +}; + +&usdhc4 { + backend_state_usdhc4: partition@100000 { + label = "barebox-state"; + reg = <0x100000 0x40000>; + }; +}; +#endif + /** Generic bootstate node for all platforms **********************************/ / { state: state { -- cgit v1.2.3