From: Michael Tretter <m.tretter@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Cc: Michael Tretter <m.tretter@pengutronix.de>
Subject: [PATCH 4/4] ARM: rockchip: bootm: accept signed images
Date: Wed, 20 Aug 2025 12:17:00 +0200 [thread overview]
Message-ID: <20250820-rkimage-signed-v1-4-0ad3d1d1c952@pengutronix.de> (raw)
In-Reply-To: <20250820-rkimage-signed-v1-0-0ad3d1d1c952@pengutronix.de>
Add an image handler for signed Rockchip images.
Signed image can be handled like unsigned images. Eventually barebox may
perform additional checks on the signed image, e.g. that the image is
actually signed and the signature is valid. For now, simply accept and
boot signed images.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
arch/arm/mach-rockchip/bootm.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/mach-rockchip/bootm.c b/arch/arm/mach-rockchip/bootm.c
index 097b0af7d8ba29a37e50dcb0f7d823c0456d1020..ff3d9a2db3a0462365f3ccd4e09f178b74903244 100644
--- a/arch/arm/mach-rockchip/bootm.c
+++ b/arch/arm/mach-rockchip/bootm.c
@@ -113,12 +113,19 @@ static struct image_handler image_handler_rkns_barebox_image = {
.filetype = filetype_rockchip_rkns_image,
};
+static struct image_handler image_handler_rkss_barebox_image = {
+ .name = "Rockchip RKSS barebox image",
+ .bootm = do_bootm_rkns_barebox_image,
+ .filetype = filetype_rockchip_rkss_image,
+};
+
static int rockchip_register_barebox_image_handler(void)
{
if (rockchip_soc() < 0)
return 0;
register_image_handler(&image_handler_rkns_barebox_image);
+ register_image_handler(&image_handler_rkss_barebox_image);
return 0;
}
--
2.39.5
next prev parent reply other threads:[~2025-08-20 12:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-20 10:16 [PATCH 0/4] ARM: rockchip: add support for " Michael Tretter
2025-08-20 10:16 ` [PATCH 1/4] filetype: detect Rockchip " Michael Tretter
2025-08-20 10:16 ` [PATCH 2/4] ARM: rockchip: bbu: accept " Michael Tretter
2025-08-20 10:16 ` [PATCH 3/4] ARM: rockchip: bootm: don't propagate error from register_image_handler Michael Tretter
2025-08-20 10:17 ` Michael Tretter [this message]
2025-08-20 12:30 ` [PATCH 0/4] ARM: rockchip: add support for signed images 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=20250820-rkimage-signed-v1-4-0ad3d1d1c952@pengutronix.de \
--to=m.tretter@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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