1 #ifndef _TIZEN_ENVIRONMENT_H_
2 #define _TIZEN_ENVIRONMENT_H_
5 * Bootable media layout:
6 * dev: SD eMMC(part boot)
11 * ENV 2560 2560(part user)
13 * MBR Primary partiions:
14 * Num Name Size Offset
15 * 1. BOOT: 32MiB 12MiB
23 /* Tizen - partitions definitions */
24 #define PARTS_CSA "csa-mmc"
25 #define PARTS_BOOT "boot"
26 #define PARTS_QBOOT "qboot"
27 #define PARTS_CSC "csc"
28 #define PARTS_ROOT "platform"
29 #define PARTS_DATA "data"
30 #define PARTS_UMS "ums"
32 #define PARTS_ODROID \
33 "This board uses MSDOS partition table."
35 #define PARTS_TRATS2 \
36 "uuid_disk=${uuid_gpt_disk};" \
37 "name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
38 "name="PARTS_BOOT",size=60MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
39 "name="PARTS_QBOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_QBOOT"};" \
40 "name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
41 "name="PARTS_ROOT",size=1536MiB,uuid=${uuid_gpt_"PARTS_ROOT"};" \
42 "name="PARTS_DATA",size=3000MiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
43 "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
45 #define DFU_ALT_SYSTEM_TRATS2 \
48 "/Image.itb ext4 0 2;" \
49 "/modem.bin ext4 0 2;" \
50 "/exynos4412-trats2.dtb ext4 0 2;" \
51 ""PARTS_CSA" part 0 1;" \
52 ""PARTS_BOOT" part 0 2;" \
53 ""PARTS_QBOOT" part 0 3;" \
54 ""PARTS_CSC" part 0 4;" \
55 ""PARTS_ROOT" part 0 5;" \
56 ""PARTS_DATA" part 0 6;" \
57 ""PARTS_UMS" part 0 7;" \
58 "params.bin raw 2560 8\0"
60 #define DFU_ALT_SYSTEM_ODROID \
63 "Image.itb fat 0 1;" \
64 "exynos4412-odroidu3.dtb fat 0 1;" \
65 "exynos4412-odroidx2.dtb fat 0 1;" \
66 ""PARTS_BOOT" part 0 1;" \
68 "system-data part 0 3;" \
71 "params.bin raw 2560 8\0"
73 #define DFU_ALT_BOOT_EMMC_TRATS2 \
74 "u-boot raw 0x80 0x800\0"
76 #define DFU_ALT_BOOT_SD_TRATS2 \
77 "This boot mode is not used\0"
79 #define DFU_ALT_BOOT_EMMC_ODROID \
80 "u-boot raw 0x3e 0x800 mmcpart 1;" \
81 "bl1 raw 0x0 0x1e mmcpart 1;" \
82 "bl2 raw 0x1e 0x1d mmcpart 1;" \
83 "tzsw raw 0x83e 0x138 mmcpart 1\0"
85 #define DFU_ALT_BOOT_SD_ODROID \
86 "u-boot raw 0x3f 0x800;" \
88 "bl2 raw 0x1f 0x1d;" \
89 "tzsw raw 0x83f 0x138\0"
91 #endif /* _TIZEN_ENVIRONMENT_H_ */