SPARKY FORUM

USBridge: USB stopped working

USBridge: USB stopped working
« on: February 10, 2018, 10:37:48 AM »
Hello, I have used my USBridge for a while now. But suddenly it stopped working, very suddenly in the middle of a song. No sound from the USB. I rebooted, no sound. Put the USB cable in one of the three USBs in the Sparky; sound. From any of them. But not from the USBridge.
Rebooted several times, tested different cables. Tested power both from the  DC connector, Sparky AND the USB board independently.
(So the bridge is apparently not totally dead, it supplies power. Just USB is invisible.)

Tried different DACs, it doesn't change anything; everything works with the Sparky USBs, never with the bridge.

aplay :
card 1: Digital [Pre Box S2 Digital], device 0: USB Audio [USB Audio]

Connected to the bridge nothing shows with aplay.

Tried to connect a disk drive, no response. Disk drive to Sparky mounts and fdisk responses normally.

Updated to dietpi 6.1, no difference.

Greetings,

Stefan Andersson
Göteborg, Sweden.  order 1537

Re: USBridge: USB stopped working
« Reply #1 on: February 11, 2018, 10:20:53 PM »
Hi,

   Are still getting the issue?

If you are getting the issue please share the below outputs.

lsusb , lsusb -t , cat /Dietpi/uEnv.txt

With Regards
Sparky Admin

Re: USBridge: USB stopped working
« Reply #2 on: February 13, 2018, 02:17:30 AM »
Hi,

   Are still getting the issue?

If you are getting the issue please share the below outputs.

lsusb , lsusb -t , cat /Dietpi/uEnv.txt

With Regards
Sparky Admin

lsusb
Bus 003 Device 003: ID 2772:0230 
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=aotg_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=Audio, Driver=snd-usb-audio, 480M
        |__ Port 1: Dev 3, If 1, Class=Audio, Driver=snd-usb-audio, 480M
        |__ Port 1: Dev 3, If 2, Class=Application Specific Interface, Driver=, 480M
        |__ Port 1: Dev 3, If 3, Class=Human Interface Device, Driver=usbhid, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M

 more uEnv.txt
uenvcmd=setenv os_type linux;
bootargs=earlyprintk clk_ignore_unused selinux=0 scandelay console=tty0 loglevel=1 real_rootflag=rw root=/dev/mmcblk0p2 rootwait init=/lib/systemd/systemd aotg.urb_fix=1 aotg.aotg1_speed=1

Re: USBridge: USB stopped working
« Reply #3 on: February 13, 2018, 10:03:26 PM »
Hi,

  Please edit "aotg.aotg1_speed=0" in /DietPi/uEnv.txt file and reboot the device.

Or Please download the image using below link

https://drive.google.com/uc?id=1rUElYW011ScUZHwIaJ9FtrQYxZWEJz1J&&export=download

And please let us know the result

With Regards
Sparky Admin

Re: USBridge: USB stopped working
« Reply #4 on: February 14, 2018, 01:15:24 PM »
Now I changed the file and rebooted. Got:

 lsusb
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=aotg_hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M

Now I burned the img-file to the bootcard, and rebooted. No difference.

From dmesg:

 10.934627] [PowerGate] name: 'usb2_0', on: 1, before SPS_PG_CTL: 0x717761
