Commit 0ca8fd37ae86726747d5dd96f915967eceb64691

Authored by Atsushi Nemoto
Committed by Marek Vasut
1 parent 86d56a5da5

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 <atsushi.nemoto@sord.co.jp>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

tools/socfpgaimage.c
... ... @@ -191,6 +191,7 @@
191 191 if (hdr_csum != sfp_csum)
192 192 return -EINVAL;
193 193  
  194 + *ver = header_v0.version;
194 195 return img_len;
195 196 }
196 197