summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-12-07 14:41:39 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-12-22 14:01:56 +0100
commit980e216a8adf313049645c7b0e906e806f109243 (patch)
tree7e5f7ed91b7f91ff127e32a82fb949b58e0ab3db
parentaf4cb9169559ad7dae59029d5ef8ba6bdbaa930a (diff)
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 <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--configs/colibri-imx6ull_defconfig1
-rw-r--r--include/configs/colibri-imx6ull.h3
2 files changed, 4 insertions, 0 deletions
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" \