]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: patch destaddr only for SoCs with header version 1
authorSimon Baatz <gmbnomis@gmail.com>
Wed, 10 Aug 2016 08:15:42 +0000 (10:15 +0200)
committerStefan Roese <sr@denx.de>
Fri, 26 Aug 2016 06:42:50 +0000 (08:42 +0200)
commitbdf58c73ca406e31be49ad875969b2f9aacb9b65
treedb35b4ddac36fa80ff96957c51bd7e9d7560131f
parentc90d7ab6b01e58cb3689ff6dac70982bd215d9b0
tools: kwboot: patch destaddr only for SoCs with header version 1

Commit f4db6c976cf ("arm: mvebu: Add runtime detection of UART (xmodem)
boot-mode") added a change to hdr->destaddr when dynamically patching an
image for UART boot mode.  With this change, kwboot ceases to work on
Kirkwood.

Thus, let's change hdr->destaddr only when we are patching an image with
header version 1 (Orion and Kirkwood use header version 0).

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Fixes: f4db6c976cf ("arm: mvebu: Add runtime detection of UART (xmodem) boot-mode")
Cc: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Kevin Smith <kevin.smith@elecsyscorp.com>
Signed-off-by: Stefan Roese <sr@denx.de>
tools/kwboot.c