AnsweredAssumed Answered

T2080 platform support for USB OTG (serial gadget)

Question asked by evaneimer on Nov 2, 2018
Latest reply on Dec 26, 2018 by Pavel Chubakov

I am trying to get a T2080 based embedded system to support USB OTG. In particular, I am trying to support a Serial Gadget.
I don't yet have the hardware with the proper OTG AB receptacle.
In the meantime, I am trying to get my kernel/rfs configured properly to support a Serial Gadget.
I am using a TimeSys configuration which is built on top of the NXP T2080 (Linux version 4.1.35).
I tried following the instructions in gadget_serial.txt from, but I don't think the serial gadget loads.
(This document is rather old - 2008).

I perform the following:
insmod u_serial.ko
insmod udc-core.ko
insmod libcomposite.ko
insmod configfs.ko

All of these seem to work with no problem.
However, when I issue,
insmod g_serial.ko
the result is,
insmod: can't insert 'g_serial.ko': No such device
(dmesg does not have any related information)

So my questions are these:
- Is it expected that the kernel that I am using should support Serial Gadget for the T2080?

- What is the correct way to configure the kernel/rfs to support the Serial Gadget?

- What is the proper way to load/start/invoke the Serial Gadget?

- How can I verify if this has been successful? (Mostly I have read that /dev/ttyGS0 should appear).

Thanks in advance!