This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7691 - Improved PP (ipod) USB detection
Attached to Project:
Rockbox
Opened by Dave Chapman (linuxstb) - Saturday, 01 September 2007, 20:00 GMT+2
Last edited by Dave Chapman (linuxstb) - Tuesday, 04 September 2007, 10:03 GMT+2
Opened by Dave Chapman (linuxstb) - Saturday, 01 September 2007, 20:00 GMT+2
Last edited by Dave Chapman (linuxstb) - Tuesday, 04 September 2007, 10:03 GMT+2
|
DetailsThis patch (hopefully) improves the USB detection on PortalPlayer targets, fixing the following bugs:
1) MENU needed to be held for a long time (10 seconds or more) in order to prevent Rockbox rebooting into disk mode. 2) Windows would display an "unknown usb device" message It also changes the target-tree function usb_detect() on all targets from bool to int, returning USB_INSERTED or USB_EXTRACTED instead of true or false. This change was made to enable the PP usb_detect() function to check for USB_POWER and return that as a third value. The PP usb_detect() function also checks for USB_POWER_BUTTON being held, and will not call dr_controller_run if MENU is held. I've tested this patch on an iPod Color and a Gigabeat F, but would like it to be tested more widely (especially on different PP targets connecting to different host operating systems) before committing. |
Closed by Dave Chapman (linuxstb)
Tuesday, 04 September 2007, 10:03 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed to SVN. Thanks to all for testing.
Tuesday, 04 September 2007, 10:03 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed to SVN. Thanks to all for testing.
I downloaded, patched with no problems, and compiled fine.
Menu hold and "unknown USB" fix works great.
Tested in iPod nano, Win XP.
iPod still reboots into Apple disk mode when "Menu" not depressed while inserting USB cable.
Tested with an iPod 5th gen and Nano on Ubuntu and Windows 2000.
Only issue which remains (on my 5th gen, not my Nano)(separate bug?) is that booting with a USB cable inserted will successfully boot Rockbox, but Rockbox will freeze at the main menu - disk spinning - forever. Rockbox, in this state, does not respond to any button press except in activating the backlight.
Would someone be able to test the USB detection in the Sansa bootloader (the only PP bootloader that does USB detection) with this patch?