u-boot/board/radxa
Jonas Karlman c72e37dceb rockchip: rk3399-rock-pi-4: Fix Synchronous Abort
After the commit 788cf33315 ("efi: add a helper to generate dynamic
UUIDs") update_info.num_images must match number of valid update images.

On Rock Pi 4 following Synchronous Abort can be observed due to fw_name
being NULL:

  Scanning global bootmeth 'efi_mgr':
  "Synchronous Abort" handler, esr 0x96000010, far 0x0
  elr: 0000000000200e28 lr : 000000000028adb8 (reloc)
  elr: 00000000f3efbe28 lr : 00000000f3f85db8
  x0 : 0000000000000000 x1 : ffffffffffffffff
  x2 : 0000000000000000 x3 : 000000000000000e
  x4 : 0000000000000000 x5 : 00000000f1ef0d78
  x6 : 00000000f3fb3b90 x7 : 0000000000000044
  x8 : 0000000000000010 x9 : 0000000000000031
  x10: 00000000f0ea3fff x11: 00000000f1f29e00
  x12: 0000000000000002 x13: fffffffffffff000
  x14: 00000000f1f29e00 x15: 0000000000000018
  x16: 00000000f3f44f7c x17: 0000000000000000
  x18: 00000000f1ef2de0 x19: 00000000f0ea3040
  x20: 00000000f3ff53d8 x21: 00000000f3fd0498
  x22: 0000000000000000 x23: 00000000f1edb960
  x24: 00000000f1edb95f x25: 00000000f1edb990
  x26: 00000000f1edb964 x27: 00000000f1edb998
  x28: 00000000f1edc1ec x29: 00000000f1edb820

  Code: aa0003e2 d2800000 eb01001f 54000060 (78607843)
  Resetting CPU ...

  resetting ...

Fix this by setting update_info.num_images to 0 when no valid update
images is added to update_info.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: FUKAUMI Naoki <naoki@radxa.com>
2025-01-10 18:56:22 -06:00
..
rock boards: Remove empty BOARD_SPECIFIC_OPTIONS 2024-03-13 12:40:43 -04:00
rock2 board: rk3288: simplify the DT file list in MAINTAINERS 2024-04-26 15:47:05 +08:00
rock5a-rk3588s rockchip: rock5a-rk3588s: use DRAM banks from ATAGS 2024-04-26 15:47:05 +08:00
rock5b-rk3588 board: rock5b-rk3588: enable USB-C in operating system 2024-10-17 03:12:47 +02:00
rock-5-itx-rk3588 board: rockchip: Add Radxa ROCK 5 ITX 2024-08-12 15:43:44 +08:00
rock-5c-rk3588s rockchip: Add support for Radxa ROCK 5C 2025-01-10 18:56:17 -06:00
rockpi4-rk3399 rockchip: rk3399-rock-pi-4: Fix Synchronous Abort 2025-01-10 18:56:22 -06:00
zero3-rk3566 board: rockchip: Add Radxa ZERO 3W/3E 2024-08-09 18:35:23 +08:00