From: Atsushi Nemoto Date: Fri, 21 Sep 2018 00:19:13 +0000 (+0900) Subject: tools: socfpga: fix sfp_verify_header X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0ca8fd37ae86726747d5dd96f915967eceb64691;p=u-boot.git tools: socfpga: fix sfp_verify_header Fix sfp_verify_header to return correct version number. This fixes "Not a sane SOCFPGA preloader" error message with v1 header. Signed-off-by: Atsushi Nemoto --- diff --git a/tools/socfpgaimage.c b/tools/socfpgaimage.c index 390c9bb402..72d8b96f54 100644 --- a/tools/socfpgaimage.c +++ b/tools/socfpgaimage.c @@ -191,6 +191,7 @@ static int sfp_verify_header(const uint8_t *buf, uint8_t *ver) if (hdr_csum != sfp_csum) return -EINVAL; + *ver = header_v0.version; return img_len; }