mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Prepare core support for the iriver bootloader supporting ROM images
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11991 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12ef310466
commit
0ea4d3197e
9 changed files with 180 additions and 56 deletions
|
@ -36,7 +36,7 @@ static bool reset_config(void)
|
|||
#else
|
||||
firmware_settings.version = EEPROM_SETTINGS_VERSION;
|
||||
firmware_settings.initialized = true;
|
||||
firmware_settings.boot_disk = false;
|
||||
firmware_settings.bootmethod = BOOT_RECOVERY;
|
||||
firmware_settings.bl_version = 0;
|
||||
#endif
|
||||
|
||||
|
@ -51,7 +51,7 @@ bool eeprom_settings_init(void)
|
|||
eeprom_24cxx_init();
|
||||
|
||||
/* Check if player has been flashed. */
|
||||
if (!detect_flashed_rockbox())
|
||||
if (detect_original_firmware())
|
||||
{
|
||||
memset(&firmware_settings, 0, sizeof(struct eeprom_settings));
|
||||
firmware_settings.initialized = false;
|
||||
|
@ -61,7 +61,7 @@ bool eeprom_settings_init(void)
|
|||
|
||||
ret = eeprom_24cxx_read(0, &firmware_settings,
|
||||
sizeof(struct eeprom_settings));
|
||||
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
memset(&firmware_settings, 0, sizeof(struct eeprom_settings));
|
||||
|
@ -101,7 +101,7 @@ bool eeprom_settings_store(void)
|
|||
int ret;
|
||||
uint32_t sum;
|
||||
|
||||
if (!firmware_settings.initialized || !detect_flashed_rockbox())
|
||||
if (!firmware_settings.initialized || detect_original_firmware())
|
||||
{
|
||||
logf("Rockbox in flash is required");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue