summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2017-02-15 15:34:55 +1300
committerStefan Roese <sr@denx.de>2017-02-17 10:15:56 +0100
commit93f48779356ced7336a5045299b4920f01d6e599 (patch)
treeb65a838c523517675236e650e125fa1d7d8a8fae
parent1f6c8a573381ed7d4f506ab45eeb23fb2a896660 (diff)
tools: kwboot: don't adjust destaddr when patching the image
Commit 94084eea3bd3 ("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: Chris Packham <judge.packham@gmail.com> Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--tools/kwboot.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index 26b394963cd..8a421cda4ea 100644
--- a/tools/kwboot.c
+++ b/tools/kwboot.c
@@ -664,14 +664,6 @@ kwboot_img_patch_hdr(void *img, size_t size)
hdr_v0->srcaddr = hdr_v0->ext
? sizeof(struct kwb_header)
: 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;