
18 Jan
2017
18 Jan
'17
5:36 p.m.
On 11.01.2017 16:00, Mario Six wrote:
To enable secure boot, we need to jump back into the BootROM to continue the SoC's boot process instead of letting the SPL load and run the main U-Boot image.
But, since the u-boot-spl.img (including the 64 byte header) is loaded by the SoC as the main image, we need to compensate for the header length to get a correct entry point.
Thus, we subtract the header size from the destination address, so that the execution address points at the actual entry point of the image.
The current boards ignore both parameters anyway, so this change shouldn't concern them.
Signed-off-by: Mario Six mario.six@gdsys.cc
Changes in v2:
None
Reviewed-by: Stefan Roese sr@denx.de
Thanks, Stefan