All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configs: meson64_android: define raw parts for bootloader
@ 2022-01-07 16:39 Mattijs Korpershoek
  2022-01-12  9:05 ` Neil Armstrong
  0 siblings, 1 reply; 2+ messages in thread
From: Mattijs Korpershoek @ 2022-01-07 16:39 UTC (permalink / raw)
  To: Neil Armstrong; +Cc: u-boot-amlogic, u-boot, Mattijs Korpershoek, Gary Bisson

Per the android documentation[1]:
- the mmc2boot0 partition should be labeled "bootloader".
- the mmc2boot1 partition should be labeled "bootenv".

Also the u-boot documentation[2] refers to a BOOT1_OFFSET of 1 block.

Define 2 raw partitions to store the bootloaders and the bootenv.

[1] https://source.android.com/setup/build/devices#vim3-fastboot
[2] https://u-boot.readthedocs.io/en/latest/board/amlogic/khadas-vim3l.html

Suggested-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
---
 include/configs/meson64_android.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h
index 0303d187de..1266851196 100644
--- a/include/configs/meson64_android.h
+++ b/include/configs/meson64_android.h
@@ -283,6 +283,8 @@
 	EXTRA_ANDROID_ENV_SETTINGS                                    \
 	"partitions=" PARTS_DEFAULT "\0"                              \
 	"mmcdev=2\0"                                                  \
+	"fastboot_raw_partition_bootloader=0x1 0xfff mmcpart 1\0"     \
+	"fastboot_raw_partition_bootenv=0x0 0xfff mmcpart 2\0"        \
 	ANDROIDBOOT_GET_CURRENT_SLOT_CMD                              \
 	AVB_VERIFY_CMD                                                \
 	"force_avb=0\0"                                               \
-- 
2.32.0


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

* Re: [PATCH] configs: meson64_android: define raw parts for bootloader
  2022-01-07 16:39 [PATCH] configs: meson64_android: define raw parts for bootloader Mattijs Korpershoek
@ 2022-01-12  9:05 ` Neil Armstrong
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Armstrong @ 2022-01-12  9:05 UTC (permalink / raw)
  To: Mattijs Korpershoek; +Cc: u-boot-amlogic, u-boot, Gary Bisson

On 07/01/2022 17:39, Mattijs Korpershoek wrote:
> Per the android documentation[1]:
> - the mmc2boot0 partition should be labeled "bootloader".
> - the mmc2boot1 partition should be labeled "bootenv".
> 
> Also the u-boot documentation[2] refers to a BOOT1_OFFSET of 1 block.
> 
> Define 2 raw partitions to store the bootloaders and the bootenv.
> 
> [1] https://source.android.com/setup/build/devices#vim3-fastboot
> [2] https://u-boot.readthedocs.io/en/latest/board/amlogic/khadas-vim3l.html
> 
> Suggested-by: Gary Bisson <gary.bisson@boundarydevices.com>
> Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
> ---
>  include/configs/meson64_android.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h
> index 0303d187de..1266851196 100644
> --- a/include/configs/meson64_android.h
> +++ b/include/configs/meson64_android.h
> @@ -283,6 +283,8 @@
>  	EXTRA_ANDROID_ENV_SETTINGS                                    \
>  	"partitions=" PARTS_DEFAULT "\0"                              \
>  	"mmcdev=2\0"                                                  \
> +	"fastboot_raw_partition_bootloader=0x1 0xfff mmcpart 1\0"     \
> +	"fastboot_raw_partition_bootenv=0x0 0xfff mmcpart 2\0"        \
>  	ANDROIDBOOT_GET_CURRENT_SLOT_CMD                              \
>  	AVB_VERIFY_CMD                                                \
>  	"force_avb=0\0"                                               \
> 

Applied to u-boot-amlogic

Thanks,
Neil

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

end of thread, other threads:[~2022-01-12  9:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 16:39 [PATCH] configs: meson64_android: define raw parts for bootloader Mattijs Korpershoek
2022-01-12  9:05 ` Neil Armstrong

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.