[PATCH 2/4] ARM: rockchip: bbu: accept signed images
Michael Tretter
m.tretter at pengutronix.de
Wed Aug 20 03:16:58 PDT 2025
Accept Rockchip signed images in the update handler.
This is necessary to be able to use the update handler to flash a signed
image to an SD card or eMMC.
Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
arch/arm/mach-rockchip/bbu.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-rockchip/bbu.c b/arch/arm/mach-rockchip/bbu.c
index b4d2a5280fab9f8bf6357948f2188afcb8cc89a5..2067af7b1d231e00ec436d50686cb252e9c96dbd 100644
--- a/arch/arm/mach-rockchip/bbu.c
+++ b/arch/arm/mach-rockchip/bbu.c
@@ -46,10 +46,10 @@ static int rockchip_bbu_mmc_handler(struct bbu_handler *handler,
struct cdev *cdev;
filetype = file_detect_type(data->image, data->len);
- if (filetype != filetype_rockchip_rkns_image) {
- if (!bbu_force(data, "incorrect image type. Expected: %s, got %s",
- file_type_to_string(filetype_rockchip_rkns_image),
- file_type_to_string(filetype)))
+ if (filetype != filetype_rockchip_rkns_image &&
+ filetype != filetype_rockchip_rkss_image) {
+ if (!bbu_force(data, "incorrect image type. Got %s",
+ file_type_to_string(filetype)))
return -EINVAL;
}
--
2.39.5
More information about the barebox
mailing list