From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kever Yang Date: Tue, 02 Aug 2016 10:50:07 +0800 Subject: [U-Boot] [PATCH] configs: rk3399: add gpt and fs support In-Reply-To: <1470104943-28279-1-git-send-email-kever.yang@rock-chips.com> References: <1470104943-28279-1-git-send-email-kever.yang@rock-chips.com> Message-ID: <57A00A5F.7080200@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/02/2016 10:29 AM, Kever Yang 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 > --- > > include/configs/rk3399_common.h | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h > index a9c9d29..12327d5 100644 > --- a/include/configs/rk3399_common.h > +++ b/include/configs/rk3399_common.h > @@ -35,6 +35,15 @@ > #define CONFIG_BOUNCE_BUFFER > #define CONFIG_ROCKCHIP_SDHCI_MAX_FREQ 200000000 > > +#define CONFIG_DOS_PARTITION > +#define CONFIG_PARTITION_UUIDS > +#define CONFIG_SUPPORT_VFAT > +#define CONFIG_FS_FAT > +#define CONFIG_FAT_WRITE Sorry, this MACRO CONFIG_FAT_WRITE is duplicated, will fix in next version, I will waiting for other comments before send out V2 tomorrow. Thanks, - Kever > +#define CONFIG_CMD_PART > + > +/* EXT4 FS */ > +#define CONFIG_FS_EXT4 > #define CONFIG_FAT_WRITE > > /* RAW SD card / eMMC locations. */ > @@ -60,6 +69,14 @@ > "kernel_addr_r=0x02000000\0" \ > "ramdisk_addr_r=0x04000000\0" > > +#define CONFIG_CMD_GPT > +#define CONFIG_RANDOM_UUID > +#define CONFIG_EFI_PARTITION > +#define PARTS_DEFAULT \ > + "uuid_disk=${uuid_gpt_disk};" \ > + "name=boot,start=16M,size=32M,bootable;" \ > + "name=rootfs,size=-,uuid=${uuid_gpt_rootfs};" \ > + > /* First try to boot from SD (index 0), then eMMC (index 1) */ > #define BOOT_TARGET_DEVICES(func) \ > func(MMC, mmc, 0) \ > @@ -67,6 +84,8 @@ > > #include > #define CONFIG_EXTRA_ENV_SETTINGS \ > + ENV_MEM_LAYOUT_SETTINGS \ > + "partitions=" PARTS_DEFAULT \ > BOOTENV > > #endif