artik: configs: fix boot partition offset 05/67205/2
authorjino.cho <jino.cho@samsung.com>
Tue, 26 Apr 2016 00:24:59 +0000 (09:24 +0900)
committerjino.cho <jino.cho@samsung.com>
Tue, 26 Apr 2016 02:50:09 +0000 (11:50 +0900)
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 <jino.cho@samsung.com>
include/configs/artik_common.h

index c2c507dc8a6ca120f01fedd128185ebb7daadf28..750e1138aa648c607429cdbd0a8a3d47de1bdfc8 100644 (file)
        "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
        "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                                                  \