CubieBoard Forum

Cubieboard itself => Beginners => Topic started by: mt12345 on March 20, 2013, 09:08:22 pm

Title: USB OTG linux
Post by: mt12345 on March 20, 2013, 09:08:22 pm
OTG can work as 'host' or 'device'. I believe one can change it in options in Android. How about linux?
Title: Re: USB OTG linux
Post by: pcklee123 on September 10, 2013, 08:43:18 pm
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.
Title: Re: USB OTG linux
Post by: kingneutron on September 16, 2013, 01:49:17 pm
--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...
Title: Re: USB OTG linux
Post by: Cubear on September 16, 2013, 05:42:14 pm
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.