summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2015-11-19 15:43:53 +0900
committerChanho Park <chanho61.park@samsung.com>2015-12-02 11:39:17 +0900
commita0c671782a925be56a0de5cc51cc1d7fc19ab502 (patch)
tree375d70bb74652a642de586a74b43c556e8c5aad2 /include
parent54a85e5da2b8c9476bf8934eabece346e245319e (diff)
downloadu-boot-artik-a0c671782a925be56a0de5cc51cc1d7fc19ab502.tar.gz
u-boot-artik-a0c671782a925be56a0de5cc51cc1d7fc19ab502.tar.bz2
u-boot-artik-a0c671782a925be56a0de5cc51cc1d7fc19ab502.zip
artik: configs: support tizen partition tables
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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/artik_common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/configs/artik_common.h b/include/configs/artik_common.h
index 47c8a29ff..ecf5d0a4b 100644
--- a/include/configs/artik_common.h
+++ b/include/configs/artik_common.h
@@ -245,6 +245,16 @@
"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) \
@@ -261,6 +271,7 @@
"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" \
@@ -287,6 +298,8 @@
"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} " \