OTG USB gadget not detected

samh
samh New Member Posts: 4

The device (up squared) has a freshly installed Ubuntu 18.04, with the latest BIOS (UPA1AM52) and updated kernel: Linux ubuntu 5.4.0-1-generic #0~upboard2-Ubuntu

I'm unable to get any of the usb gadget classes to work, despite following the instructions (in the wiki) to the letter. The USB device does not get recognized by the host (usbview.exe in win10 shows ConnectionStatus: NoDeviceConnected)

What EXACT steps does one need to take to make any of the classes demonstrate that they work? So far I haven't succeeded with any one of them.

When trying the g_mass_storage example, dmesg | tail returns this:
g_mass_storage gadget: Mass Storage Gadget: version: 2009/09/11
g_mass_storage gadget: userspace failed to provide iSerialNumber
g_mass_storage gadget: g_mass_storage ready

I have also tried the configfs approach, but that doesn't work either. I use the OTG USB cable as provided by Up. Host device is Windows 10, but also tried a Ubuntu host with similarily negative outcome.

Comments

  • 9600
    9600 New Member Posts: 8

    I came here to post about this also. I have a brand new UP Squared (P/N: UPS- APLX7-A20-0464) and when I cable the Micro USB 3.0 port to a laptop running Ubuntu, it doesn't detect anything at all connected. No difference in lsusb output or any kernel messages etc. According to the wiki it should just work as a USB serial port, without any changes in BIOS.

  • samh
    samh New Member Posts: 4

    @9600 Did you manage to solve it? Please share your solution if so, thanks!

  • 9600
    9600 New Member Posts: 8

    @samh Sadly not. Hopefully someone else will respond with insights :)

  • DCleri
    DCleri Administrator, AAEON Posts: 1,213 admin

    Hi @samh and @9600

    We are looking into this and we will come back to you soon with an update.

  • samh
    samh New Member Posts: 4

    Thank you, that is good to hear. We're awaiting your response.

  • 9600
    9600 New Member Posts: 8

    @DCleri Curious if you had made any progress?

  • DCleri
    DCleri Administrator, AAEON Posts: 1,213 admin

    The procedure has been verified and it works well on UP Squared (tested with BIOS R5.2 and Kernel 5.4 from our PPA).

    The Mass Storage example documentation has been updated, please check the wiki: https://forum.up-community.org/discussion/3464/solved-up-square-usb-gadget-g-serial-and-g-mass-storage-problems

  • 9600
    9600 New Member Posts: 8

    @DCleri I'm not sure I follow. You mention the wiki and then link to another forum discussion instead, where the last post was in 2019. Looking at the serial port wiki page I can see that it was updated 10 days ago, but for UP Squared it still says: "The functionality should work out of the box from BIOS version 2.1. No bios settings modifications are needed." Whereas my upon cabling to my laptop this does not detect anything connected — no serial port or storage device. Perhaps my board is faulty and I should return it to Mouser?

  • DCleri
    DCleri Administrator, AAEON Posts: 1,213 admin

    Sorry for the wrong link, the documentation has been updated here (after being tested again): https://github.com/up-board/up-community/wiki/Serial-Console#storage-device

    The topic I linked was a previous discussion where some users where experiencing issues while connecting the UP Squared (device) to a Windows machine (host) and the issue was mainly in the partition file preparation, addressed by the proposed procedure from the user on that discussion

Privacy Policy