From: Chanho Park Date: Mon, 15 May 2017 02:00:58 +0000 (+0900) Subject: artik710_raptor: configs: determine dfu_alt_info on runtime X-Git-Tag: submit/tizen/20171208.054649~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=868d2561bcb1e8a99b3879db4d021e7e9706978d;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik7.git artik710_raptor: configs: determine dfu_alt_info on runtime 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: I240cb4013eaecb70a6475581d7e039d2127aac4e Signed-off-by: Chanho Park --- diff --git a/include/configs/artik710_raptor.h b/include/configs/artik710_raptor.h index f749a92942..e55d13a965 100644 --- a/include/configs/artik710_raptor.h +++ b/include/configs/artik710_raptor.h @@ -340,24 +340,27 @@ #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;" \ "fip-loader-emmc.img raw 0x81 0x280;" \ "fip-secure.img raw 0x301 0x600;" \ "fip-nonsecure.img raw 0xf01 0x800;" \ - "/uImage ext4 0 1;" \ - "/Image ext4 0 1;" \ - "/uInitrd ext4 0 1;" \ - "/ramdisk.gz ext4 0 1;" \ - "/s5p6818-artik710-raptor-rev03.dtb ext4 0 1;" \ - "/s5p6818-artik710-raptor-rev02.dtb ext4 0 1;" \ - "/s5p6818-artik710-raptor-rev01.dtb ext4 0 1;" \ - "/s5p6818-artik710-explorer.dtb ext4 0 1;" \ - "boot part 0 1;" \ - "modules part 0 2;" \ - "rootfs part 0 3;" \ + "/uImage ext4 $rootdev $bootpart;" \ + "/Image ext4 $rootdev $bootpart;" \ + "/uInitrd ext4 $rootdev $bootpart;" \ + "/ramdisk.gz ext4 $rootdev $bootpart;" \ + "/s5p6818-artik710-raptor-rev03.dtb ext4 $rootdev $bootpart;" \ + "/s5p6818-artik710-raptor-rev02.dtb ext4 $rootdev $bootpart;" \ + "/s5p6818-artik710-raptor-rev01.dtb ext4 $rootdev $bootpart;" \ + "/s5p6818-artik710-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=0xffffffffffffffff\0" \ @@ -400,7 +403,6 @@ "root_rw=rw\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" \