diff mbox

[U-Boot,1/2] rockchip: use rockchip linux partitions layout

Message ID 1475052385-5091-1-git-send-email-jacob2.chen@rock-chips.com
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Jacob Chen Sept. 28, 2016, 8:46 a.m. UTC
Unify the partitions of each chip then it will be more easy for us to write scripts, tools or guides
 for rockchip chips.

Those extra partitions mostly are used to be compatible with our internal loaders (such as miniloader
 which was same as spl,  or android loader then we can support dual boot)

Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
---

 include/configs/rk3036_common.h | 7 ++++++-
 include/configs/rk3288_common.h | 7 ++++++-
 include/configs/rk3399_common.h | 7 ++++++-
 3 files changed, 18 insertions(+), 3 deletions(-)

Comments

Simon Glass Oct. 3, 2016, 9:49 p.m. UTC | #1
Hi Jacob,

On 28 September 2016 at 02:46, Jacob Chen <jacob2.chen@rock-chips.com> wrote:
>
> Unify the partitions of each chip then it will be more easy for us to write scripts, tools or guides
>  for rockchip chips.
>
> Those extra partitions mostly are used to be compatible with our internal loaders (such as miniloader
>  which was same as spl,  or android loader then we can support dual boot)
>
> Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
> ---
>
>  include/configs/rk3036_common.h | 7 ++++++-
>  include/configs/rk3288_common.h | 7 ++++++-
>  include/configs/rk3399_common.h | 7 ++++++-
>  3 files changed, 18 insertions(+), 3 deletions(-)

Can you put this in a rockchip_common.h and #include it from here? See
the tegra include files for examples of how it is done there.

Regards,
Simon
diff mbox

Patch

diff --git a/include/configs/rk3036_common.h b/include/configs/rk3036_common.h
index 6ddf0d9..17335f6 100644
--- a/include/configs/rk3036_common.h
+++ b/include/configs/rk3036_common.h
@@ -94,7 +94,12 @@ 
 #define CONFIG_RANDOM_UUID
 #define PARTS_DEFAULT \
 	"uuid_disk=${uuid_gpt_disk};" \
-	"name=boot,start=8M,size=64M,bootable,uuid=${uuid_gpt_boot};" \
+	"name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \
+	"name=reserved1,size=64K,uuid=${uuid_gpt_reserved1};" \
+	"name=reserved2,size=4M,uuid=${uuid_gpt_reserved2};" \
+	"name=loader2,size=4MB,uuid=${uuid_gpt_loader2};" \
+	"name=atf,size=4M,uuid=${uuid_gpt_atf};" \
+	"name=boot,size=128M,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 */
diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
index e8bf987..4b19e9d 100644
--- a/include/configs/rk3288_common.h
+++ b/include/configs/rk3288_common.h
@@ -111,7 +111,12 @@ 
 #define CONFIG_RANDOM_UUID
 #define PARTS_DEFAULT \
 	"uuid_disk=${uuid_gpt_disk};" \
-	"name=boot,start=8M,size=64M,bootable,uuid=${uuid_gpt_boot};" \
+	"name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \
+	"name=reserved1,size=64K,uuid=${uuid_gpt_reserved1};" \
+	"name=reserved2,size=4M,uuid=${uuid_gpt_reserved2};" \
+	"name=loader2,size=4MB,uuid=${uuid_gpt_loader2};" \
+	"name=atf,size=4M,uuid=${uuid_gpt_atf};" \
+	"name=boot,size=128M,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 */
diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
index 93d5856..5a41c93 100644
--- a/include/configs/rk3399_common.h
+++ b/include/configs/rk3399_common.h
@@ -67,7 +67,12 @@ 
 #define CONFIG_PARTITION_UUIDS
 #define PARTS_DEFAULT \
 	"uuid_disk=${uuid_gpt_disk};" \
-	"name=boot,start=16M,size=32M,bootable;" \
+	"name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};" \
+	"name=reserved1,size=64K,uuid=${uuid_gpt_reserved1};" \
+	"name=reserved2,size=4M,uuid=${uuid_gpt_reserved2};" \
+	"name=loader2,size=4MB,uuid=${uuid_gpt_loader2};" \
+	"name=atf,size=4M,uuid=${uuid_gpt_atf};" \
+	"name=boot,size=128M,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) */