USB D+/D- backwards
#1
I've been working on booting FreeBSD on the SOPINE on a Clusterboard. One issue I've run into is using the micro-usb port. I have a USB OTG cable, however FreeBSD is unable to detect when I plug a device in through it. On closer inspection of the schematic it appears the D+ and D- pins are backwards. I've modified a cable to swap these and found FreeBSD can now detect there is a device, although it is unable to talk to it, most likely due to the quality of my soldering.

Am I correct in thinking these pins are backwards on the Clusterboard?
#2
I've created a cable that swaps the D+ and D- signals and can now get USB working through the micro USB port.
#3
this is just so typical. i especially like how no one responds to your post. if they decide to fix it in a upcoming revision make sure to ask for one.
#4
Might also have something to do with the number of clusterboards in the wild, and people with micro USB to USB connectors/use cases Tongue 

With the two generic cable I have, which does work with at least one android phone with the same random USB thumb drive used here, I can confirm that there is something wrong with micro USB using the xenial-minimal-sopine-bspkernel-0.7.19-118 image on my clusterboard for at least the first two slots, so probably all of them. I don't have ready access to a breakout for the USB just at the moment, so can't swap D+/D- to check if it is swapped. As far as the schematic goes... it appears to be the same for both the standard port, and the micro USB, so if it is swapped it's probably a routing mistake, not a schematic mistake?

First the standard usb port, and then the microUSB port for each of the two modules I currently have installed:

Code:
clusterboard-sopine0
[Mar18 19:49] ehci_irq: highspeed device connect
[  +0.223989] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
[  +0.231193] usb-storage 1-1:1.0: USB Mass Storage device detected
[  +0.001479] scsi0 : usb-storage 1-1:1.0
[  +0.978775] scsi 0:0:0:0: Direct-Access     Kingston DT 101 II        1.00 PQ: 0 ANSI: 2
[  +0.001056] sd 0:0:0:0: [sda] 7555528 512-byte logical blocks: (3.86 GB/3.60 GiB)
[  +0.000600] sd 0:0:0:0: [sda] Write Protect is off
[  +0.000010] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[  +0.000620] sd 0:0:0:0: [sda] No Caching mode page found
[  +0.005909] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  +0.012131] sd 0:0:0:0: [sda] No Caching mode page found
[  +0.005864] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  +0.009148]  sda:
[  +0.002736] sd 0:0:0:0: [sda] No Caching mode page found
[  +0.006801] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  +0.007311] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ +30.940401] ehci_irq: highspeed device disconnect
[  +0.000135] usb 1-1: USB disconnect, device number 2
[Mar18 19:50] ehci_irq: highspeed device connect
[  +0.099050] ehci_irq: highspeed device disconnect
[  +0.000036] ohci_irq: fullspeed or lowspeed device connect
[  +0.393433] usb 4-1: new low-speed USB device number 2 using sunxi-ohci
[  +0.177125] usb 4-1: device descriptor read/64, error -62
[  +0.285386] usb 4-1: device descriptor read/64, error -62
[  +0.285330] usb 4-1: new low-speed USB device number 3 using sunxi-ohci
[  +0.177113] usb 4-1: device descriptor read/64, error -62
[  +0.285369] usb 4-1: device descriptor read/64, error -62
[  +0.285347] usb 4-1: new low-speed USB device number 4 using sunxi-ohci
[  +0.413273] usb 4-1: device not accepting address 4, error -62
[  +0.177125] usb 4-1: new low-speed USB device number 5 using sunxi-ohci
[  +0.413270] usb 4-1: device not accepting address 5, error -62
[  +0.006497] hub 4-0:1.0: unable to enumerate USB device on port 1
[  +6.317369] ohci_irq: fullspeed or lowspeed device disconnect
[  +0.000129] ehci_irq: highspeed device connect
[  +0.121148] ehci_irq: highspeed device disconnect
[  +0.004291] ehci_irq: highspeed device disconnect

clusterboard-sopine1
[Mar18 19:55] ehci_irq: highspeed device connect
[  +0.217448] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
[  +0.230052] usb-storage 1-1:1.0: USB Mass Storage device detected
[  +0.003837] scsi0 : usb-storage 1-1:1.0
[  +0.977799] scsi 0:0:0:0: Direct-Access     Kingston DT 101 II        1.00 PQ: 0 ANSI: 2
[  +0.001546] sd 0:0:0:0: [sda] 7555528 512-byte logical blocks: (3.86 GB/3.60 GiB)
[  +0.000707] sd 0:0:0:0: [sda] Write Protect is off
[  +0.000022] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[  +0.000712] sd 0:0:0:0: [sda] No Caching mode page found
[  +0.008320] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  +0.012474] sd 0:0:0:0: [sda] No Caching mode page found
[  +0.007006] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  +0.008520]  sda:
[  +0.003501] sd 0:0:0:0: [sda] No Caching mode page found
[  +0.005926] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  +0.006771] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  +3.679599] ehci_irq: highspeed device disconnect
[  +0.000144] usb 1-1: USB disconnect, device number 2
[Mar18 19:56] ehci_irq: highspeed device connect
[  +0.100663] ehci_irq: highspeed device disconnect
[  +0.000043] ohci_irq: fullspeed or lowspeed device connect
[  +0.393430] usb 4-1: new low-speed USB device number 2 using sunxi-ohci
[  +0.177128] usb 4-1: device descriptor read/64, error -62
[  +0.285371] usb 4-1: device descriptor read/64, error -62
[  +0.285339] usb 4-1: new low-speed USB device number 3 using sunxi-ohci
[  +0.177117] usb 4-1: device descriptor read/64, error -62
[  +0.285380] usb 4-1: device descriptor read/64, error -62
[  +0.285370] usb 4-1: new low-speed USB device number 4 using sunxi-ohci
[  +0.413256] usb 4-1: device not accepting address 4, error -62
[  +0.177137] usb 4-1: new low-speed USB device number 5 using sunxi-ohci
[  +0.413263] usb 4-1: device not accepting address 5, error -62
[  +0.006478] hub 4-0:1.0: unable to enumerate USB device on port 1
[  +4.878943] ohci_irq: fullspeed or lowspeed device disconnect
[  +0.000053] ehci_irq: highspeed device connect
[  +0.123086] ehci_irq: highspeed device disconnect
[  +0.004290] ehci_irq: highspeed device disconnect
#5
(03-15-2018, 03:19 PM)zxombie Wrote: I've been working on booting FreeBSD on the SOPINE on a Clusterboard. One issue I've run into is using the micro-usb port. I have a USB OTG cable, however FreeBSD is unable to detect when I plug a device in through it. On closer inspection of the schematic it appears the D+ and D- pins are backwards. I've modified a cable to swap these and found FreeBSD can now detect there is a device, although it is unable to talk to it, most likely due to the quality of my soldering.

Am I correct in thinking these pins are backwards on the Clusterboard?

I have a couple of patches for you..
* Speedstepping
* Thermal sensor
* DMA
* SRAM Controller (ETH-PHY)
* PXE fixes (EFI bootloader patch)
* u-boot fixed for a couple of things.
* Almost complete - working devicetree.

I don't use SD, MMC, GPU, I2C, SPI or USB because this cluster is for another project

We currently have 42 sopines so making FreeBSD run perfect is one of my top priorities... haha..  Cool


Attached Files Thumbnail(s)
   
#6
(07-27-2018, 03:56 PM)paradise Wrote:
(03-15-2018, 03:19 PM)zxombie Wrote: I've been working on booting FreeBSD on the SOPINE on a Clusterboard. One issue I've run into is using the micro-usb port. I have a USB OTG cable, however FreeBSD is unable to detect when I plug a device in through it. On closer inspection of the schematic it appears the D+ and D- pins are backwards. I've modified a cable to swap these and found FreeBSD can now detect there is a device, although it is unable to talk to it, most likely due to the quality of my soldering.

Am I correct in thinking these pins are backwards on the Clusterboard?

I have a couple of patches for you..
* Speedstepping
* Thermal sensor
* DMA
* SRAM Controller (ETH-PHY)
* PXE fixes (EFI bootloader patch)
* u-boot fixed for a couple of things.
* Almost complete - working devicetree.

I don't use SD, MMC, GPU, I2C, SPI or USB because this cluster is for another project

We currently have 42 sopines so making FreeBSD run perfect is one of my top priorities... haha..  Cool

Awesome Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)