Skip to content

sunxi: support signed images in SPL without SPL_DM

Lukas Schmid u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rsa: allow operation without SPL_DM by falling back to softwareboot/Kconfig lib/rsa/rsa-verify.c+17 -120 replies
2/2sunxi: u-boot.dtsi: add support for signed SPL and U-Boot imagesarch/arm/dts/sunxi-u-boot.dtsi+64 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] sunxi: support signed images in SPL without SPL_DM

This series adds support for signed SPL/U-Boot FIT images on Sunxi platforms and removes the unnecessary SPL_DM dependency for RSA verification.

Patch 1 allows FIT signature verification in SPL to work on boards that do not enable SPL_DM by falling back to the software RSA implementation when no hardware modular exponentiation driver is available.

Patch 2 extends sunxi-u-boot.dtsi to add conditional nodes for hashes and signatures, following the same approach used in the Rockchip u-boot.dtsi. This enables secure boot flows where SPL can verify U-Boot and associated binaries before handing over control.

Tested on a Sunxi board with CONFIG_SPL_FIT_SIGNATURE enabled and SPL_DM disabled, verifying a signed U-Boot image successfully.

Lukas Schmid (2):
rsa: allow operation without SPL_DM by falling back to software
sunxi: u-boot.dtsi: add support for signed SPL and U-Boot images

 arch/arm/dts/sunxi-u-boot.dtsi | 68 ++++++++++++++++++++++++++++++++--
 boot/Kconfig                   |  2 +-
 lib/rsa/rsa-verify.c           |  4 +-
 3 files changed, 67 insertions(+), 7 deletions(-)
Signature · 1 line
2.39.5