USB3.0 OTG port in device mode

nagineni
nagineni New Member Posts: 3
Hi,

Does the UP Squared support USB3.0 OTG port in device mode? Wiki [1] says it supports only on UP , so I am just wondering what's the status on UP Squared.

Thanks

[1] https://up-community.org/wiki/Serial_console#USB3.0_OTG_port_in_device_mode

Comments

  • Nicola Lunghi
    Nicola Lunghi Emutex Posts: 131 mod
    Hi nagineni

    We and the bios team are currently working on it it should be enabled in next bios/ubilinux release.

    Regards
    Nicola Lunghi
  • nagineni
    nagineni New Member Posts: 3
    Thank you for quick response, Nicola!

    When can we expect the next BIOS release?
  • DCleri
    DCleri Administrator, AAEON Posts: 1,213 admin
    Hi nagineni,

    We should release the next BIOS in a week or so.
  • nagineni
    nagineni New Member Posts: 3
    Thanks for the update, dcleri!
  • raresh_p
    raresh_p New Member Posts: 6

    Hi, can you please confirm that current version of Up Squared is supporting USB OTG device mode ?
    I'm interested in impersonating USB storage device and/or HID devices in Ubuntu.

    Thank you.

  • Javier Arteaga
    Javier Arteaga Emutex Posts: 163 mod

    Hi raresh_p,

    USB OTG should be supported on UP2 from BIOS V2.1 onwards. See:
    https://wiki.up-community.org/Serial_console#UP_Squared

  • raresh_p
    raresh_p New Member Posts: 6
    edited July 2018

    Thank you for your comment, based on this I have ordered an UP Board.
    While in basic tests seemed to work with memtest ISOs (mounting it then having it available as USB Flash on Win 10 laptop) , now I have the "UDC error" :
    udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers

    Is there any description how to specifically debug this and even check if the hardware is working ok?
    Or even how the BIOS setting should look in order to use UP Board as USB Device ?

    PS: Forgot to mention, I have the UP Board version with 2Gb memory and 16GB eMMC disk.

    Thank you.

  • ccalde
    ccalde New Member Posts: 348 ✭✭✭

    Hi @raresh_p ,

    Did you get that error when you connect your UP to your PC via USB OTG port, right?

    To be sure your OTG is working you must check in your PC if the board is available.

    Use dmesg | tail for example.
    You should see something like that:

    [48794.482725] usb 2-2: Manufacturer: Intel
    [48794.482729] usb 2-2: SerialNumber: 012345678
    [48794.484283] cdc_acm 2-2:1.0: ttyACM0: USB ACM device
    [48845.288162] usb 2-2: USB disconnect, device number 33
    [48852.476676] usb 2-2: new high-speed USB device number 34 using xhci_hcd
    [48852.626517] usb 2-2: New USB device found, idVendor=0525, idProduct=a4a7
    [48852.626524] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [48852.626529] usb 2-2: Product: Gadget Serial v2.4
    [48852.626533] usb 2-2: Manufacturer: Linux 4.9.88-ubilinux+ with dwc3-gadget
    [48852.627912] cdc_acm 2-2:2.0: ttyACM0: USB ACM device

  • vini_gajjar
    vini_gajjar New Member Posts: 11

    Hello ,
    I have the Up squared 8GB memory / 64 GB storage version.

    Problem: Windows 10 shows "Device malfunction, Could not recognize" when plugged in the Up squared board through otg.

    Steps: Following steps are performed to use up-squared as gadget mass storage device and to access it from windows 10

    1 In bios the OTG device mode is already enabled.

    2 In terminal , I ran following commands,
    dd bs=1M count=4 if=/dev/zero of=gadget_storage
    fdisk -u gadget_storage
    * pressed "x" for expert mode
    * pressed "s" and entered 8 for 8 sectors
    * pressed "h" and entered 1 for 1 head
    * pressed "c" and entered 1024 for 1024 cylinders
    * pressed "r" to get out of xpert mode
    * pressed "n" and then "p" for primary
    * Entered the default value to select the partitions and then First sector and Last sectors
    * pressed "t" and and pressed "7" to select file system as NTFS
    * pressed "w" to save the partition table.
    losetup -o512 /dev/loop0 gadget_storage
    *// -o 512 setting the byte offset (First sector number[1 in my case] * 512 = 512)
    mkfs.ntfs -p 1 -S 8 -H 1 /dev/loop0 8191
    *// p sets starting sector number which is 1 , S represent sectors per track which i selected as 8 , H as heads and 8191
    *// reperesent total sectors .
    losetup -d /dev/loop0
    *// detaching the backing store file from loop device
    modprobe g_mass_storage stall=0 file=gadget_storage

    1. Connected the upsquared to windows 10 host machine while OTG cable

    Problem : windows 10 shows , Device malfunctioned , could not recognize the usb device.

    However , I could successfully detect the mass storage in windows 7 and linux ubuntu host systems ,

    Could somebody please help me understand what could go wrong with windows 10.

    Thank you

  • ccalde
    ccalde New Member Posts: 348 ✭✭✭

    Hi @vini_gajjar ,

    Please, if you have any issue with Windows OS, please you must open a discussion in Windows area for UPSquared:

    https://forum.up-community.org/categories/up-squared-windows