This patch adds the groundwork for generating signed BootStream, which can be used by the HAB library in i.MX28. We are adding a new target, u-boot-signed.sb , since the process for generating regular non-signed BootStream is much easier. Moreover, the signed bootstream depends on external _proprietary_ _binary-only_ tool from Freescale called 'cst', which is available only under NDA. To make things even uglier, the CST or HAB mandates a kind-of circular dependency. The problem is, unlike the regular IVT, which is generated by mxsimage, the IVT for signed boot must be generated by hand here due to special demands of the CST. The U-Boot binary (or SPL binary) and IVT are then signed by the CST as a one block. But here is the problem. The size of the entire image (U-Boot, IVT, CST blocks) must be appended at the end of IVT. But the size of the entire image is not known until the CST has finished signing the U-Boot and IVT. We solve this by expecting the CST block to be always 3904B (which it is in case two files, U-Boot and the hand-made IVT, are signed in the CST block). Signed-off-by: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>master
parent
9c2c8a3129
commit
53e6b14e03
@ -0,0 +1,10 @@ |
||||
SECTION 0x0 BOOTABLE |
||||
TAG LAST |
||||
LOAD 0x1000 OBJTREE/spl/u-boot-spl.bin |
||||
LOAD 0x8000 OBJTREE/spl/u-boot-spl.ivt |
||||
LOAD 0x8040 OBJTREE/spl/u-boot-spl.sig |
||||
CALL HAB 0x8000 0x0 |
||||
LOAD 0x40002000 OBJTREE/u-boot.bin |
||||
LOAD 0x40001000 OBJTREE/u-boot.ivt |
||||
LOAD 0x40001040 OBJTREE/u-boot.sig |
||||
CALL HAB 0x40001000 0x0 |
Loading…
Reference in new issue