[PATCH] arm64: zynqmp: Enable capsule update

Michal Simek michal.simek at xilinx.com
Thu Apr 29 10:59:11 CEST 2021

On 4/29/21 10:52 AM, Heinrich Schuchardt wrote:
> On 26.04.21 13:08, Michal Simek wrote:
>> Enable EFI capsule update features to be enabled by default also with all
>> dfu valid options for ZynqMP.
>> This feature was tested on Xilinx ZynqMP zcu104 board with defining
>> dfu_alt_info="mmc 0:1=boot.bin fat 0 1;u-boot.itb fat 0 1"
>> and
>> dfu_alt_info="sf 0:0=boot.bin raw 0 0x50000;u-boot.itb raw 0x80000
>> 0x500000".
>> There is a need to increase malloc size for getting dfu mmc to work.
>> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
>> CC: Sughosh Ganu <sughosh.ganu at linaro.org>
>> CC: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>> CC: Heinrich Schuchardt <xypron.glpk at gmx.de>
>> ---
>> I actually didn't try to boot out of qspi because qspi writing is likely
>> broken and should be fixed. But I have checked that images are written to
>> that previously erased locations.
> There is a DFU driver for writing to RAM. You should be able to write to
> memory using capsule update and then do a CRC32 on the memory region for
> testing the correct result.

That's a good point. As I said to Ilias and Sughosh I think it will be
good to list all dfu_alt_info setting and these testing procedures to be
able to test them quickly.
The same is when runtime service is working how to use it with fwupd.
Ilias also mentioned work in progress on A/B update which I would like
to enable when it is ready.


More information about the U-Boot mailing list