[SOLVED] Up Square USB Gadget g_serial and g_mass_storage problems
We are having issues with Up Square g_serail and g_mass_storage
BIOS version is 2.1 in our Up2 and we have Ubuntu 16.04.5 with Kernel 4.15.0-38-generic. We did not touch BIOS; default is loaded.
On the other end of USB OTG cable, we have a generic laptop running Windows 8.1
After loading g_serial we saw a new ttyUSB0 is registered in /dev folder and in PC, we see a PI serial 2.4 device is registered at COM 3
Open a minicom session in Up2/Ubuntu and a putty session in Windows
Whatever we type on PC shows up on Up2 minicom; this is good.
However we don't see output on PC putty screen when we type on minicom. Only after we hit "enter" key on PC then the message shows up on putty. We try disable flow control on both minicom and putty but it does not help.
"sudo modprobe g_mass_storage" gives us following error
modprobe: ERROR: could not insert 'g_mass_storage': invalid argument
in kernel log
Mass Storage Function, version 2009/09/11
LUN: removable file: (no medium)
no file given for LUN0
g_mass_storage dwc3.0.auto:failed to satrt g_mass_storage: -22
Nothing shows up on Windows; no new device in device manager or in my computer.
We appreciate any input to solve g_serial and g_mass_storage problems.