Vontar X3 UART USB

I have a Vontar box which I’ve easily installed linux on, it’s a S905X3
My question is a weird one,
I have an accessory controlled over serial connected via a microusb port.
I used to have an old s905x that worked well with it. now I’ve upgraded to the S905X3 and it doesn’t seem to recognize it anymore, nothing on dmesg, nothing on udev. funnily enough, connection the same cable to a laptop works (a /dev/ttyUSB device shows up) and also connecting another usb-uart converter tot the vontar box!
any leads as to how to figure out what’s going on here?

read here how to make logs: Looking for users with no working WiFi or BT

sure,
dmesg:
https://pastebin.com/raw/D1UeLYMk

could this be the problem?

[  181.853747@3]- usb 1-1: new full-speed USB device number 3 using xhci-hcd
[  181.973786@3]- usb 1-1: device descriptor read/64, error -71
[  182.201846@3]- usb 1-1: Device not responding to setup address.
[  182.409776@3]- usb 1-1: Device not responding to setup address.
[  182.618039@3]- usb 1-1: device not accepting address 3, error -71
[  183.629756@3]- usb 1-1: new full-speed USB device number 4 using xhci-hcd
[  194.886030@3]- usb 1-1: new full-speed USB device number 5 using xhci-hcd

again, the USB device itself shows up on other machines and other USB devices work with this one

anything else you think is relevant?
lsusb


Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0003 3.0 root hub
  bcdDevice            4.09
  iManufacturer           3 Linux 4.9.269 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 xhci-hcd.0.auto
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x000f
  bNumDeviceCaps          1
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   3
      Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat           0 micro seconds
    bU2DevExitLat           0 micro seconds
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             1
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x00
 Hub Port Status:
   Port 1: 0000.02a0 5Gbps power Rx.Detect
Device Status:     0x0001
  Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            4.09
  iManufacturer           3 Linux 4.9.269 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 xhci-hcd.0.auto
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             2
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled

Couple of observations

Error 71

Leave device plugged in
And reboot?

Did you try all USB Ports on Box

USB/OTA port?

Log shows testing summer june 30 version

Do you have spare media
Try latest nightly 4.9.269
Or maybe NE 5.4 kernel

Happy Testing

OK so I’ve tried rebooting with the device in all ports, nothing.
tried the latest ng nightly, nothing - I also compared the dmesg and found no significant change (other then the compilation info)
how can I get 5.4? this is a s905x3 and what I’ve seen is that the 5.4 is only for x4

5.4 Does not support SM1, but you can try out Amlogic-no

My Bad on 5.4 kernel

Go to Android Developer Options

Turn off USB debug

And or change state if USB Config
From charging
To Data transfer protocol
Media Transfer protocol

On serial device
Move/change jumper from 5v to 3.3v
Or vise versa

Maybe will work :thinking:

amlogic-no bootloops with a purple screen and I haven’t yet soldered pins to the uart so I can’t provide better logs then that.

regarding developer options, you want me to try from the on board android 9?
the stock android doesn’t seem to recognize it too

Breakthrough! I bought a cheap USB hub which the box did see, after connecting it to the box and the usb-serial to it worked

KERNEL[2388.731177] add      /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1 (usb)
KERNEL[2388.735268] add      /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0 (usb)
UDEV  [2388.740445] add      /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1 (usb)
KERNEL[2388.761454] add      /bus/usb/drivers/ch341 (drivers)
KERNEL[2388.761553] add      /bus/usb-serial/drivers/ch341-uart (drivers)
KERNEL[2388.761905] add      /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/ttyUSB0 (usb-serial)
KERNEL[2388.763346] add      /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/ttyUSB0/tty/ttyUSB0 (tty)
KERNEL[2388.763451] add      /module/ch341 (module)
UDEV  [2388.763723] add      /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0 (usb)
UDEV  [2388.767844] add      /module/ch341 (module)
UDEV  [2388.768166] add      /bus/usb-serial/drivers/ch341-uart (drivers)
UDEV  [2388.769628] add      /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/ttyUSB0 (usb-serial)
UDEV  [2388.770902] add      /bus/usb/drivers/ch341 (drivers)
UDEV  [2388.777176] add      /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/ttyUSB0/tty/ttyUSB0 (tty)

thanks alot to all those that helped!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.