diff options
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r-- | firmware/rolo.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c index a3e6d5c2b9..1b37b6f771 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c | |||
@@ -250,12 +250,9 @@ int rolo_load(const char* filename) | |||
250 | 250 | ||
251 | err = LOAD_FIRMWARE(filebuf, filename, filebuf_size); | 251 | err = LOAD_FIRMWARE(filebuf, filename, filebuf_size); |
252 | #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) | 252 | #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) |
253 | /* write the bootdata as if rolo were the bootloader */ | 253 | /* write the bootdata as if rolo were the bootloader |
254 | unsigned int crc = 0; | 254 | * FIXME: this won't work for root redirect... */ |
255 | if (strcmp(filename, BOOTDIR "/" BOOTFILE) == 0) | 255 | if (!strcmp(filename, BOOTDIR "/" BOOTFILE) && boot_data_valid) |
256 | crc = crc_32(boot_data.payload, boot_data.length, 0xffffffff); | ||
257 | |||
258 | if(crc > 0 && crc == boot_data.crc) | ||
259 | write_bootdata(filebuf, filebuf_size, boot_data.boot_volume); /* rb-loader.c */ | 256 | write_bootdata(filebuf, filebuf_size, boot_data.boot_volume); /* rb-loader.c */ |
260 | #endif | 257 | #endif |
261 | 258 | ||