This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OTG support on Linux

Other Parts Discussed in Thread: AM1808, WL1271

Hello,

Is OTG support for linux planned to be added in next PSP release ?

Best regards

 

Thierry

  • o, what does it mean for not support ? your computer did not find any USB devices while you connect the board to your computer?

    did you get the host work?

  • I could use the USB Host and the USB Device (gadget) functionalites separately (by compiling two different kernels). (tried to connect a USB key in first case, and connect on computer in second case)

    The actual linux PSP does not support the OTG functionality of the Inventra USB controller as described here: http://processors.wiki.ti.com/index.php/DaVinci_PSP_03.20.00.14_Release_Notes

    My goal is to use either the USB Host or the USB Device mode (via OTG) in the same environment, without to change the kernel, so I'm waiting on the OTG support of the controller.

     

     

     

  • I'm using latest SDK like 4.0.*, it could work. my platform is 1808, try if you could do that by upgrading to new sdk.

  • I'm also on Logic's EVM with AM1808, and SDK 4.0.1.0 and PSP 3.20.00.14 but it is said that the OTG is not supported.

    How did you make it work ? (i.e. what linux device drivers did you use)

    Thierry

  • my evb has sent out to my friend, he told me he did it (latest SDK4.01), there is OTG selection in the menuconfig.

    also, he made SDIO wl1271. (back porting from 2.6.37) I'll ask for detail later, but he's busy with the SPI WL1271 driver work. I'll be off for several days vacation, after that will try to give you an answer.

    he asked me several questions, how you made the 2 kernels? what version is you psp? he told if you could compile 2 kernel to work in host/slave, then easy job to make it work in both mode just by the ID selection. he also suggest to use modules to make it manually. might be he use the manually way to solve the problem.

    hope this could help you.

     

    but I did remember the 2.0 host always tells not working at the top speed, don't know why.

     

     

     

  • ftp://ftp.india.ti.com/PSP/Releases/ODC/DaVinci-PSP-SDK/DaVinci-PSP-SDK-03.30.00.02.tgz try to see if you could download this, I failed and TI's employee insists the link is not broken.
  • config: device driver -> usb support -> driver mode -> both host and peripheral: usb otg(on the go) device hope could help.
  • The link does not work from my place as well

  • sorry for the late reply, finally I got my evb back, here is how to make OTG work: don't know what gadget you need. follow the steps below:

    device driver-> usb support -> driver->usb gadget support->usb peripheral controller-> inventra HDRC USB peripheral

    and choose some gadget drivers like ethernet gadget, back to upper menu

    device driver -> usb support -> driver mode -> both host and peripheral: usb otg(on the go) 

    save and quit.

    modify drivers/usb/musb/musb_core.c, remark line 1945-1949, make

    test ok, insmod g_ether.ko works, usb disk works.

     

    when I debug my own board found usb disk will not work, and after tracing into the code, found why I could do that before because once you insmod the gadget, you are able to do the OTG... but my EVB is down and cannot verify anymore.