• Status Closed
  • Percent Complete
  • Task Type Patches
  • Category Battery/Charging
  • Assigned To No-one
  • Operating System PortalPlayer-based
  • Severity Low
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by barrywardell - 2007-01-02
Last edited by fg - 2008-12-12

FS#6494 - USB debug screen for PP502x

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.

Closed by  fg
2008-12-12 19:21
Reason for closing:  Out of Date
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

I don't think this is useful anymore

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.

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

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.

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

I've synced patch to current svn


Available keyboard shortcuts


Task Details

Task Editing