Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: electron-libre on August 01, 2006, 05:38:16 AM

Title: Searching for the USB related code in rockbox firmware ?
Post by: electron-libre on August 01, 2006, 05:38:16 AM
Hello,

Concerning a previous post I have made http://forums.rockbox.org/index.php?topic=5453.0. I was wondering where the USB controlling code is contained in the Rockbox firmware with the aim of changing the code to remove the hardware error I am receiving. I want to disable the USB power supply. I have turned off the USB charging in the settings but the error and the power supply symbol still remain.

This modification will allow me to use the newest Rockbox firmware which causes the same problem as the original firmware when I use the USB charging plugin. (I am currently using an older version of the Rockbox firmware which does not cause this error).

Thanks,
Title: Re: Searching for the USB related code in rockbox firmware ?
Post by: markun on August 02, 2006, 04:53:28 AM
I think you are looking for firmware/usb.c
http://www.rockbox.org/viewcvs.cgi/firmware/usb.c?rev=HEAD&content-type=text/vnd.viewcvs-markup

Do you remember which rockbox build works? The changes are months old.
Title: Re: Searching for the USB related code in rockbox firmware ?
Post by: petur on August 02, 2006, 07:45:32 AM
I think the code you're looking for may not be there...

have a look at this: http://www.rockbox.org/tracker/task/4770 (http://www.rockbox.org/tracker/task/4770)
It's a patch that deals with USB charging, it may contain some info for you to tweak your build.