December 07, 2019, 07:43:57 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


USB OTG linux

Started by mt12345, March 20, 2013, 09:08:22 pm

Previous topic - Next topic

mt12345

OTG can work as 'host' or 'device'. I believe one can change it in options in Android. How about linux?

pcklee123

September 10, 2013, 08:43:18 pm #1 Last Edit: September 10, 2013, 08:45:58 pm by pcklee123
Did you ever find out? I would like to make use of g_ether to link to another cubieboard or pc but when I do sudo modprobe g_ether, it gives ERROR: could not insert 'g_ether': No such device
Can you please post samples of the relevant bits of script.fex for host mode, device mode and OTG mode.

kingneutron

--Have you seen this?

https://developer.ridgerun.com/wiki/index.php/How_to_use_USB_device_networking

--I know it's not specifically for the cubie; might need one of the board developers to chime in here if it needs special config...

Cubear

What's the proper way to configure and use the zero-th usb? I've seen there are kernel options to allow the USB0 to support host only or with added OTG support. Does the mode for this USB port also have to be configured in the fex file? It seems to work fine, but the upload transfer speed suffers a lot (12 MB/s upload to an external disk as opposed to a 24MB/s with the regular USB port).

It failed to support a USB sound card though.