Skip to content

spl: Add full fit and u-boot dto support

Marek Vasut u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9fit: Fix CONFIG_FIT_SPL_PRINTKconfig README common/image-fit.c+9 -31 reply
2/9fit: Add empty fit_print_contents() and fit_image_print()common/image-fit.c+3 -11 reply
3/9fit: Add standalone image type handlingcommon/image-fit.c include/image.h+3 -01 reply
4/9fit: Verify all configuration signaturescommon/image-fit.c+14 -121 reply
5/9spl: Add full fitImage supportKconfig common/spl/spl.c+54 -02 replies
6/9spl: Add support for overlaying U-Boot DTcommon/spl/spl.c+37 -12 replies
7/9spl: Restart loading if load_image returns -EAGAINcommon/spl/spl.c+6 -11 reply
7/9spl: Restart loading if load_image returns -EAGAIN+0 -00 replies
8/9spl: ram: Add support for fetching image position from control DTcommon/spl/spl_ram.c+16 -52 replies
9/9spl: spi: Add support for fetching image position from control DTcommon/spl/spl_spi.c+13 -02 replies

Reviews trailers per patch

7 of 10 patches have a Reviewed-by or Acked-by.

PatchLukasz MajewskiSimon Glass
1/9R-b
2/9R-b
3/9R-b
4/9
5/9R-b
6/9R-b
7/9
7/9
8/9R-b
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/9] spl: Add full fit and u-boot dto support

Add support for using the full fitImage parsing code in SPL. This is useful ie. if we want SPL to verify the U-Boot proper fitImage using RSA signature. While verifying image signature can be added to the simplified fitImage handling code in U-Boot SPL, verifying configuration signatures becomes quite hairy. Thus, loading the entire fitImage and then applying the full fitImage handling code on it is far less intrusive change. The size of the SPL with full fitImage code obviously grows, so this might not be suitable for size-constrained systems.

The remaining four patches allow applying a DTO from fitImage onto the SPL's internal DT and restart the image loading process. The usecase here is ie. to put a replacement public key into the DTO, patch the /signature node and load offset node of the U-Boot SPL's DT and restart the image loading process to load U-Boot proper signed with the replacement private key. The user is then able to replace the DTO and sign own U-Boot fitImage without replacing the SPL binary itself.

Marek Vasut (9):
fit: Fix CONFIG_FIT_SPL_PRINT
fit: Add empty fit_print_contents() and fit_image_print()
fit: Add standalone image type handling
fit: Verify all configuration signatures
spl: Add full fitImage support
spl: Add support for overlaying U-Boot DT
spl: Restart loading if load_image returns -EAGAIN
spl: ram: Add support for fetching image position from control DT
spl: spi: Add support for fetching image position from control DT

 Kconfig              | 17 +++++++++++
 README               |  2 +-
 common/image-fit.c   | 36 +++++++++++++---------
 common/spl/spl.c     | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 common/spl/spl_ram.c | 21 ++++++++++---
 common/spl/spl_spi.c | 13 ++++++++
 include/image.h      |  1 +
 7 files changed, 154 insertions(+), 22 deletions(-)
Signature · 1 line
2.15.0