[2/4] part: efi: Add default number of partition entries for sunxi

Message ID 37a595033868e6633ac50c6190e5636e3462db8a.1511865262.git-series.maxime.ripard@free-electrons.com
State Superseded
Headers show
Series
  • sunxi: Ease eMMC usage and flashing
Related show

Commit Message

Maxime Ripard Nov. 28, 2017, 10:34 a.m.
The SPL must be located at 8kB (16 sectors) offset. That's right in the
middle of the GPT, so we need to define a smaller amount of partitions to
accomodate for that location.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 disk/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Andre Przywara Nov. 30, 2017, 12:22 a.m. | #1
On 28/11/17 10:34, Maxime Ripard wrote:
> The SPL must be located at 8kB (16 sectors) offset. That's right in the
> middle of the GPT, so we need to define a smaller amount of partitions to
> accomodate for that location.
> 
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

The math is correct ;-)

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Thanks!
Andre

> ---
>  disk/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/disk/Kconfig b/disk/Kconfig
> index f82beef6e689..0446bb63ca7e 100644
> --- a/disk/Kconfig
> +++ b/disk/Kconfig
> @@ -81,6 +81,7 @@ config EFI_PARTITION
>  config EFI_PARTITION_ENTRIES_NUMBERS
>  	int "Number of the EFI partition entries"
>  	depends on EFI_PARTITION
> +	default 56 if ARCH_SUNXI
>  	default 128
>  	help
>  	  Specify the number of partition entries in the GPT. This is
>

Patch

diff --git a/disk/Kconfig b/disk/Kconfig
index f82beef6e689..0446bb63ca7e 100644
--- a/disk/Kconfig
+++ b/disk/Kconfig
@@ -81,6 +81,7 @@  config EFI_PARTITION
 config EFI_PARTITION_ENTRIES_NUMBERS
 	int "Number of the EFI partition entries"
 	depends on EFI_PARTITION
+	default 56 if ARCH_SUNXI
 	default 128
 	help
 	  Specify the number of partition entries in the GPT. This is