diff mbox

[U-Boot,2/2] rockchip: dts: rk3399-puma: put EFI partition entries at 2MB

Message ID 1500467543-45347-2-git-send-email-philipp.tomsich@theobroma-systems.com
State Accepted
Commit 4436c5db051be2f8f39629a98c4b8e51a1ea77cd
Delegated to: Philipp Tomsich
Headers show

Commit Message

Philipp Tomsich July 19, 2017, 12:32 p.m. UTC
When creating a EFI/GUID partition map for the RK3399-Q7 through
U-Boot, the partition entries should be places at a 1MB offset from
the start of the device to give us space for the environment (at 16KB
on SD/MMC devices), the SPL stage (at 32KB on SD/MMC devices) and the
image payload (at 256KB on SD/MMC devices).

This change sets this up through the u-boot,efi-partition-entries-offset
/config property in the RK3399-Q7 DTSI.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

 arch/arm/dts/rk3399-puma.dtsi | 1 +
 1 file changed, 1 insertion(+)

Comments

Philipp Tomsich July 19, 2017, 12:42 p.m. UTC | #1
> When creating a EFI/GUID partition map for the RK3399-Q7 through
> U-Boot, the partition entries should be places at a 1MB offset from
> the start of the device to give us space for the environment (at 16KB
> on SD/MMC devices), the SPL stage (at 32KB on SD/MMC devices) and the
> image payload (at 256KB on SD/MMC devices).
> 
> This change sets this up through the u-boot,efi-partition-entries-offset
> /config property in the RK3399-Q7 DTSI.
> 
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
> 
>  arch/arm/dts/rk3399-puma.dtsi | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Simon Glass July 27, 2017, 3:14 p.m. UTC | #2
On 19 July 2017 at 06:32, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> When creating a EFI/GUID partition map for the RK3399-Q7 through
> U-Boot, the partition entries should be places at a 1MB offset from
> the start of the device to give us space for the environment (at 16KB
> on SD/MMC devices), the SPL stage (at 32KB on SD/MMC devices) and the
> image payload (at 256KB on SD/MMC devices).
>
> This change sets this up through the u-boot,efi-partition-entries-offset
> /config property in the RK3399-Q7 DTSI.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
>  arch/arm/dts/rk3399-puma.dtsi | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi
index 0491886..dd1baea 100644
--- a/arch/arm/dts/rk3399-puma.dtsi
+++ b/arch/arm/dts/rk3399-puma.dtsi
@@ -14,6 +14,7 @@ 
 	config {
 		u-boot,spl-payload-offset = <0x40000>; /* @ 256KB */
 		u-boot,mmc-env-offset = <0x4000>;      /* @  16KB */
+		u-boot,efi-partition-entries-offset = <0x200000>; /* 2MB */
 		u-boot,boot-led = "module_led";
 	};