From 980e216a8adf313049645c7b0e906e806f109243 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 7 Dec 2017 14:41:39 +0100 Subject: colibri_imx6ull: add sensible default DFU configuration Add DFU configuration which allows access to all MTD partitions. Note that DFU is mostily suited for smaller image uploads e.g. to update U-Boot but does not work well for large images such as rootfs since DFU copies the whole image in a memory buffer first. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- configs/colibri-imx6ull_defconfig | 1 + include/configs/colibri-imx6ull.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/configs/colibri-imx6ull_defconfig b/configs/colibri-imx6ull_defconfig index c2284c0ad9..f5c8987503 100644 --- a/configs/colibri-imx6ull_defconfig +++ b/configs/colibri-imx6ull_defconfig @@ -37,6 +37,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_CMD_UBI=y CONFIG_OF_CONTROL=y CONFIG_DFU_MMC=y +CONFIG_DFU_NAND=y CONFIG_DM_GPIO=y CONFIG_DM_I2C=y CONFIG_MTD_UBI_FASTMAP=y diff --git a/include/configs/colibri-imx6ull.h b/include/configs/colibri-imx6ull.h index 4e17e7c966..d084199f4c 100644 --- a/include/configs/colibri-imx6ull.h +++ b/include/configs/colibri-imx6ull.h @@ -117,6 +117,8 @@ #undef CONFIG_ISO_PARTITION +#define DFU_ALT_NAND_INFO "imx6ull-bcb part 0,1;u-boot1 part 0,2;u-boot2 part 0,3;u-boot-env part 0,4;ubi partubi 0,5" + #define CONFIG_EXTRA_ENV_SETTINGS \ BOOTENV \ MEM_LAYOUT_ENV_SETTINGS \ @@ -125,6 +127,7 @@ UBI_BOOTCMD \ "console=ttymxc0\0" \ "defargs=user_debug=31\0" \ + "dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \ "fdt_board=eval-v3\0" \ "fdt_fixup=;\0" \ "ip_dyn=yes\0" \ -- cgit v1.2.3