<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dh-electronics.com/index.php?action=history&amp;feed=atom&amp;title=USB_Gadget_Serial_Driver</id>
	<title>USB Gadget Serial Driver - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dh-electronics.com/index.php?action=history&amp;feed=atom&amp;title=USB_Gadget_Serial_Driver"/>
	<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=USB_Gadget_Serial_Driver&amp;action=history"/>
	<updated>2026-04-27T22:36:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.dh-electronics.com/index.php?title=USB_Gadget_Serial_Driver&amp;diff=861&amp;oldid=prev</id>
		<title>Lzenz: Created page with &quot;The USB Gadget Serial Driver provides a tty style serial line interface through the USB-OTG connection of the board.  __TOC__   == General Information ==  For further information...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dh-electronics.com/index.php?title=USB_Gadget_Serial_Driver&amp;diff=861&amp;oldid=prev"/>
		<updated>2012-10-08T12:49:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The USB Gadget Serial Driver provides a tty style serial line interface through the USB-OTG connection of the board.  __TOC__   == General Information ==  For further information...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The USB Gadget Serial Driver provides a tty style serial line interface through the USB-OTG connection of the board.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== General Information ==&lt;br /&gt;
&lt;br /&gt;
For further information have a look at [http://www.kernel.org/doc/Documentation/usb/gadget_serial.txt http://www.kernel.org/doc/Documentation/usb/gadget_serial.txt].&lt;br /&gt;
&lt;br /&gt;
== Configure the USB-OTG Port ==&lt;br /&gt;
&lt;br /&gt;
To use USB Gadget features the USB-OTG Port has to be initialized in USB slave mode. Add &amp;lt;code&amp;gt;&amp;quot;otg_mode=device&amp;quot;&amp;lt;/code&amp;gt; to the kernel commandline on the bootloader console.&lt;br /&gt;
&lt;br /&gt;
On DHCOM boards it is possible to use the u-boot environment variable &amp;lt;code&amp;gt;&amp;quot;linux_add_param&amp;quot;&amp;lt;/code&amp;gt;:&lt;br /&gt;
# enter bootloader console with DEL/BS Key&lt;br /&gt;
# &amp;lt;code&amp;gt;setenv linux_add_param otg_mode=device&amp;lt;/code&amp;gt;&lt;br /&gt;
# &amp;lt;code&amp;gt;saveenv&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Prepare the Kernel ==&lt;br /&gt;
&lt;br /&gt;
Prepare the Linux Kernel Sources to be able to compile.&lt;br /&gt;
&lt;br /&gt;
Open a console window and go to the root directory of the kernel sources and start the kernel configuration dialog:&lt;br /&gt;
* &amp;lt;code&amp;gt; ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make menuconfig &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enable the following items:&lt;br /&gt;
* Device Drivers --&amp;gt;  USB Support --&amp;gt;  USB Gadget Support &lt;br /&gt;
* Device Drivers --&amp;gt;  USB Support --&amp;gt;  USB Gadget Support --&amp;gt; USB Peripheral Controller &lt;br /&gt;
:: choose the matching device controller:&lt;br /&gt;
::: * DHCOM AM35x: OMAP USB Device Controller&lt;br /&gt;
::: * DHCOM iMX25: Freescale Highspeed USB DR Peripheral Controller&lt;br /&gt;
* Device Drivers --&amp;gt;  USB Support --&amp;gt;  USB Gadget Support --&amp;gt; USB Gadget Drivers --&amp;gt; Serial Gadget (with CDC ACM and CDC OBEX support)&lt;br /&gt;
&lt;br /&gt;
Exit the configuration dialog an start building the kernel:&lt;br /&gt;
* &amp;lt;code&amp;gt; ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make uImage &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the kernel on your board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure the Root Filesystem ==&lt;br /&gt;
To be able to do a user-login at the usb gadget serial line add the following line to &amp;lt;code&amp;gt;/etc/inittab&amp;lt;/code&amp;gt; near line 65:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt; T1:23:respawn:/sbin/getty -L ttyGS0 9600 vt100 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to able to login as &amp;lt;code&amp;gt;&amp;quot;root&amp;quot;&amp;lt;/code&amp;gt; you have to add &amp;lt;code&amp;gt;ttyGS0&amp;lt;/code&amp;gt; to the file &amp;lt;code&amp;gt;/etc/securetty&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Host PC configuration ==&lt;br /&gt;
&lt;br /&gt;
Connect the board via usb-otg to your host pc. If you working with linux search for &amp;lt;code&amp;gt;&amp;quot;/dev/ttyACM0&amp;quot;&amp;lt;/code&amp;gt; or similar. You can open that device-file with minicom or similar tools without additional configurations.&lt;br /&gt;
&lt;br /&gt;
If you want to connect to a windows host pc you have to install the required *.inf file before using the interface.&lt;br /&gt;
* [[media:usb_gadget_serial_inf.zip | Download *.inf file]]&lt;/div&gt;</summary>
		<author><name>Lzenz</name></author>
	</entry>
</feed>