dukla2000
Posts: 190
Joined: Tue Jan 10, 2012 12:02 am
Location: Reading.UK.EU

RPi 3: USB not enumerating during boot, fine on hotplug

Tue Mar 08, 2016 9:55 pm

OK, running Raspian. Trying to get a bogstandard/cheapo DVB-T USB dongle to work. If I plug it in when the Pi is running everthing is perfect, creates the /dev/dvb/adapter0 tree that I can scan, zap & play. However if the dongle is plugged in during boot the setup is not done. Any ideas?

Boot log - I'm concerned with usb1-1.2. There seems to be some problem at 10.07s

Code: Select all

pi@dukla:~ $ dmesg | grep "usb"
[    0.150664] usbcore: registered new interface driver usbfs
[    0.150771] usbcore: registered new interface driver hub
[    0.150886] usbcore: registered new device driver usb
[    1.600609] usbcore: registered new interface driver smsc95xx
[    2.165970] dwc_otg 3f980000.usb: DWC OTG Controller
[    2.178468] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    2.194791] dwc_otg 3f980000.usb: irq 32, io mem 0x00000000
[    2.228793] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.244204] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.260321] usb usb1: Product: DWC OTG Controller
[    2.272340] usb usb1: Manufacturer: Linux 4.1.18-v7+ dwc_otg_hcd
[    2.286538] usb usb1: SerialNumber: 3f980000.usb
[    2.321047] usbcore: registered new interface driver usb-storage
[    2.589289] usbcore: registered new interface driver usbhid
[    2.589291] usbhid: USB HID core driver
[    2.698551] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.968834] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.968843] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.328550] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.459359] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.475185] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.582043] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:48:3e:d7
[    3.698567] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.830486] usb 1-1.2: New USB device found, idVendor=048d, idProduct=9135
[    3.846582] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.958554] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
[    4.073979] usb 1-1.3: New USB device found, idVendor=046d, idProduct=c00e
[    4.073989] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.073996] usb 1-1.3: Product: USB-PS/2 Optical Mouse
[    4.074003] usb 1-1.3: Manufacturer: Logitech
[    4.136092] input: Logitech USB-PS/2 Optical Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:046D:C00E.0001/input/input0
[    4.136463] hid-generic 0003:046D:C00E.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-3f980000.usb-1.3/input0
[    4.278549] usb 1-1.5: new full-speed USB device number 6 using dwc_otg
[    4.425149] usb 1-1.5: New USB device found, idVendor=248a, idProduct=8566
[    4.425158] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.425164] usb 1-1.5: Product: Wireless Receiver
[    4.425171] usb 1-1.5: Manufacturer: Telink
[    4.442836] input: Telink Wireless Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:248A:8566.0002/input/input1
[    4.508733] hid-generic 0003:248A:8566.0002: input,hidraw1: USB HID v1.11 Keyboard [Telink Wireless Receiver] on usb-3f980000.usb-1.5/input0
[    4.526120] input: Telink Wireless Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:248A:8566.0003/input/input2
[    4.588876] hid-generic 0003:248A:8566.0003: input,hidraw2: USB HID v1.11 Mouse [Telink Wireless Receiver] on usb-3f980000.usb-1.5/input1
[    6.696306] usbcore: registered new interface driver brcmfmac
[   10.078573] usb 1-1.2: dvb_usb_v2: 2nd usb_bulk_msg() failed=-110
[   10.078616] dvb_usb_af9035: probe of 1-1.2:1.0 failed with error -110
[   10.078767] usbcore: registered new interface driver dvb_usb_af9035
But if I unplug it and replug it then things go much better:

Code: Select all

[  306.650760] usb 1-1.2: USB disconnect, device number 4
[  315.850298] usb 1-1.2: new high-speed USB device number 7 using dwc_otg
[  315.952174] usb 1-1.2: New USB device found, idVendor=048d, idProduct=9135
[  315.952197] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  315.955240] usb 1-1.2: dvb_usb_af9035: prechip_version=83 chip_version=02 chip_type=9135
[  315.955593] usb 1-1.2: dvb_usb_v2: found a 'ITE 9135 Generic' in cold state
[  316.114228] usb 1-1.2: dvb_usb_v2: downloading firmware from file 'dvb-usb-it9135-02.fw'
[  316.202074] usb 1-1.2: dvb_usb_af9035: firmware version=3.39.1.0
[  316.202099] usb 1-1.2: dvb_usb_v2: found a 'ITE 9135 Generic' in warm state
[  316.202941] usb 1-1.2: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[  316.211818] usb 1-1.2: DVB: registering adapter 0 frontend 0 (Afatech AF9033 (DVB-T))...
[  316.260517] input: ITE 9135 Generic as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/rc/rc0/input3
[  316.260638] rc0: ITE 9135 Generic as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/rc/rc0
[  316.260650] usb 1-1.2: dvb_usb_v2: schedule remote query interval to 500 msecs
[  316.260661] usb 1-1.2: dvb_usb_v2: 'ITE 9135 Generic' successfully initialized and connected
Have thought about power: my psu can run the 'simple stress test' fine and will happily boot if I add a USB HDD to it with no problems so really don't expect that is to blame. It is 1.8A in theory. Equally another 1.5A PSU performs identically. A 1A PSU I have tried has had problems booting with the HDD plugged in.
Daily driver: Pi3B, 64GB Samsung Evo+ @100MHz, DVB-T, onboard WiFi for internet, BT/USB dongle for KB/mouse, 250GB HDD via USB for media, Raspbian Jessie Lite with Openbox desktop.
Museum: Pi B

dukla2000
Posts: 190
Joined: Tue Jan 10, 2012 12:02 am
Location: Reading.UK.EU

Re: RPi 3: USB not enumerating during boot, fine on hotplug

Fri Mar 11, 2016 11:21 am

Still struggling with this issue.

Had a thought: if I boot with the dongle plugged in, and the dvb device tree is not built properly, is there some software command to unload/reload the USB devices?

Sorted, added
max_usb_current=1
to config.txt and all seems well. Thought that was default now for RPi3 but seems not.
Daily driver: Pi3B, 64GB Samsung Evo+ @100MHz, DVB-T, onboard WiFi for internet, BT/USB dongle for KB/mouse, 250GB HDD via USB for media, Raspbian Jessie Lite with Openbox desktop.
Museum: Pi B

legolas83
Posts: 2
Joined: Tue Apr 05, 2016 7:37 pm

Re: RPi 3: USB not enumerating during boot, fine on hotplug

Tue Apr 05, 2016 7:42 pm

Hi,
I have the same problems.
Can you clarify me your solution?
I'm not very able :D

dukla2000
Posts: 190
Joined: Tue Jan 10, 2012 12:02 am
Location: Reading.UK.EU

Re: RPi 3: USB not enumerating during boot, fine on hotplug

Wed Apr 06, 2016 8:46 pm

legolas83 wrote:Hi,
I have the same problems.
Can you clarify me your solution?
I'm not very able :D
Edit /boot/config.txt and add a line
max_usb_current=1
Daily driver: Pi3B, 64GB Samsung Evo+ @100MHz, DVB-T, onboard WiFi for internet, BT/USB dongle for KB/mouse, 250GB HDD via USB for media, Raspbian Jessie Lite with Openbox desktop.
Museum: Pi B

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RPi 3: USB not enumerating during boot, fine on hotplug

Wed Apr 06, 2016 9:11 pm

dukla2000 wrote: Edit /boot/config.txt and add a line
max_usb_current=1
That line isn't required on a Pi3 and has no effect. The Pi3 only has the high current mode.

Return to “Troubleshooting”