From 51c2fb8ca398dfccf7a145e8072fe46274a2eacd Mon Sep 17 00:00:00 2001 From: "jino.cho" Date: Tue, 26 Apr 2016 09:24:59 +0900 Subject: [PATCH] artik: configs: fix boot partition offset This patch fixes boot partition offset of DFU for the Thor downloader. CONFIG_DFU_ALT_BOOT_SD information was added to support booting by SD card. But, there was an error because this feature was under developing at that time. EMMC and SD have differnt offset because of the difference between GPT and MBR. EMMC and SD use GPT and MBR, respectively. GPT have a partition for boot separately. So, EMMC don't need offset. But, SD need one block as a offset for MBR information. Change-Id: I0c16c4fc8466d6c22567b43fe357c3354c0b0381 Signed-off-by: jino.cho --- include/configs/artik_common.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/configs/artik_common.h b/include/configs/artik_common.h index c2c507dc8..750e1138a 100644 --- a/include/configs/artik_common.h +++ b/include/configs/artik_common.h @@ -310,14 +310,14 @@ "bl1 raw 0x0 0x1e mmcpart 1;" \ "bl2 raw 0x1e 0x20 mmcpart 1;" \ "tzsw raw 0x2ce 0x138 mmcpart 1;" \ - "params raw 0x406 0x20 \0" + "params raw 0x407 0x20\0" #define CONFIG_DFU_ALT_BOOT_SD \ - "u-boot raw 0x3e 0x290;" \ - "bl1 raw 0x0 0x1e;" \ - "bl2 raw 0x1e 0x20;" \ - "tzsw raw 0x2ce 0x138;" \ - "params raw 0x406 0x20\0" + "u-boot raw 0x3f 0x290;" \ + "bl1 raw 0x1 0x1e;" \ + "bl2 raw 0x1f 0x20;" \ + "tzsw raw 0x2cf 0x138;" \ + "params raw 0x407 0x20\0" #endif #ifdef CONFIG_MACH_ARTIK10 @@ -326,14 +326,14 @@ "bl1 raw 0x0 0x1e mmcpart 1;" \ "bl2 raw 0x1e 0x20 mmcpart 1;" \ "tzsw raw 0x2ce 0x200 mmcpart 1;" \ - "params raw 0x4ce 0x20 \0" + "params raw 0x4cf 0x20\0" #define CONFIG_DFU_ALT_BOOT_SD \ - "u-boot raw 0x3e 0x290;" \ - "bl1 raw 0x0 0x1e;" \ - "bl2 raw 0x1e 0x20;" \ - "tzsw raw 0x2ce 0x200;" \ - "params raw 0x4ce 0x20\0" + "u-boot raw 0x3f 0x290;" \ + "bl1 raw 0x1 0x1e;" \ + "bl2 raw 0x1f 0x20;" \ + "tzsw raw 0x2cf 0x200;" \ + "params raw 0x4cf 0x20\0" #endif #define PARTS_DEFAULT \ -- 2.34.1