From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 18 Jan 2017 17:36:41 +0100 Subject: [U-Boot] [PATCH v2 09/18] tools: kwbimage: Fix dest addr In-Reply-To: <20170111150102.7399-10-mario.six@gdsys.cc> References: <20170111150102.7399-1-mario.six@gdsys.cc> <20170111150102.7399-10-mario.six@gdsys.cc> Message-ID: <5ea4f4b4-6a10-5104-0a48-22eccec06a04@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > Changes in v2: > > None Reviewed-by: Stefan Roese Thanks, Stefan