pico-imx7d: Add default DFU targets
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 29 Jun 2018 18:19:09 +0000 (15:19 -0300)
committerStefano Babic <sbabic@denx.de>
Mon, 23 Jul 2018 08:59:48 +0000 (10:59 +0200)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
configs/pico-imx7d_defconfig
include/configs/pico-imx7d.h

index e456aedb508eb03e689ae6ac1dd94497cb27db39..04823ca439a82e5374837a63e49f1897b19b0de1 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_BOOTCOMMAND="run finduuid; run distro_bootcmd"
 # CONFIG_CMD_BOOTD is not set
 # CONFIG_CMD_IMI is not set
 # CONFIG_CMD_XIMG is not set
+CONFIG_CMD_DFU=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
@@ -19,7 +20,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y
 # CONFIG_CMD_MII is not set
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
-# CONFIG_ISO_PARTITION is not set
+CONFIG_DFU_MMC=y
 CONFIG_FSL_ESDHC=y
 CONFIG_PHYLIB=y
 CONFIG_USB=y
index 9746caae917b74f42584995ebd7656005012353f..23ac103f13066e82ad1160aef4b1e56fe6f5abd0 100644 (file)
 /* MMC Config */
 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
 
+#define CONFIG_DFU_ENV_SETTINGS \
+       "dfu_alt_info=u-boot raw 0x2 0x400 mmcpart 1;" \
+               "/boot/zImage ext4 0 1;" \
+               "/boot/imx7d-pico-pi.dtb ext4 0 1;" \
+               "rootfs part 0 1\0" \
+
 #define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */
 #define CONFIG_SYS_MMC_IMG_LOAD_PART   1
 
@@ -49,6 +55,7 @@
        "ramdisk_addr_r=0x83000000\0" \
        "ramdiskaddr=0x83000000\0" \
        "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
+       CONFIG_DFU_ENV_SETTINGS \
        "finduuid=part uuid mmc 0:1 uuid\0" \
        "partitions=" \
                "uuid_disk=${uuid_gpt_disk};" \