This allow the use of:

> run setup_emmc

inside of the U-Boot prompt to do the partitioning of the disk.

Signed-off-by: Otavio Salvador <ota...@ossystems.com.br>
---

 configs/pico-imx7d_defconfig | 2 +-
 include/configs/pico-imx7d.h | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/configs/pico-imx7d_defconfig b/configs/pico-imx7d_defconfig
index 7be695c0cb..e456aedb50 100644
--- a/configs/pico-imx7d_defconfig
+++ b/configs/pico-imx7d_defconfig
@@ -10,6 +10,7 @@ CONFIG_BOOTCOMMAND="run finduuid; run distro_bootcmd"
 # CONFIG_CMD_IMI is not set
 # CONFIG_CMD_XIMG is not set
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
@@ -19,7 +20,6 @@ CONFIG_CMD_USB_MASS_STORAGE=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
 # CONFIG_ISO_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
 CONFIG_FSL_ESDHC=y
 CONFIG_PHYLIB=y
 CONFIG_USB=y
diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h
index d27b925110..9746caae91 100644
--- a/include/configs/pico-imx7d.h
+++ b/include/configs/pico-imx7d.h
@@ -50,6 +50,10 @@
        "ramdiskaddr=0x83000000\0" \
        "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
        "finduuid=part uuid mmc 0:1 uuid\0" \
+       "partitions=" \
+               "uuid_disk=${uuid_gpt_disk};" \
+               "name=rootfs,size=0,uuid=${uuid_gpt_rootfs}\0" \
+       "setup_emmc=mmc dev 0; gpt write mmc 0 $partitions; reset;\0" \
        BOOTENV
 
 #define BOOT_TARGET_DEVICES(func) \
-- 
2.18.0

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to