summaryrefslogtreecommitdiffstats
path: root/firmware/eeprom_settings.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-08-09 12:04:13 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-08-09 12:04:13 +0000
commite1eb91b976621f03fe7082e5290f47d09f6d7b2e (patch)
treeeca734c2a193dc8f933b784a72969ccc3b9101ea /firmware/eeprom_settings.c
parent0f87f8fd366b0869c001a7d4e8ca6b2e27065e7b (diff)
downloadrockbox-e1eb91b976621f03fe7082e5290f47d09f6d7b2e.tar.gz
rockbox-e1eb91b976621f03fe7082e5290f47d09f6d7b2e.tar.bz2
rockbox-e1eb91b976621f03fe7082e5290f47d09f6d7b2e.zip
Bootloader support to search firmware also from flash. Bootloader <->
Rockbox communication when Rockbox has been flashed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10499 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/eeprom_settings.c')
-rw-r--r--firmware/eeprom_settings.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/eeprom_settings.c b/firmware/eeprom_settings.c
index e472f4df07..450eff9623 100644
--- a/firmware/eeprom_settings.c
+++ b/firmware/eeprom_settings.c
@@ -21,6 +21,7 @@
#include "eeprom_24cxx.h"
#include "crc32.h"
+#include "system.h"
#include "string.h"
#include "logf.h"
@@ -64,16 +65,17 @@ bool eeprom_settings_init(void)
sum = crc_32(&firmware_settings, sizeof(struct eeprom_settings)-4,
0xffffffff);
- if (firmware_settings.checksum != sum)
+ logf("BL version: %d", firmware_settings.bl_version);
+ if (firmware_settings.version != EEPROM_SETTINGS_VERSION)
{
- logf("Checksum mismatch");
+ logf("Version mismatch");
reset_config();
return true;
}
- if (firmware_settings.version != EEPROM_SETTINGS_VERSION)
+ if (firmware_settings.checksum != sum)
{
- logf("Version mismatch");
+ logf("Checksum mismatch");
reset_config();
return true;
}