[PATCH] xilinx: zynqmp: Save multiboot as variable
Michal Simek
michal.simek at xilinx.com
Mon Oct 25 10:11:16 CEST 2021
On 10/21/21 16:23, Oleksandr Suvorov wrote:
> On Thu, Oct 21, 2021 at 9:59 AM Michal Simek <michal.simek at xilinx.com> wrote:
>>
>> Save multiboot register as u-boot variable. And use it as primary source
>> for composing dfu_alt_info for capsule update. If variable is not defined
>>
>> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
>> ---
>>
>> board/xilinx/zynqmp/zynqmp.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
>> index ed6c287df221..5fce74d6085a 100644
>> --- a/board/xilinx/zynqmp/zynqmp.c
>> +++ b/board/xilinx/zynqmp/zynqmp.c
>> @@ -658,6 +658,8 @@ int board_late_init(void)
>> if (ret)
>> return ret;
>>
>> + env_set_hex("multiboot", multi_boot());
>
> multi_boot() can return error -EINVAL. Probably it would be better to
> handle this
> before setting the env variable?
Sent v2 to fix this.
Thanks,
Michal
More information about the U-Boot
mailing list