Problem With B2 Board and Ubuntu 16.04 [Solved]


#1

Hello,

I am having issues with Ubuntu 16.04 detecting my B2 board. I was hoping to get some pointers to troubleshoot. This is what shows in dmesg

[ 610.160099] usb 6-2: new full-speed USB device number 21 using uhci_hcd
[ 610.331161] usb 6-2: New USB device found, idVendor=1209, idProduct=2100
[ 610.331166] usb 6-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 610.333323] cdc_acm 6-2:1.0: ttyACM0: USB ACM device
[ 611.972176] usb usb6-port2: disabled by hub (EMI?), re-enabling…
[ 611.972188] usb 6-2: USB disconnect, device number 21
[ 611.973163] cdc_acm 6-2:1.1: urb 8 failed submission with -19
[ 611.973212] cdc_acm 6-2:1.0: failed to set dtr/rts
[ 611.974157] cdc_acm 6-2:1.1: urb 9 failed submission with -19
[ 611.976160] cdc_acm 6-2:1.1: urb 10 failed submission with -19
[ 611.977171] cdc_acm 6-2:1.1: urb 11 failed submission with -19
[ 611.980156] cdc_acm 6-2:1.1: urb 12 failed submission with -19
[ 612.252088] usb 6-2: new full-speed USB device number 22 using uhci_hcd
[ 612.384082] usb 6-2: device descriptor read/64, error -71
[ 612.620101] usb 6-2: device descriptor read/64, error -71
[ 612.848077] usb 6-2: new full-speed USB device number 23 using uhci_hcd
[ 612.976084] usb 6-2: device descriptor read/64, error -71
[ 613.212094] usb 6-2: device descriptor read/64, error -71
[ 613.440079] usb 6-2: new full-speed USB device number 24 using uhci_hcd
[ 613.856106] usb 6-2: device not accepting address 24, error -71
[ 613.976100] usb 6-2: new full-speed USB device number 25 using uhci_hcd
[ 614.392054] usb 6-2: device not accepting address 25, error -71
[ 614.392090] usb usb6-port2: unable to enumerate USB device

tinyfpgab -l will show the below messages. Sometimes when I press the reset button, it may show the port, but will then go away. The laptop that I am using is a Dell Inspiron 1545

TinyFPGA B-series Programmer CLI
--------------------------------
Using device id 1209:2100
No port was specified and no active bootloaders found.
Activate bootloader by pressing the reset button.

lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0c45:63ee Microdia
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

I tried all three usb ports and get the same errors. I have tried switching usb cables and have the same problems also.

Tan


#2

Hi @tan.dang! Could you send me the results of an ‘lspci’ command? I’m curious to know what USB host controllers are on the computers you have tested the B2 on.


#3

This is lspci from a Dell Inspiron 1545 running Ubuntu

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller (rev 13)
0c:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)

This is from a Lenovo SL410 running OpenBSD. I was just trying to see what OpenBSD saw the device as

uhub5: device problem, disabling port 2
teletron1:/home/tdang$ doas pcidump
doas (tdang@teletron1.my.domain) password:
Domain /dev/pci0:
0:0:0: Intel GM45 Host
0:2:0: Intel GM45 Video
0:2:1: Intel GM45 Video
0:26:0: Intel 82801I USB
0:26:1: Intel 82801I USB
0:26:2: Intel 82801I USB
0:26:7: Intel 82801I USB
0:27:0: Intel 82801I HD Audio
0:28:0: Intel 82801I PCIE
0:28:1: Intel 82801I PCIE
0:28:2: Intel 82801I PCIE
0:28:3: Intel 82801I PCIE
0:28:4: Intel 82801I PCIE
0:28:5: Intel 82801I PCIE
0:29:0: Intel 82801I USB
0:29:1: Intel 82801I USB
0:29:2: Intel 82801I USB
0:29:7: Intel 82801I USB
0:30:0: Intel 82801BAM Hub-to-PCI
0:31:0: Intel 82801IBM LPC
0:31:2: Intel 82801I AHCI
0:31:3: Intel 82801I SMBus
2:0:0: JMicron SD/MMC
2:0:2: JMicron SD Host Controller
2:0:3: JMicron Memory Stick
2:0:4: JMicron xD
5:0:0: Intel WiFi Link 5100
8:0:0: Realtek 8168

Tan


#4

Ok, so it looks like both of your machines have UHCI USB host controllers. Have you tried plugging in a hub between your computer and the B2 board? I’m curious to see if that makes a difference. In the mean-time I need to get my hands on a computer with an intel UHCI to see if I can reproduce the issue.

Another thing to try is a computer with an XHCI host controller.


#5

Luke,

A hub between the Ubuntu laptop and the B2 board fixed the issue. Thank you for the help.

Tan


#6

Glad to hear that helps, very sorry about the inconvenience it poses for you though. It looks like a compatibility issue between the USB bootloader and UHCI host controllers. I’ll have to get an old intel computer with a chipset that has a UHCI controller to fully debug the issue and fix it.