This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8802 - iPod does not charge via an AC -> USB adapter
Attached to Project:
Rockbox
Opened by Jason Trible (JasonT) - Tuesday, 25 March 2008, 20:48 GMT+2
Last edited by Torne Wuff (torne) - Sunday, 06 June 2010, 15:08 GMT+2
Opened by Jason Trible (JasonT) - Tuesday, 25 March 2008, 20:48 GMT+2
Last edited by Torne Wuff (torne) - Sunday, 06 June 2010, 15:08 GMT+2
|
DetailsProblem:
Can no longer charge my 30Gig iPod Video device with a connector that plugs directly into the wall Additional Information: -If I boot into emergency disc mode (hold down select and play on reboot), the device will still charge so I do not think it is an issue with my hardware, or with my AC adapter -This has worked in Rockbox before, but I don't typically charge this way so I don't know when this broke. -Originally there was a patch I needed to apply to make this type of charging work. At some point, it started working in Rockbox proper. Then, apparently, it broke again. -I can go back to older builds if someone needs help narrowing down when this broke -Charging via a USB port appears to work fine. |
This task depends upon
Closed by Torne Wuff (torne)
Sunday, 06 June 2010, 15:08 GMT+2
Reason for closing: Fixed
Additional comments about closing: USB charging works as of r26626. The GPIO manipulation is based on dreamlayers' patch here, but it uses the new USB charging framework instead of just always enabling it.
Sunday, 06 June 2010, 15:08 GMT+2
Reason for closing: Fixed
Additional comments about closing: USB charging works as of r26626. The GPIO manipulation is based on dreamlayers' patch here, but it uses the new USB charging framework instead of just always enabling it.
Last working release by me was r15845-071129.
Than I tried r16290-080212 and bug was already included.
I also felt that USB charging from my computer was too slow in Rockbox when I plugged in USB while holding MENU so Rockbox stays running normally. I didn't measure the current but based on charge rate I'm willing to bet it's limited to 100mA. In Device Manager in Windows Vista, the power tab for that particular USB hub on the motherboard showed that the iPod had requested 500mA, but that doesn't control how much it uses.
Various iPods use the LTC4066 chip for charging and USB power management. For info about the chip, see:
http://www.linear.com/pc/productDetail.jsp?navId=H0,C1,C1003,C1037,C1078,C1088,P12292
Pin 13 (HPWR) of that chip is an input which selects between 100mA and 500mA charging. Perhaps that corresponds to a GPIO bit which Rockbox needs to manipulate.
The current limiting part of the LTC4066 doesn't apply to Firewire charging, and charging from Firewire in Rockbox is fast.
Tried both the Apple wall charger, and a car usb charger.
iPod 30GB Color/Photo
Thanks
iPod is charging from AC adapter but not while connected to USB...
More info can be found here : http://forums.rockbox.org/index.php?topic=18317.0
http://www.rockbox.org/tracker/8319
I haven't tested this in a while but with a AC charger plugged into my iPod with Rockbox booted, the iPod seemed to not get any noticable power from the AC adapter. Certainly not enough to charge the battery or run solely off of the AC adapter.
FS#8319-- is this bug still active?BTW. I think GPIOD & 8 may be used as the USB charger detection input on 4G and other earlier iPods.
Simply put, when using a USB cable, my iPod Mini 1G will charge when I let it boot into the Apple firmware, but it won't charge when I hold the menu button and boot into Rockbox.
IMPORTANT: The OF does charger detection based on voltages found on USB data lines. This code just enables charging blindly. Only connect USB power sources which can supply over 500 mA or 0.5 A. Don't try charging from unpowered hubs or chargers which have lower ratings.
You should be able to quickly verify charging via System -> Debug -> View Battery. On 5G and 5.5G iPods, you could also use
FS#9728.[*] On the Nano, you need to define CONFIG_CHARGING for the necessary language entry to be built. I think the Nano ought to be compatible with setting CONFIG_CHARGING to CHARGING_SIMPLE, but I don't know why that is commented out.
The current patch is just to confirm that USB charging works when these bits are set. On 4G/Color/Photo/5G/5.5G iPods it would also be useful to confirm that if the third bit is zero, current is limited to 100 mA.
To distinguish between a USB connection and a pure power connection we look for bus traffic, i.e. if there's no bus reset within some time after connecting, we assume a charger (and therefore 500mA)
Talk to Michael Sevakis (jhMikeS on IRC) for the details, he did the gigabeat S charging code and the current iteration of the USB connection init code.
It's definitely hardware-controlled on the 5G, via the LTC4066 chip. The 1G Nano has an LTC4066 and 1G Mini has an LTC4055. Those are probably used for charging, although that needs to be confirmed. What about the 4G, Color, Photo and 2G Mini?
I was looking at this bug as a USB power issue, not a charging issue. It seems nobody complains about FireWire charging, and the bits changed in the patch deal with enabling use of USB power and setting the USB current limit. They seem irrelevant for FireWire charging.
The question about charging being hardware-controlled remains of course. Is there any news on that?
Enclosed is the binary
yeah, sorry about that.
Rockbox's USB stack requests 500mA from the host, and if it's connected to a hub which cannot provide 500mA on the port (which should include *all* bus powered hubs; only self powered hubs can do 500mA) then the connection *should* fail; if it doesn't then your operating system is doing USB wrong. Furthermore, when it actually starts drawing 500mA the hub should at minimum switch off the port it's attached to, or switch itself off entirely, to preserve itself. If this does *not* happen then your hub is faulty ;)
This is the only reason I keep the Apple firmware. As soon a non experimental version of this patch arrives, I will certainly stop using the OF.
I am working on a revamp of the USB charging system in rockbox to behave "properly", but I am not sure how long this will take.