]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp1: use a specific SD/eMMC partition for U-Boot enviromnent
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 15 Jun 2020 09:18:23 +0000 (11:18 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 28 Jul 2020 15:21:37 +0000 (17:21 +0200)
Save the environment at the end of the U-Boot partition, the GPT
partition named "ssbl" in SD card or eMMC and avoid requirements
on the "bootfs" file system generated via specific raw tools
(like wic and genimage).

With the previous configuration of the U-Boot environment saved in ext4
file, U-Boot need to create/modify the file uenv.txt in the ext4 file
system; so this EXT4 file system need to be generated without some
functionality, like metadata_csum and dir_index, because they are not
supported by U-Boot.

Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
configs/stm32mp15_basic_defconfig
configs/stm32mp15_trusted_defconfig

index 7b8c1c1cc7ffed90b4d83fd619a68a40bedb80c0..0cb190971de529d257259a711363607381547c40 100644 (file)
@@ -16,6 +16,7 @@
        config {
                u-boot,boot-led = "heartbeat";
                u-boot,error-led = "error";
+               u-boot,mmc-env-partition = "ssbl";
                st,adc_usb_pd = <&adc1 18>, <&adc1 19>;
                st,fastboot-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
                st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
index ef3e7f45a3620905254ec2275e1764b4b3400398..afb36cbf1ae34b8cce464623571b29df6e757805 100644 (file)
@@ -17,6 +17,7 @@
        config {
                u-boot,boot-led = "heartbeat";
                u-boot,error-led = "error";
+               u-boot,mmc-env-partition = "ssbl";
                st,fastboot-gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
                st,stm32prog-gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
        };
index e68b0b80821ab3d0caccf7448c7ee47eecb6561d..6020290153499e5eac0f636c696c029054db2009 100644 (file)
@@ -59,13 +59,10 @@ CONFIG_CMD_UBI=y
 # CONFIG_SPL_DOS_PARTITION is not set
 CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-names interrupts-extended interrupt-controller \\\#interrupt-cells interrupt-parent dmas dma-names assigned-clocks assigned-clock-rates assigned-clock-parents hwlocks"
 CONFIG_ENV_IS_NOWHERE=y
-CONFIG_ENV_IS_IN_EXT4=y
+CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_IS_IN_UBI=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
-CONFIG_ENV_EXT4_INTERFACE="mmc"
-CONFIG_ENV_EXT4_DEVICE_AND_PART="0:auto"
-CONFIG_ENV_EXT4_FILE="/uboot.env"
 CONFIG_ENV_UBI_PART="UBI"
 CONFIG_ENV_UBI_VOLUME="uboot_config"
 CONFIG_ENV_UBI_VOLUME_REDUND="uboot_config_r"
index f4aa8432a5a2f300043cdf7de9c696bb15bf7353..fe6f0a70c53ec49eee74f0cdd0ced9cd72724790 100644 (file)
@@ -42,13 +42,10 @@ CONFIG_CMD_MTDPARTS=y
 CONFIG_CMD_UBI=y
 CONFIG_DEFAULT_DEVICE_TREE="stm32mp157c-ev1"
 CONFIG_ENV_IS_NOWHERE=y
-CONFIG_ENV_IS_IN_EXT4=y
+CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_IS_IN_UBI=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
-CONFIG_ENV_EXT4_INTERFACE="mmc"
-CONFIG_ENV_EXT4_DEVICE_AND_PART="0:auto"
-CONFIG_ENV_EXT4_FILE="/uboot.env"
 CONFIG_ENV_UBI_PART="UBI"
 CONFIG_ENV_UBI_VOLUME="uboot_config"
 CONFIG_ENV_UBI_VOLUME_REDUND="uboot_config_r"