From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Michael Riesch <michael.riesch@wolfvision.net>
Subject: [PATCH v3 0/3] boards: qemu-virt: support passing in FIT public key
Date: Mon, 13 Mar 2023 15:42:17 +0100 [thread overview]
Message-ID: <20230313144220.1689252-1-a.fatoum@pengutronix.de> (raw)
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
next reply other threads:[~2023-03-13 14:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-13 14:42 Ahmad Fatoum [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230313144220.1689252-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=michael.riesch@wolfvision.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox