FS#6494 - USB debug screen for PP502x

Attached to Project: Rockbox
Opened by Barry Wardell (barrywardell) - Tuesday, 02 January 2007, 17:52 GMT
Last edited by Frank Gevaerts (fg) - Friday, 12 December 2008, 19:21 GMT
Task Type Patches
Category Battery/Charging
Status Closed
Assigned To No-one
Operating System PortalPlayer-based
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This patch adds a USB debug screen for PortalPlayer 502x based targets (iPods, H10, Sansa, TPJ1022). It is based on the Linux proc support in the driver for the Freescale i.MX31 at The USB controller in the PortalPlayer chips is thought to be the same as in the i.MX31.
This task depends upon

Closed by  Frank Gevaerts (fg)
Friday, 12 December 2008, 19:21 GMT
Reason for closing:  Out of Date
Additional comments about closing:  I don't think this is useful anymore
Comment by Barry Wardell (barrywardell) - Wednesday, 03 January 2007, 04:45 GMT
I've changed this to a plugin instead of a debug screen. This avoids increasing the binary size unnecessarily and leaves the option for further USB experimentation in the plugin. I've also added the option to dump the debug info to a file. It might be interesting to compare files from different devices to see if there are any differences. I have attached a dump from my H10.

Note: Uncomment the CONFIG_USBOTG define in config-*.h to build the plugin.
Comment by Barry Wardell (barrywardell) - Thursday, 04 January 2007, 00:10 GMT
Updated the plugin with two extra menu options to run functions taken from the Linux driver. dr_controller_setup() initializes it and dr_controller_run() runs (enables) it.
The debug info changes considerably when you do setup, then run so they seem to be working somewhat. For further proof, connect to a computer, setup, then run and check the output from dmesg!

Edit: As before, don't forget to uncomment the relevant part in config-*.h
Comment by Barry Wardell (barrywardell) - Thursday, 04 January 2007, 00:49 GMT
A quick update. Disable the system reboot when plugging in the USB cable so that we can actually test. Also, rename the #define to USBOTG_ARC to more accurately reflect the hardware.
Comment by Adam Gashlin (AdamGashlin) - Thursday, 04 January 2007, 02:48 GMT
dumps from a 4g ipod color.
usb_debug3-1 is before connecting, usb_debug3-2 is after connecting and doing setup and run, usb_debug3-dmesg is what the computer saw
usb_debugbefore is from another run, before doing anything, usb_debugsetup is after running setup, usb_debugrun is after running run
Comment by Tomasz Moń (desowin) - Sunday, 25 February 2007, 01:17 GMT
I've synced patch to current svn