Hi Balaji, On 25/05/2026 13:24, Balaji Selvanathan wrote: > Hi Ilias, > > On 5/23/2026 6:23 PM, Ilias Apalodimas wrote: >> [...] >> >>>>> To support multi-image RAW capsules, we would need to: >>>>> >>>>> 1. Enhance mkeficapsule to create multi-image capsules? >>>> There's an equivalent tool in EDKII that can produce a capsule with >>>> multiple payloads. There were also patches posted for mkeficapsule, >>>> but need some minor tweaks to merge them >>> Can you please point me those patches? I did a search myself, but >>> couldnt find those patches. >> https://lore.kernel.org/u-boot/20240419065542.1160527-1- >> [email protected]/ > > This patch you mentioned here can create capsule with only one payload; > means for multiple binaries we need to create multiple capsules. I have > also asked the person who made this series to respin, but havent heard > back from him.
>From a quick look it seems like it would be fairly straightforward to extend mkeficapsule to support multiple images, the capsule header has an item_offset_list[] array with offsets to each image, today we just write 1 but it shouldn't be too much of a challenge to put a loop in here and extend the argument parsing. Given that we a) already use raw capsules and b) they are part of the EFI spec, I'm gonna try and save us all some time and just put my foot down here. A single raw EFI capsule file can already support updating multiple images, U-Boot already has all of the machinery for it with the exception of mkeficapsule but I expect that's something you can tackle. The upside to this is that you will be able to build capsule files for updating xbl/tz/hyp/aop that can be consumed by U-Boot and edk2! Kind regards, -- // Casey (she/her)

