Index: firmware/target/arm/ipod/power-ipod.c =================================================================== --- firmware/target/arm/ipod/power-ipod.c (revision 20646) +++ firmware/target/arm/ipod/power-ipod.c (working copy) @@ -29,6 +29,7 @@ #include "pcf50605.h" #include "usb.h" #include "lcd.h" +#include "string.h" void power_init(void) { @@ -141,9 +142,18 @@ #endif #ifndef BOOTLOADER -#ifdef IPOD_1G2G +#if defined(IPOD_1G2G) /* we cannot turn off the 1st gen/ 2nd gen yet. Need to figure out sleep mode. */ system_reboot(); +#elif CONFIG_CPU == PP5022 + /* The OF in flash assumes boot failed because the battery is low. + If there is no charger connected, this leads to a shutdown. + */ + memcpy((void *)(0x4001ff00+8), "booting!", 8); + system_reboot(); +#elif CONFIG_CPU == PP5020 + memcpy((void *)(0x40017f00+8), "booting!", 8); + system_reboot(); #else /* We don't turn off the ipod, we put it in a deep sleep */ pcf50605_standby_mode();