artik: configs: support tizen partition tables
authorChanho Park <chanho61.park@samsung.com>
Thu, 19 Nov 2015 06:43:53 +0000 (15:43 +0900)
committerChanho Park <chanho61.park@samsung.com>
Wed, 2 Dec 2015 02:39:17 +0000 (11:39 +0900)
This patch supports tizen partition tables. The partition tables
of the tizen are consisted three partition, such as rootfs,
system-data and user partition.

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

index 47c8a29ffaeadf0d7aa1b1d944cc5f6b563d7e12..ecf5d0a4b76146f2f02b4cb09b03b470a2612718 100644 (file)
                "MiB,uuid=${uuid_gpt_module};"                          \
        "name=rootfs,size=-,uuid=${uuid_gpt_rootfs}\0"
 
+#define PARTS_TIZEN                                                    \
+       "uuid_disk=${uuid_gpt_disk};"                                   \
+       "name=boot,start=1MiB,size=" __stringify(CONFIG_BOOT_PART_SIZE) \
+               "MiB,uuid=${uuid_gpt_boot};"                            \
+       "name=modules,size=" __stringify(CONFIG_MODULE_PART_SIZE)       \
+               "MiB,uuid=${uuid_gpt_module};"                          \
+       "name=rootfs,size=2048MiB,uuid=${uuid_gpt_rootfs};"             \
+       "name=system-data,size=256MiB,uuid=${uuid_gpt_system_data};"    \
+       "name=user,size=-,uuid=${uuid_gpt_user}\0"
+
 #define PARTS_ANDROID                                                  \
        "uuid_disk=${uuid_gpt_disk};"                                   \
        "name=boot,start=1MiB,size=" __stringify(CONFIG_BOOT_PART_SIZE) \
        "rootfslen=" __stringify(CONFIG_ROOTFS_LEN) "\0"                \
        "partitions=" PARTS_DEFAULT                                     \
        "partitions_android=" PARTS_ANDROID                             \
+       "partitions_tizen=" PARTS_TIZEN                                 \
        "rootdev=" __stringify(CONFIG_ROOT_DEV) "\0"                    \
        "rootpart=" __stringify(CONFIG_ROOT_PART) "\0"                  \
        "bootpart=" __stringify(CONFIG_BOOT_PART) "\0"                  \
        "android_format=gpt write mmc 0 $partitions_android;"           \
                "setenv bootcmd run android_boot;"                      \
                "saveenv; mmc rescan; fastboot\0"                       \
+       "tizen_format=gpt write mmc 0 $partitions_tizen;"               \
+               "mmc rescan; fastboot\0"                                \
        "recoveryboot=run sdrecovery; setenv recoverymode recovery;"    \
                "run ramfsboot\0"                                       \
        "ramfsboot=setenv bootargs ${console} "                         \