Currently EFI capsule updates are only supported on the following Amlogic-based boards:
- Libre Computer AML-S805X-AC - Libre Computer AML-A311D-CC - Libre Computer AML-S905D3-CC This is done with board-specific configuration in board/libre-computer/. With this patch, EFI capsule updates can now work on most of the other Amlogic boards supported by u-boot, such as the Libre Computer AML-S905X-CC, without the need for board-specific configuration beforehand. Please note that flashing to the eMMC bootX partitions is not yet supported. Signed-off-by: Ferass El Hafidi <[email protected]> --- Changes in v3: - Remove board-specific Libre Computer EFI capsule support and use the common EFI capsule support code - Link to v2: https://lore.kernel.org/r/[email protected] Changes in v2: - Don't run meson_setup_capsule unless CONFIG_DFU and CONFIG_EFI_LOADER are enabled - Coding style fixes - Return when boot device is unsupported - Link to v1: https://lore.kernel.org/r/[email protected] --- Ferass El Hafidi (2): arm: meson: add support for EFI capsule updates board: libre-computer: use common Amlogic EFI capsule support arch/arm/include/asm/arch-meson/boot.h | 2 + arch/arm/mach-meson/Makefile | 2 +- arch/arm/mach-meson/board-common.c | 5 ++ arch/arm/mach-meson/capsule.c | 61 ++++++++++++++++++++++ board/libre-computer/aml-a311d-cc/aml-a311d-cc.c | 14 ----- board/libre-computer/aml-s805x-ac/aml-s805x-ac.c | 13 ----- board/libre-computer/aml-s905d3-cc/aml-s905d3-cc.c | 14 ----- 7 files changed, 69 insertions(+), 42 deletions(-) --- base-commit: 072264c4b3406aee50dad08355588577a547ab48 change-id: 20251007-meson-capsule-a19539e0a54e Best regards, -- Ferass El Hafidi <[email protected]>

