|
|
@ -297,7 +297,7 @@ static int libztex_configureFpgaHS(struct libztex_device *ztex, const char* firm |
|
|
|
for (tries = 3; tries > 0; tries--) { |
|
|
|
for (tries = 3; tries > 0; tries--) { |
|
|
|
fp = open_bitstream("ztex", firmware); |
|
|
|
fp = open_bitstream("ztex", firmware); |
|
|
|
if (!fp) { |
|
|
|
if (!fp) { |
|
|
|
applog(LOG_ERR, "%s: failed to read firmware '%s'", ztex->repr, firmware); |
|
|
|
applog(LOG_ERR, "%s: failed to read bitstream '%s'", ztex->repr, firmware); |
|
|
|
return -2; |
|
|
|
return -2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -365,7 +365,7 @@ static int libztex_configureFpgaLS(struct libztex_device *ztex, const char* firm |
|
|
|
for (tries = 10; tries > 0; tries--) { |
|
|
|
for (tries = 10; tries > 0; tries--) { |
|
|
|
fp = open_bitstream("ztex", firmware); |
|
|
|
fp = open_bitstream("ztex", firmware); |
|
|
|
if (!fp) { |
|
|
|
if (!fp) { |
|
|
|
applog(LOG_ERR, "%s: failed to read firmware '%s'", ztex->repr, firmware); |
|
|
|
applog(LOG_ERR, "%s: failed to read bitstream '%s'", ztex->repr, firmware); |
|
|
|
return -2; |
|
|
|
return -2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|