From 27d6ea356193badc418d79e27ce6cf33120aa743 Mon Sep 17 00:00:00 2001 From: Benjamin Hahn Date: Fri, 28 Nov 2025 17:38:43 +0100 Subject: [PATCH] phytec: set bootdevices and bootmeths in devicetree for imx8 boards Standardboot allows setting bootdevices and bootmeths in devicetree. This is already implemented for imx8mp-libra board. Signed-off-by: Benjamin Hahn --- .../dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi | 16 +++++++++++++++ .../dts/imx8mm-phygate-tauri-l-u-boot.dtsi | 16 +++++++++++++++ .../imx8mp-phyboard-pollux-rdk-u-boot.dtsi | 20 +++++++++++++++++++ .../phytec/phycore_imx8mp/phycore_imx8mp.env | 6 ------ 4 files changed, 52 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi index 512dbc9ee86..143ce6a6d77 100644 --- a/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-phyboard-polis-rdk-u-boot.dtsi @@ -12,6 +12,22 @@ wdt = <&wdog1>; bootph-pre-ram; }; + + bootstd { + bootph-verify; + compatible = "u-boot,boot-std"; + + filename-prefixes = "/", "/boot/"; + bootdev-order = "mmc2", "mmc1", "ethernet"; + + rauc { + compatible = "u-boot,distro-rauc"; + }; + + script { + compatible = "u-boot,script"; + }; + }; }; &pinctrl_i2c1 { diff --git a/arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi b/arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi index f59f119374f..26361780c01 100644 --- a/arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-phygate-tauri-l-u-boot.dtsi @@ -11,6 +11,22 @@ wdt = <&wdog1>; bootph-pre-ram; }; + + bootstd { + bootph-verify; + compatible = "u-boot,boot-std"; + + filename-prefixes = "/", "/boot/"; + bootdev-order = "mmc2", "mmc1", "ethernet"; + + rauc { + compatible = "u-boot,distro-rauc"; + }; + + script { + compatible = "u-boot,script"; + }; + }; }; &pinctrl_uart3 { diff --git a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi index b4efff27a70..4804a204e92 100644 --- a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi +++ b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi @@ -12,6 +12,26 @@ wdt = <&wdog1>; bootph-pre-ram; }; + + bootstd { + bootph-verify; + compatible = "u-boot,boot-std"; + + filename-prefixes = "/", "/boot/"; + bootdev-order = "mmc2", "mmc1", "ethernet"; + + efi { + compatible = "u-boot,distro-efi"; + }; + + rauc { + compatible = "u-boot,distro-rauc"; + }; + + script { + compatible = "u-boot,script"; + }; + }; }; ®_usdhc2_vmmc { diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env b/board/phytec/phycore_imx8mp/phycore_imx8mp.env index 1ebd9f06a0c..f825c7bc61f 100644 --- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env +++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env @@ -3,12 +3,6 @@ bootcmd= fastboot 0; fi; bootflow scan -lb; -#ifdef CONFIG_BOOTMETH_RAUC -bootmeths=rauc script efi -#else -bootmeths=script efi -#endif -boot_targets=mmc2 mmc1 usb ethernet boot_script_dhcp=net_boot_fit.scr.uimg console=ttymxc0,115200 dofastboot=0 -- 2.47.3