artik530_raptor: configs: determine dfu_alt_info on runtime
authorChanho Park <chanho61.park@samsung.com>
Mon, 24 Apr 2017 13:42:18 +0000 (22:42 +0900)
committerChanho Park <chanho61.park@samsung.com>
Mon, 24 Apr 2017 13:46:13 +0000 (22:46 +0900)
This patch changes CONFIG_DFU_ALT information to evaluate them on
runtime. During running the dfu command, the information will be
evaluated by $bootpart, $modulespart and $rootpart variables.

Change-Id: I34c3cc381702ccd64754cfaed6a37bae65eeb1a6
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
include/configs/artik530_raptor.h

index 68249decda66fbecce37721ac406275c6db1ebec..dbecf16eec8739678f9aef9697f48ac36f701141 100644 (file)
 #define CONFIG_ROOT_PART       7
 #endif
 
+#define CONFIG_SET_DFU_ALT_INFO
+#define CONFIG_SET_DFU_ALT_BUF_LEN     (SZ_1K)
+
 #define CONFIG_DFU_ALT \
        "bl1-emmcboot.img raw 0x1 0x80;" \
        "loader-emmc.img raw 0x81 0x180;" \
        "bl_mon.img raw 0x201 0x100;" \
        "secureos.img raw 0x301 0xc00;" \
        "bootloader.img raw 0xf01 0x800;" \
-       "/uImage ext4 0 1;" \
-       "/zImage ext4 0 1;" \
-       "/uInitrd ext4 0 1;" \
-       "/ramdisk.gz ext4 0 1;" \
-       "/s5p4418-artik532-raptor-rev03.dtb ext4 0 1;" \
-       "/s5p4418-artik530-raptor-rev03.dtb ext4 0 1;" \
-       "/s5p4418-artik530-raptor-rev00.dtb ext4 0 1;" \
-       "/s5p4418-artik532-explorer.dtb ext4 0 1;" \
-       "/s5p4418-artik530-explorer.dtb ext4 0 1;" \
-       "boot part 0 1;" \
-       "modules part 0 2;" \
-       "rootfs part 0 3;" \
+       "/uImage ext4 $rootdev $bootpart;" \
+       "/zImage ext4 $rootdev $bootpart;" \
+       "/uInitrd ext4 $rootdev $bootpart;" \
+       "/ramdisk.gz ext4 $rootdev $bootpart;" \
+       "/s5p4418-artik532-raptor-rev03.dtb ext4 $rootdev $bootpart;" \
+       "/s5p4418-artik530-raptor-rev03.dtb ext4 $rootdev $bootpart;" \
+       "/s5p4418-artik530-raptor-rev00.dtb ext4 $rootdev $bootpart;" \
+       "/s5p4418-artik532-explorer.dtb ext4 $rootdev $bootpart;" \
+       "/s5p4418-artik530-explorer.dtb ext4 $rootdev $bootpart;" \
+       "boot part $rootdev $bootpart;" \
+       "modules part $rootdev $modulespart;" \
+       "rootfs part $rootdev $rootpart;" \
        "params.bin raw 0x1701 0x20;" \
-       "/Image.itb ext4 0 2\0"
+       "/Image.itb ext4 $rootdev $bootpart\0"
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "fdt_high=0xffffffff\0"                                         \
        "nr_cpus=4\0"                                                   \
        "opts=loglevel=4\0"                                             \
        "rootfs_type=ext4\0"                                            \
-       "dfu_alt_info=" CONFIG_DFU_ALT                                  \
        "lcd1_0=s6e8fa0\0"                                              \
        "lcd2_0=gst7d0038\0"                                            \
        "lcd_panel=s6e8fa0\0"                                           \