TS-TPC-7990 USB OTG: Difference between revisions

From embeddedTS Manuals
(Created page with "The TS-7990 brings out a USB device port on P1 which can allow the board to act as a USB device. Several devices are compiled into the default kernel. Additional devices can...")
 
No edit summary
Line 1: Line 1:
The TS-7990 brings out a USB device port on P1 which can allow the board to act as a USB device.  Several devices are compiled into the default kernel.  Additional devices can be compiled into the kernel by following the section [[#Compile_the_Kernel|here]].
The TS-7990 brings out a USB device port on P1 which can allow the board to act as a USB device.  Several gadget device drivers are compiled into the default kernel.  Additional devices can be compiled into the kernel by following the section [[#Compile_the_Kernel|here]].


''' USB Serial '''
''' USB Serial '''
Line 6: Line 6:
</source>
</source>


This will create a /dev/ttyGS0.  See the kernel documentation for more information:
This will create a /dev/ttyGS0 immediately after this modprobe is run.  When this USB is connected to another Linux system this will show up as /dev/ttyACM0.  See the kernel documentation for more information:
* [https://www.kernel.org/doc/Documentation/usb/gadget_serial.txt USB Gadget Serial documentation]
* [https://www.kernel.org/doc/Documentation/usb/gadget_serial.txt USB Gadget Serial documentation]
* [https://github.com/embeddedarm/linux-3.10.17-imx6/blob/master/Documentation/usb/linux-cdc-acm.inf Windows CDC-ACM INF file]
* [https://github.com/embeddedarm/linux-3.10.17-imx6/blob/master/Documentation/usb/linux-cdc-acm.inf Windows CDC-ACM INF file]
Line 15: Line 15:
</source>
</source>


This provides a usb0 network interface which simulates an ethernet network connection between the host pc and the i.MX6.
This provides a usb0 network interface which simulates an ethernet network connection between the host pc and the i.MX6. This uses the Ethernet CDC driver on the host system where it is connected.  Under Windows the inf file will be needed:
 
* [https://github.com/embeddedarm/linux-3.10.17-imx6/blob/master/Documentation/usb/linux.inf Windows driver inf]
* [https://github.com/embeddedarm/linux-3.10.17-imx6/blob/master/Documentation/usb/linux.inf Windows driver inf]

Revision as of 15:42, 10 August 2017

The TS-7990 brings out a USB device port on P1 which can allow the board to act as a USB device. Several gadget device drivers are compiled into the default kernel. Additional devices can be compiled into the kernel by following the section here.

USB Serial

modprobe g_serial use_acm=1

This will create a /dev/ttyGS0 immediately after this modprobe is run. When this USB is connected to another Linux system this will show up as /dev/ttyACM0. See the kernel documentation for more information:

USB Ethernet

modprobe g_ether

This provides a usb0 network interface which simulates an ethernet network connection between the host pc and the i.MX6. This uses the Ethernet CDC driver on the host system where it is connected. Under Windows the inf file will be needed: