mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v3 0/3] boards: qemu-virt: support passing in FIT public key
@ 2023-03-13 14:42 Ahmad Fatoum
  2023-03-13 14:42 ` [PATCH v3 1/3] boards: qemu-virt: apply overlay at postcore_initcall level Ahmad Fatoum
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Ahmad Fatoum @ 2023-03-13 14:42 UTC (permalink / raw)
  To: barebox; +Cc: Michael Riesch

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-04-11 12:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 14:42 [PATCH v3 0/3] boards: qemu-virt: support passing in FIT public key Ahmad Fatoum
2023-03-13 14:42 ` [PATCH v3 1/3] boards: qemu-virt: apply overlay at postcore_initcall level Ahmad Fatoum
2023-03-13 14:42 ` [PATCH v3 2/3] boards: qemu-virt: compile overlay as such Ahmad Fatoum
2023-03-13 14:42 ` [PATCH v3 3/3] boards: qemu-virt: support passing in FIT public key Ahmad Fatoum
2023-03-13 14:46 ` [PATCH v3 0/3] " Ahmad Fatoum
2023-03-14  8:05 ` Sascha Hauer
2023-04-11 10:00 ` Ahmad Fatoum
2023-04-11 12:35   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox