summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXu Ziyuan <xzy.xu@rock-chips.com>2016-08-03 11:55:05 +0800
committerSimon Glass <sjg@chromium.org>2016-08-05 17:56:08 -0600
commit6ead8bd7c338f31788402f2dd82bc68c38cd8b42 (patch)
treec0ee806b915bd393fc5e6cbed4da20bc9aa3f1d5 /include
parent1c62d999528da1f052cb4b07cbb540b148c52537 (diff)
downloadu-boot-imx-6ead8bd7c338f31788402f2dd82bc68c38cd8b42.zip
u-boot-imx-6ead8bd7c338f31788402f2dd82bc68c38cd8b42.tar.gz
u-boot-imx-6ead8bd7c338f31788402f2dd82bc68c38cd8b42.tar.bz2
rockchip: add basic partitions support for rk3288
For compatibility with distro boot, fastboot, and mount the mmc deivce to PC via usb mass storage feature, GPT partitions are essential. You should write the partitions to mmc device prior to use above feature. => gpt write mmc 1 $partitions GPT successfully written to block device! success! Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/rk3288_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
index 814116c..fa37335 100644
--- a/include/configs/rk3288_common.h
+++ b/include/configs/rk3288_common.h
@@ -113,6 +113,12 @@
"kernel_addr_r=0x02000000\0" \
"ramdisk_addr_r=0x04000000\0"
+#define CONFIG_RANDOM_UUID
+#define PARTS_DEFAULT \
+ "uuid_disk=${uuid_gpt_disk};" \
+ "name=boot,start=8M,size=64M,bootable,uuid=${uuid_gpt_boot};" \
+ "name=rootfs,size=-,uuid=${uuid_gpt_rootfs};\0" \
+
/* First try to boot from SD (index 0), then eMMC (index 1 */
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0) \
@@ -125,6 +131,7 @@
#define CONFIG_EXTRA_ENV_SETTINGS \
"fdt_high=0x1fffffff\0" \
"initrd_high=0x1fffffff\0" \
+ "partitions=" PARTS_DEFAULT \
ENV_MEM_LAYOUT_SETTINGS \
ROCKCHIP_DEVICE_SETTINGS \
BOOTENV