diff options
Diffstat (limited to 'bootloader/ondavx747.c')
-rw-r--r-- | bootloader/ondavx747.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bootloader/ondavx747.c b/bootloader/ondavx747.c index 7b4615b10b..4d0bf4221c 100644 --- a/bootloader/ondavx747.c +++ b/bootloader/ondavx747.c | |||
@@ -29,6 +29,8 @@ | |||
29 | #include "system.h" | 29 | #include "system.h" |
30 | #include "button.h" | 30 | #include "button.h" |
31 | #include "common.h" | 31 | #include "common.h" |
32 | #include "rb-loader.h" | ||
33 | #include "loader_strerror.h" | ||
32 | #include "storage.h" | 34 | #include "storage.h" |
33 | #include "disk.h" | 35 | #include "disk.h" |
34 | #include "string.h" | 36 | #include "string.h" |
@@ -148,7 +150,7 @@ static int boot_rockbox(void) | |||
148 | 150 | ||
149 | printf("Loading firmware..."); | 151 | printf("Loading firmware..."); |
150 | rc = load_firmware((unsigned char *)CONFIG_SDRAM_START, BOOTFILE, 0x400000); | 152 | rc = load_firmware((unsigned char *)CONFIG_SDRAM_START, BOOTFILE, 0x400000); |
151 | if(rc < 0) | 153 | if(rc <= EFILE_EMPTY) |
152 | return rc; | 154 | return rc; |
153 | else | 155 | else |
154 | { | 156 | { |
@@ -303,8 +305,8 @@ int main(void) | |||
303 | #endif | 305 | #endif |
304 | rc = boot_rockbox(); | 306 | rc = boot_rockbox(); |
305 | 307 | ||
306 | if(rc < 0) | 308 | if(rc <= EFILE_EMPTY) |
307 | printf("Error: %s", strerror(rc)); | 309 | printf("Error: %s", loader_strerror(rc)); |
308 | 310 | ||
309 | /* Halt */ | 311 | /* Halt */ |
310 | while (1) | 312 | while (1) |