mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 10:48:51 +00:00
425f06f86e
In AOSP, both VIM3 and VIM3L have 2 bootloader flavors, depending on A/B enablement. For example, for vim3l, the naming is: - u-boot_kvim3l_noab.bin : legacy support - u-boot_kvim3l_ab.bin : A/B support Prepare a defconfig to support u-boot_kvim3_ab.bin and u-boot_kvim3l_ab.bin. This is identical to khadas-vim3{l}_ab_android but will be updated in the next commit. Also update partitioning tables for A/B support. Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://lore.kernel.org/r/20211122152207.219023-4-mkorpershoek@baylibre.com
50 lines
1.7 KiB
C
50 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Configuration for the khadas VIM3 Android
|
|
*
|
|
* Copyright (C) 2021 Baylibre, SAS
|
|
* Author: Guillaume LA ROQUE <glaroque@baylibre.com>
|
|
*/
|
|
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
#define LOGO_UUID "43a3305d-150f-4cc9-bd3b-38fca8693846;"
|
|
#define ROOT_UUID "ddb8c3f6-d94d-4394-b633-3134139cc2e0;"
|
|
|
|
#if defined(CONFIG_CMD_AB_SELECT)
|
|
#define PARTS_DEFAULT \
|
|
"uuid_disk=${uuid_gpt_disk};" \
|
|
"name=logo,start=512K,size=2M,uuid=" LOGO_UUID \
|
|
"name=misc,size=512K,uuid=${uuid_gpt_misc};" \
|
|
"name=dtbo_a,size=8M,uuid=${uuid_gpt_dtbo_a};" \
|
|
"name=dtbo_b,size=8M,uuid=${uuid_gpt_dtbo_b};" \
|
|
"name=vbmeta_a,size=512K,uuid=${uuid_gpt_vbmeta_a};" \
|
|
"name=vbmeta_b,size=512K,uuid=${uuid_gpt_vbmeta_b};" \
|
|
"name=boot_a,size=32M,bootable,uuid=${uuid_gpt_boot_a};" \
|
|
"name=boot_b,size=32M,bootable,uuid=${uuid_gpt_boot_b};" \
|
|
"name=super,size=3072M,uuid=${uuid_gpt_super};" \
|
|
"name=userdata,size=11282M,uuid=${uuid_gpt_userdata};" \
|
|
"name=rootfs,size=-,uuid=" ROOT_UUID
|
|
#else
|
|
#define PARTS_DEFAULT \
|
|
"uuid_disk=${uuid_gpt_disk};" \
|
|
"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=super,size=1792M,uuid=${uuid_gpt_super};" \
|
|
"name=userdata,size=12786M,uuid=${uuid_gpt_userdata};" \
|
|
"name=rootfs,size=-,uuid=" ROOT_UUID
|
|
#endif
|
|
|
|
#define EXTRA_ANDROID_ENV_SETTINGS \
|
|
"board=vim3\0" \
|
|
"board_name=vim3\0" \
|
|
|
|
#include <configs/meson64_android.h>
|
|
|
|
#endif /* __CONFIG_H */
|