All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] configs: rk3399: add gpt and fs support
@ 2016-08-04  3:40 Kever Yang
  2016-08-05  1:36 ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Kever Yang @ 2016-08-04  3:40 UTC (permalink / raw)
  To: u-boot

To compatible with distro boot, we need to add gpt and fs support,
including gpt table and vfat, ext2, ext4 support.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Changes in v2:
- remove some re-defined MACRO, comments from Ziyuan Xu

 include/configs/rk3399_common.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
index a9c9d29..6875308 100644
--- a/include/configs/rk3399_common.h
+++ b/include/configs/rk3399_common.h
@@ -35,7 +35,11 @@
 #define CONFIG_BOUNCE_BUFFER
 #define CONFIG_ROCKCHIP_SDHCI_MAX_FREQ	200000000
 
+#define CONFIG_SUPPORT_VFAT
+#define CONFIG_FS_FAT
 #define CONFIG_FAT_WRITE
+#define CONFIG_FS_EXT4
+#define CONFIG_CMD_PART
 
 /* RAW SD card / eMMC locations. */
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR	256
@@ -60,6 +64,14 @@
 	"kernel_addr_r=0x02000000\0" \
 	"ramdisk_addr_r=0x04000000\0"
 
+#define CONFIG_CMD_GPT
+#define CONFIG_RANDOM_UUID
+#define CONFIG_PARTITION_UUIDS
+#define PARTS_DEFAULT \
+	"uuid_disk=${uuid_gpt_disk};" \
+	"name=boot,start=16M,size=32M,bootable;" \
+	"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) \
@@ -67,6 +79,8 @@
 
 #include <config_distro_bootcmd.h>
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	ENV_MEM_LAYOUT_SETTINGS \
+	"partitions=" PARTS_DEFAULT \
 	BOOTENV
 
 #endif
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v2] configs: rk3399: add gpt and fs support
  2016-08-04  3:40 [U-Boot] [PATCH v2] configs: rk3399: add gpt and fs support Kever Yang
@ 2016-08-05  1:36 ` Simon Glass
  2016-08-06  1:40   ` Simon Glass
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2016-08-05  1:36 UTC (permalink / raw)
  To: u-boot

On 3 August 2016 at 21:40, Kever Yang <kever.yang@rock-chips.com> wrote:
> To compatible with distro boot, we need to add gpt and fs support,
> including gpt table and vfat, ext2, ext4 support.
>
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2:
> - remove some re-defined MACRO, comments from Ziyuan Xu
>
>  include/configs/rk3399_common.h | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)

Acked-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v2] configs: rk3399: add gpt and fs support
  2016-08-05  1:36 ` Simon Glass
@ 2016-08-06  1:40   ` Simon Glass
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Glass @ 2016-08-06  1:40 UTC (permalink / raw)
  To: u-boot

On 4 August 2016 at 19:36, Simon Glass <sjg@chromium.org> wrote:
> On 3 August 2016 at 21:40, Kever Yang <kever.yang@rock-chips.com> wrote:
>> To compatible with distro boot, we need to add gpt and fs support,
>> including gpt table and vfat, ext2, ext4 support.
>>
>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>> ---
>>
>> Changes in v2:
>> - remove some re-defined MACRO, comments from Ziyuan Xu
>>
>>  include/configs/rk3399_common.h | 14 ++++++++++++++
>>  1 file changed, 14 insertions(+)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-06  1:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04  3:40 [U-Boot] [PATCH v2] configs: rk3399: add gpt and fs support Kever Yang
2016-08-05  1:36 ` Simon Glass
2016-08-06  1:40   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.