Rockbox

  • Status Closed
  • Percent Complete
    100%
  • 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 Barry Wardell - 2007-01-02
Last edited by Frank Gevaerts - 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 http://www.bitshrine.org/gpp/linux-2.6.16-mx31-usb-2.patch. The USB controller in the PortalPlayer chips is thought to be the same as in the i.MX31.

Closed by  Frank Gevaerts
2008-12-12 19:21
Reason for closing:  Out of Date
Additional comments about closing:  

I don't think this is useful anymore

Barry Wardell commented on 2007-01-03 04:45

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.

Barry Wardell commented on 2007-01-04 00:10

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

Barry Wardell commented on 2007-01-04 00:49

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.

Adam Gashlin commented on 2007-01-04 02:48

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

Tomasz Moń commented on 2007-02-25 01:17

I've synced patch to current svn

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing