After playing with UDOOBuntu and the nice USB OTG Gadget support my decision was to provide something similar for my Yocot Port as-well. It turned out that the serial Gadget support was pretty easy the Ethernet support is more complex.
For serial console over the USB OTG port of your NEO you have to change the
udooneo.conf file in the folder
MACHINE_FEATURES += " usbgadget usbhost" SERIAL_CONSOLES ?= "115200;ttymxc0 115200;ttyGS0" KERNEL_MODULE_AUTOLOAD += " g_serial"
Due to the fact that only one USB OTG gagdget module can be loaded there are some composite modules available. A combination of serial and Ethernet for example is the
g_cdc. To use
g_cdc instead of
g_serial is pretty simple just change the line
KERNEL_MODULE_AUTOLOAD += " g_serial"
KERNEL_MODULE_AUTOLOAD += " g_cdc"
This will automatically provide serial support and spawns a
usb0 network device device on the target and the host. But my Ubuntu host was not able to set get an IP-Adress for this interface. Setting one by hand resolved this. But this is not comparable to the out of the box experience UDOOBuntu provides.
On your host computer you’ll see something like this in your dmesg log
[ 9515.050081] usb 4-126.96.36.199: new high-speed USB device number 12 using ehci-pci [ 9515.144407] usb 4-188.8.131.52: New USB device found, idVendor=0525, idProduct=a4aa [ 9515.144411] usb 4-184.108.40.206: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 9515.144412] usb 4-220.127.116.11: Product: CDC Composite Gadget [ 9515.144414] usb 4-18.104.22.168: Manufacturer: Linux 3.14.28_1.0.0_ga-udooboard+g580e305 with 2184000.usb [ 9515.152930] cdc_ether 4-22.214.171.124:1.0 usb0: register 'cdc_ether' at usb-0000:00:1d.0-126.96.36.199, CDC Ethernet Device, 76:26:58:xx:xx:xx [ 9515.153714] cdc_acm 4-188.8.131.52:1.2: ttyACM0: USB ACM device [ 9515.176120] cdc_ether 4-184.108.40.206:1.0 usb0: kevent 12 may have been dropped [ 9515.193036] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready [ 9515.377616] userif-3: sent link down event. [ 9515.377619] userif-3: sent link up event.
For serial console access you can connet to the UDOO Neo by attaching minicom to
/dev/ttyACM0 at 115200 Baud 8N1 No flow control, or any other treminal emulator of your choice.