]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwbimage: Fix dest addr
authorMario Six <mario.six@gdsys.cc>
Wed, 11 Jan 2017 15:00:53 +0000 (16:00 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Feb 2017 08:03:15 +0000 (09:03 +0100)
commit0fb977d102eaf1ffe95de40beee5ecd3e7e2c2fa
tree2c4ee25916aa0c6ce2997d013be54d8afbe09926
parent074b25f3b0533a59a737f84840bdf324a955977b
tools: kwbimage: Fix dest addr

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>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c