Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Patches
  • Category Operating System/Drivers
  • Assigned To
    torne
  • Operating System iPod 5G
  • Severity Medium
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by torne - 2010-03-28
Last edited by torne - 2011-06-05

FS#11149 - Possible alternative fix for ipod shutdown/reboot issue

The current workaround for the iPod startup issue (from  FS#10107 ) is rather unsatisfactory - it has the cosmetic issue of the power icon on shutdown, and it seems to cause alarm wakeups for some people (possibly specific models/OF versions).

As a possible alternative, I am testing simply clearing the relevant portion of IRAM on shutdown, in the hope that this will cause the iPod to always assume it is booting in the normal way as if it were a hard reset. So far this has worked fine on my iPod Video 80GB, but it needs much more thorough testing on a variety of models. This is just a hunch, incidentally, I have not completed enough of a disassembly of the boot rom to work out why the original problem occurs.

The attached patch reverts the change from  FS#10107 , and makes the IRAM clearing change instead.

If you test this and you still get the original boot problem, even once, please reply ASAP with the model and original firmware version.

Closed by  torne
2011-06-05 11:02
Reason for closing:  Fixed
Additional comments about closing:  

This is as good as we're going to get unless someone manages to work out what the root cause of the original problem is. The problem is fixed for some people/models and greatly reduced in frequency for most.

torne commented on 2010-04-02 13:58

Test builds for this change are available at http://forums.rockbox.org/index.php?topic=24376.0

torne commented on 2010-05-24 11:08

This has been committed, however some people's players still need to be reset. It fixes it completely for many people, though…

For now I'm leaving this fix in, since it doesn't have the unpleasant side effects of  FS#10107 , but we should see what else we can come up with.

This leads me to hypothesize that the problem occurred due to IRAM retaining some data while unpowered. This phenomenon has been documented, especially relating to http://en.wikipedia.org/wiki/Cold_boot_attack . That would explain why the problem seemed to occur more often when my iPod was cold or when I tried to turn it on soon after turning it off. Although the cold boot attack was normally done with DRAM, SRAM (such as the PP502X IRAM) is also vulnerable.

torne commented on 2010-07-22 09:34

This doesn't fix it for a lot of people, though, it seems.. so I suspect something more complicated is going on.

I just hit the issue on my mini 1G with quite recent build (~ week old or something like this). I haven't seent this behaviour for ages.

jmf commented on 2011-01-13 17:18

I stumbled on this looking for info on the problem I'm having. My 5.5g will often not shutdown. The top run time is something like 520 hours. I'll often get the "shutting down" screen, but will then come back to the player later and find it playing. I'll also "shut down" the player at night only to find it dead in the morning.

On another note, dead isn't always dead. Sometimes I'll try to boot and get some variety of a low battery error, but will eventually get the player to boot and the batt will eventually stabalize at 50+%.

I have no coding background with rockbox, and therefore have no idea why any of this would happen. Just throwing it out there.

John, does your iPod turn on immediately after shutting down or at some later time? If it turns on immediately, that might be due to defective USB power circuitry. I wrote about the issue on my blog at http://dreamlayers.blogspot.com/2008/12/video-ipod-wont-charge-via-usb-wont.html . If it turns on later, that could just be an alarm.

It's usually a bad idea to ignore Rockbox low battery errors and keep turning on the device until it stays on. That could excessively discharge the battery. Low temperatures can cause low battery errors even when the battery has plenty of charge left. Even in such cases, warming up the device is much better than continually attempting to turn it on.

jmf commented on 2011-01-13 22:02

I stumbled on this looking for info on the problem I'm having. My 5.5g will often not shutdown. The top run time is something like 520 hours. I'll often get the "shutting down" screen, but will then come back to the player later and find it playing. I'll also "shut down" the player at night only to find it dead in the morning.

On another note, dead isn't always dead. Sometimes I'll try to boot and get some variety of a low battery error, but will eventually get the player to boot and the batt will eventually stabalize at 50+%.

I have no coding background with rockbox, and therefore have no idea why any of this would happen. Just throwing it out there.

jmf commented on 2011-01-13 22:03

Sorry for the dupe post there… My ipod turns on again after a while. It does not immediately reboot.

jmf commented on 2011-01-13 22:08

Re: the low battery.. I did notice that the ipod is sensitive to cold. Since then it has spent every night inside. I thought that had completely addressed the issue but the other morning I went to start it up and got the low battery shutdown. I figured the player had started again and run out the battery, but incredibly, when I rebooted it, the battery stabilized at 53%!

One other detail comes to mind with the auto-start - sometimes when the player autostarts, it will run out the battery and get into a loop where it will hang at the shutdown screen and then reset, thereby rebooting and eventually hanging again. That continues until eventually I get "cannot divide by zero".

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing