mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/5] scripts: rockchip: fix and cleanup rkimage
@ 2025-08-05  7:33 Michael Tretter
  2025-08-05  7:33 ` [PATCH v2 1/5] scripts: rockchip: use correct header size Michael Tretter
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Michael Tretter @ 2025-08-05  7:33 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Michael Tretter

This series prepares the Rockchip tooling for creating and handling
signed images. The patch series for adding code to sign the images will
follow as a second step.

Fix the wrong size when calculating the hash over the image header.
Rename the hashtype field in the header to flags, because there are
other flags in this field, too. Extend the rk-usb-loader to accept
signed images and load signed images to a board via USB.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
Changes in v2:
- Switch order of Patch 2 and Patch 3 to define flags before using them
- Drop double negation in flags check
- Link to v1: https://lore.kernel.org/r/20250731-rkimage-cleanup-v1-0-967037e5d67a@pengutronix.de

---
Michael Tretter (5):
      scripts: rockchip: use correct header size
      scripts: rockchip: rename hashtype to flags
      scripts: rockchip: add helper for updating hash
      scripts: rockchip: rename NEWIDB_MAGIC to NEWIDB_MAGIC_RKNS
      scripts: rockchip: support RKSS images

 scripts/rk-usb-loader.c |  7 ++++---
 scripts/rkimage.c       | 24 ++++++++++++++++--------
 scripts/rockchip.h      |  8 ++++++--
 3 files changed, 26 insertions(+), 13 deletions(-)
---
base-commit: 89bf1fcc998fc5fea0ce613d9930dd9ee39c0fb2
change-id: 20250731-rkimage-cleanup-611572232b66

Best regards,
-- 
Michael Tretter <m.tretter@pengutronix.de>




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

end of thread, other threads:[~2025-08-05  9:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-05  7:33 [PATCH v2 0/5] scripts: rockchip: fix and cleanup rkimage Michael Tretter
2025-08-05  7:33 ` [PATCH v2 1/5] scripts: rockchip: use correct header size Michael Tretter
2025-08-05  7:33 ` [PATCH v2 2/5] scripts: rockchip: rename hashtype to flags Michael Tretter
2025-08-05  7:33 ` [PATCH v2 3/5] scripts: rockchip: add helper for updating hash Michael Tretter
2025-08-05  7:33 ` [PATCH v2 4/5] scripts: rockchip: rename NEWIDB_MAGIC to NEWIDB_MAGIC_RKNS Michael Tretter
2025-08-05  7:33 ` [PATCH v2 5/5] scripts: rockchip: support RKSS images Michael Tretter
2025-08-05  9:05 ` [PATCH v2 0/5] scripts: rockchip: fix and cleanup rkimage Sascha Hauer

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