mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
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>
This commit is contained in:
committed by
Marek Vasut
parent
86d56a5da5
commit
0ca8fd37ae
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user