Skip to content
Snippets Groups Projects
Commit 93f48779 authored by Chris Packham's avatar Chris Packham Committed by Stefan Roese
Browse files

tools: kwboot: don't adjust destaddr when patching the image


Commit 94084eea ("tools: kwbimage: Fix dest addr") changed kwbimage
to do this adjustment. So now the adjustment in kwboot is not needed
(and would prevent UART booting for images generated by the new
kwbimage). Remove the destaddr adjustment in kwboot.

Signed-off-by: default avatarChris Packham <judge.packham@gmail.com>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 1f6c8a57
Branches
Tags
No related merge requests found
...@@ -664,14 +664,6 @@ kwboot_img_patch_hdr(void *img, size_t size) ...@@ -664,14 +664,6 @@ kwboot_img_patch_hdr(void *img, size_t size)
hdr_v0->srcaddr = hdr_v0->ext hdr_v0->srcaddr = hdr_v0->ext
? sizeof(struct kwb_header) ? sizeof(struct kwb_header)
: sizeof(*hdr_v0); : sizeof(*hdr_v0);
} else {
/*
* Subtract mkimage header size from destination address
* as this header is not expected by the Marvell BootROM.
* This way, the execution address is identical to the
* one the image is compiled for (TEXT_BASE).
*/
hdr->destaddr = hdr->destaddr - sizeof(struct image_header);
} }
hdr->checksum = kwboot_img_csum8(hdr, hdrsz) - csum; hdr->checksum = kwboot_img_csum8(hdr, hdrsz) - csum;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment