x1000: bootloader: display uimage load error code

Change-Id: I08361aa85406303c10bb487636a6a61a93d2b127
This commit is contained in:
Aidan MacDonald 2022-03-19 13:55:11 +00:00
parent fbe9e4ac10
commit ee68d9df8e

View file

@ -114,7 +114,7 @@ int load_uimage_file(const char* filename,
int handle = uimage_load(uh, sizep, uimage_fd_reader, (void*)(intptr_t)fd); int handle = uimage_load(uh, sizep, uimage_fd_reader, (void*)(intptr_t)fd);
if(handle <= 0) { if(handle <= 0) {
splashf(5*HZ, "Cannot load uImage\n%s", filename); splashf(5*HZ, "Cannot load uImage (%d)\n%s", handle, filename);
return -3; return -3;
} }
@ -166,7 +166,7 @@ int load_uimage_flash(uint32_t addr, uint32_t length,
nand_unlock(n.ndrv); nand_unlock(n.ndrv);
if(handle <= 0) { if(handle <= 0) {
splashf(5*HZ, "uImage load failed"); splashf(5*HZ, "uImage load failed (%d)", handle);
return -2; return -2;
} }