[   10.938338] [PowerGate] name: 'usb2_0', on: 1, after SPS_PG_CTL: 0x71ff61
[   10.938360] start mon 0 ......
[   10.939188] [PowerGate] name: 'usb2_1', on: 1, before SPS_PG_CTL: 0x71ff61
[   10.939273] [PowerGate] name: 'usb2_1', on: 1, after SPS_PG_CTL: 0x75ff65
....
[   11.452931] [PowerGate] name: 'usb2_0', on: 0, before SPS_PG_CTL: 0x75ff65
[   11.456187] [PowerGate] name: 'usb2_0', on: 0, after SPS_PG_CTL: 0x75f765
[   11.456714] res_mem->start--end = 0xb0600000--0xb0600fff
[   11.456777] aotg_hcd aotg_hcd.0: pdev->id probe:0
[   11.456791] [PowerGate] name: 'usb2_0', on: 1, before SPS_PG_CTL: 0x757765
[   11.456856] [PowerGate] name: 'usb2_0', on: 1, after SPS_PG_CTL: 0x75ff65
[   11.456875] usb reset OK: 0.
[   11.457101] aotg_hcd aotg_hcd.0: AOTG USB Host Controller Driver
[   11.458860] aotg_hcd aotg_hcd.0: new USB bus registered, assigned bus number 3
[   11.458951] aotg_hcd aotg_hcd.0: irq 56, io mem 0xb0600000
[   11.458957] aotg_hcd aotg_hcd.0: <HCD> start
[   11.459073] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[   11.459079] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   11.459084] usb usb3: Product: AOTG USB Host Controller Driver
[   11.459087] usb usb3: Manufacturer: Linux 3.10.38 aotg_hub_hcd
[   11.459091] usb usb3: SerialNumber: aotg_hcd.0
[   11.460911] hub 3-0:1.0: USB hub found
[   11.460960] hub 3-0:1.0: 1 port detected
[   11.461360] USBEIEN(0xf01fc50b): 0x80
[   11.461407] aotg_hcd aotg_hcd.0: hcd controller initialized. OTGIRQ: 0x01, OTGSTATE: 0x02
[   11.461411] USBEIRQ(0xf01fc50a): 0x00
[   11.571381] port_no:0 OTG IRQ, OTGSTATE: 0x03, USBIRQ:0x00
[   11.572844] aotg_hcd aotg_hcd.0: <USB> aotg_hcd.0 connection changed: 1, acthcd->inserted: 1
[   11.572856] aotg_hub_hotplug_timer:1768, dbg!
[   11.734614] set port reset!80
[   11.737551] USBRESET IRQ
[   11.740383] aotg_hub_irq: USB device is 2 
[   11.787970] USBRESET IRQ
[   11.790954] aotg_hub_irq: USB device is 3 
[   11.852958] usb 3-1: new high-speed USB device number 2 using aotg_hcd
[   11.852994] aotg_hcd aotg_hcd.0: device addr : 0x00000000
[   11.854811] set port reset!80
[   11.908170] USBRESET IRQ
[   11.911002] aotg_hub_irq: USB device is 3 
[   11.973158] aotg_hcd aotg_hcd.0: <EP DISABLE> ep0 index 0 from ep [in]
[   11.992960] aotg_hcd aotg_hcd.0: device addr : 0x00000002
[   11.993755] usb 3-1: New USB device found, idVendor=1a40, idProduct=0101
[   11.993781] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   11.993791] usb 3-1: Product: USB 2.0 Hub
[   11.994822] hub 3-1:1.0: USB hub found
[   11.994974] hub 3-1:1.0: 4 ports detected

Re: USBridge: USB stopped working
« Reply #5 on: February 14, 2018, 10:17:11 PM »
Hi,

   As per your output "bus4 not listing",Means USBridge not plugged properly to sparky.

If it plugged properly you will get output like below

root@DietPi:~# lsusb
Bus 004 Device 002: ID 0424:2412 Standard Microsystems Corp.
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


With Regards
Sparky Admin

Re: USBridge: USB stopped working
« Reply #6 on: February 15, 2018, 01:02:50 AM »
Hi, As per your output "bus4 not listing",Means USBridge not plugged properly to sparky.
If it plugged properly you will get output like below
...

Hi, is that possible? The USB worked fine but suddenly stopped working. And I have never separated USBridge from Sparky, just opened the case to get to the memory for image writing, and change the jumper for separate power. After the USB stopped working I changed back to use shared power from the USBridge (jumper on) and since that works, the bridge and Sparky must be connected in some way.

Re: USBridge: USB stopped working
« Reply #7 on: February 15, 2018, 11:39:11 AM »
Hi, As per your output "bus4 not listing",Means USBridge not plugged properly to sparky.
If it plugged properly you will get output like below
...

Hi, I have looked at it close up and it  certainly looks alright and feels physically very solid. No slack to be found.