]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: sei510/610: android bootflow via abootimg
authorGuillaume La Roque <glaroque@baylibre.com>
Thu, 5 Aug 2021 15:17:28 +0000 (17:17 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 10 Aug 2021 08:43:54 +0000 (10:43 +0200)
Activate the following Kconfig options:
* AVB       for Android Verified Boot support
* ADTIMG    for merging DTBOs
* ABOOTIMG  for extracting Android boot image

Also rework the partitioning tables:
- add a misc partition to handle BCB messages
- add a dtbo partition to store various DTBOs
- add a vbmeta partition for AVB hashes
- Merge vendor and system into the "super" partition

Note: avb support is disables by default. To activate it:
 => setenv force_avb 1;
 => saveenv;

Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
configs/sei510_defconfig
configs/sei610_defconfig
include/configs/sei510.h
include/configs/sei610.h

index 74328f2fd42ecdd5903e8c4a6ccccbefd8b1de80..8099b40b556e1a1622311806044fcd4af44217fc 100644 (file)
@@ -20,7 +20,10 @@ CONFIG_PREBOOT="run load_logo"
 # CONFIG_CONSOLE_MUX is not set
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_MISC_INIT_R=y
+CONFIG_AVB_VERIFY=y
 # CONFIG_CMD_BDI is not set
+CONFIG_CMD_ADTIMG=y
+CONFIG_CMD_ABOOTIMG=y
 # CONFIG_CMD_IMI is not set
 CONFIG_CMD_BCB=y
 CONFIG_CMD_GPIO=y
@@ -32,6 +35,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_BMP=y
 CONFIG_CMD_REGULATOR=y
+CONFIG_CMD_AVB=y
 CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
@@ -84,4 +88,5 @@ CONFIG_VIDEO_BMP_RLE8=y
 CONFIG_BMP_16BPP=y
 CONFIG_BMP_24BPP=y
 CONFIG_BMP_32BPP=y
+CONFIG_LIBAVB=y
 CONFIG_OF_LIBFDT_OVERLAY=y
index 2a6d0e59952c197eaf28356a122d2263c8b433fb..e11f36ac798e95bf5692738ceafdb97b2ecc72c6 100644 (file)
@@ -20,7 +20,10 @@ CONFIG_PREBOOT="run load_logo"
 # CONFIG_CONSOLE_MUX is not set
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_MISC_INIT_R=y
+CONFIG_AVB_VERIFY=y
 # CONFIG_CMD_BDI is not set
+CONFIG_CMD_ADTIMG=y
+CONFIG_CMD_ABOOTIMG=y
 # CONFIG_CMD_IMI is not set
 CONFIG_CMD_BCB=y
 CONFIG_CMD_GPIO=y
@@ -32,6 +35,7 @@ CONFIG_CMD_USB_MASS_STORAGE=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_BMP=y
 CONFIG_CMD_REGULATOR=y
+CONFIG_CMD_AVB=y
 CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
@@ -84,4 +88,5 @@ CONFIG_VIDEO_BMP_RLE8=y
 CONFIG_BMP_16BPP=y
 CONFIG_BMP_24BPP=y
 CONFIG_BMP_32BPP=y
+CONFIG_LIBAVB=y
 CONFIG_OF_LIBFDT_OVERLAY=y
index 5bf266880317f82f0c62edb5ab9b421dc19c2078..ea91a0615771bf8b2bb8981f78affd048a83b68a 100644 (file)
 
 #define PARTS_DEFAULT \
        "uuid_disk=${uuid_gpt_disk};" \
-       "name=boot,size=64M,bootable,uuid=${uuid_gpt_boot};" \
        "name=logo,size=2M,uuid=" LOGO_UUID \
+       "name=misc,size=128K,uuid=${uuid_gpt_misc};" \
+       "name=dtbo,size=8M,uuid=${uuid_gpt_dtbo};" \
+       "name=vbmeta,size=64K,uuid=${uuid_gpt_vbmeta};" \
+       "name=boot,size=32M,bootable,uuid=${uuid_gpt_boot};" \
+       "name=recovery,size=32M,uuid=${uuid_gpt_recovery};" \
        "name=cache,size=256M,uuid=${uuid_gpt_cache};" \
-       "name=system,size=1536M,uuid=${uuid_gpt_system};" \
-       "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \
-       "name=userdata,size=5341M,uuid={uuid_gpt_userdata};" \
+       "name=super,size=2304M,uuid=${uuid_gpt_super};" \
+       "name=userdata,size=4820M,uuid=${uuid_gpt_userdata};" \
        "name=rootfs,size=-,uuid=" ROOT_UUID
 
 
index baace75a020163424f4d86b433afffd81f80e048..783eece271dd8289c9e6d6e0162393c4365da34a 100644 (file)
 
 #define PARTS_DEFAULT \
        "uuid_disk=${uuid_gpt_disk};" \
-       "name=boot,size=64M,bootable,uuid=${uuid_gpt_boot};" \
-       "name=logo,size=2M,uuid=" LOGO_UUID \
+       "name=logo,start=512K,size=2M,uuid=" LOGO_UUID \
+       "name=misc,size=512K,uuid=${uuid_gpt_misc};" \
+       "name=dtbo,size=8M,uuid=${uuid_gpt_dtbo};" \
+       "name=vbmeta,size=512K,uuid=${uuid_gpt_vbmeta};" \
+       "name=boot,size=32M,bootable,uuid=${uuid_gpt_boot};" \
+       "name=recovery,size=32M,uuid=${uuid_gpt_recovery};" \
        "name=cache,size=256M,uuid=${uuid_gpt_cache};" \
-       "name=system,size=1536M,uuid=${uuid_gpt_system};" \
-       "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \
-       "name=userdata,size=12795M,uuid=${uuid_gpt_userdata};" \
+       "name=super,size=2304M,uuid=${uuid_gpt_super};" \
+       "name=userdata,size=12274M,uuid=${uuid_gpt_userdata};" \
        "name=rootfs,size=-,uuid=" ROOT_UUID
 
 #include <configs/meson64_android.h>