[PATCH v3 0/3] boards: qemu-virt: support passing in FIT public key

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Mar 13 07:42:17 PDT 2023


FIT public key is usually passed in via board DT. Usual way to use
barebox with QEMU Virt however is to use DT supplied by Qemu and apply
overlay to it. mkimage doesn't generate overlay DTB though. To make
barbebox Qemu Virt behave like other boards, let's define a dummy DT
that includes CONFIG_BOOTM_FITIMAGE_PUBKEY, which is merged with the
barebox live device tree.

This replaces v2 of the series available in next and fixes the
regressions I introduced for deep-probe systems that ensure probe in
other devices.

I dropped Jan's Tested-by, because the differences warrant it, but
I tested locally that a RSA key was registered as before.

v2 was here:
https://lore.barebox.org/barebox/20230210165353.3601175-1-a.fatoum@pengutronix.de/

v2 -> v3:
  - drop "support of_ensure_probed for top-level machine device"
  - switch from board driver back to initcall

v1 -> v2:
  - support of_ensure_probed for top-level machine device
  - ensure qemu board driver is probed at postcore

Ahmad Fatoum (3):
  boards: qemu-virt: apply overlay at postcore_initcall level
  boards: qemu-virt: compile overlay as such
  boards: qemu-virt: support passing in FIT public key

 common/boards/qemu-virt/Makefile              |  2 +-
 common/boards/qemu-virt/board.c               | 52 +++++++++++--------
 common/boards/qemu-virt/fitimage-pubkey.dts   |  7 +++
 .../{overlay-of-flash.dts => flash.dtso}      |  0
 4 files changed, 38 insertions(+), 23 deletions(-)
 create mode 100644 common/boards/qemu-virt/fitimage-pubkey.dts
 rename common/boards/qemu-virt/{overlay-of-flash.dts => flash.dtso} (100%)

-- 
2.30.2




More information about the barebox mailing list