forked from len0rd/rockbox
Gracefully shutdown unless firmware is found.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10879 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8c834bd57c
commit
973ee5d8d9
2 changed files with 18 additions and 7 deletions
|
@ -351,9 +351,10 @@ bool detect_flashed_rockbox(void)
|
|||
return true;
|
||||
}
|
||||
|
||||
unsigned long valid_bootloaders[][2] =
|
||||
{
|
||||
{ 62332, 0x77395351 },
|
||||
unsigned long valid_bootloaders[][2] = {
|
||||
/* Size-8 CRC32 */
|
||||
{ 62332, 0x77395351 }, /* Pre-release v7 */
|
||||
{ 63340, 0xc41857b6 }, /* Pre-release v7, fixed crash unless firmware found. */
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
|
|
@ -511,6 +511,16 @@ void main(void)
|
|||
if (i == 0)
|
||||
start_firmware();
|
||||
|
||||
if (detect_flashed_rockbox())
|
||||
{
|
||||
printf("No firmware found on disk");
|
||||
printf("Powering off...");
|
||||
lcd_update();
|
||||
ata_sleep();
|
||||
sleep(HZ*4);
|
||||
power_off();
|
||||
}
|
||||
else
|
||||
start_iriver_fw();
|
||||
#endif /* IAUDIO_X5 */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue