From faedcd4e7001f6fabb70920ba065be8e312fd1eb Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 8 Jan 2005 01:06:15 +0000 Subject: Allow flashing for players with alternative boot ROM. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5538 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/firmware_flash.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c index 28623981c1..3220888c13 100644 --- a/apps/plugins/firmware_flash.c +++ b/apps/plugins/firmware_flash.c @@ -111,7 +111,7 @@ typedef enum /* result of the CheckBootROM() function */ typedef enum { - eBootROM, /* the supported boot ROM */ + eBootROM, /* the supported boot ROM(s) */ eUnknown, /* unknown boot ROM */ eROMless, /* flash mapped to zero */ } tCheckROM; @@ -558,7 +558,12 @@ tCheckROM CheckBootROM(void) unsigned i; boot_crc = crc_32((unsigned char*)0x0, 64*1024, 0xFFFFFFFF); - if (boot_crc == 0x56DBA4EE) /* the known boot ROM */ + if (boot_crc == 0x56DBA4EE /* the known boot ROM */ +#if PLATFORM_ID == ID_PLAYER + /* alternative boot ROM found in one single player so far */ + || boot_crc == 0x358099E8 +#endif + ) return eBootROM; /* check if ROM is a flash mirror */ -- cgit v1.2.3