|
Edited by sopifore at 2015-11-8 03:06
I have a problem with using two SDR USB adapters. I am using Debian Jessie "mini". When I boot, One of the USB adapters will fail to work. Here is part of the bool log (compare USB 2-0 and USB 4-0)
- [2.325082] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- [2.358126] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
- [2.372816] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
- [2.387557] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
- [2.410032] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
- [2.422891] hub 1-0:1.0: USB hub found
- [2.432796] hub 1-0:1.0: 1 port detected
- <font color="#2e8b57">[2.463189] sunxi-ehci sunxi-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
- [2.477909] sunxi-ehci sunxi-ehci.2: new USB bus registered, assigned bus number 2
- [2.492591] sunxi-ehci sunxi-ehci.2: irq 106, io mem 0xf1c1b000
- [2.520045] sunxi-ehci sunxi-ehci.2: USB 0.0 started, EHCI 1.00
- [2.532406] ehci_irq: highspeed device connect
- [2.543647] hub 2-0:1.0: USB hub found
- [2.553551] hub 2-0:1.0: 1 port detected</font>
- [2.583887] sunxi-ehci sunxi-ehci.3: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
- [2.598538] sunxi-ehci sunxi-ehci.3: new USB bus registered, assigned bus number 3
- [2.613146] sunxi-ehci sunxi-ehci.3: irq 108, io mem 0xf1c1c000
- [2.640045] sunxi-ehci sunxi-ehci.3: USB 0.0 started, EHCI 1.00
- [2.652766] hub 3-0:1.0: USB hub found
- [2.662595] hub 3-0:1.0: 1 port detected
- <font color="#ff0000">[2.692833] sunxi-ehci sunxi-ehci.4: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
- [2.707424] sunxi-ehci sunxi-ehci.4: new USB bus registered, assigned bus number 4
- [2.722014] sunxi-ehci sunxi-ehci.4: irq 110, io mem 0xf1c1d000
- [2.750044] sunxi-ehci sunxi-ehci.4: USB 0.0 started, EHCI 1.00
- [2.762377] ehci_irq: highspeed device connect
- [2.773475] hub 4-0:1.0: USB hub found
- [2.783235] hub 4-0:1.0: 1 port detected
- [2.793465] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
- [2.820048] ehci_irq: highspeed device disconnect</font>
- [2.835872] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
- [2.850085] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 5
- [2.864197] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
- [2.934462] hub 5-0:1.0: USB hub found
- [2.944266] hub 5-0:1.0: 1 port detected
- [2.974530] sunxi-ohci sunxi-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
- [2.988804] sunxi-ohci sunxi-ohci.2: new USB bus registered, assigned bus number 6
- [3.003050] sunxi-ohci sunxi-ohci.2: irq 107, io mem 0xf1c1b400
- [3.074475] hub 6-0:1.0: USB hub found
- [3.084463] hub 6-0:1.0: 1 port detected
- [3.114899] sunxi-ohci sunxi-ohci.3: SW USB2.0 'Open' Host Controller (OHCI) Driver
- [3.120042] usb 4-1: new high-speed USB device number 2 using sunxi-ehci
- [3.142703] sunxi-ohci sunxi-ohci.3: new USB bus registered, assigned bus number 7
- [3.157076] sunxi-ohci sunxi-ohci.3: irq 109, io mem 0xf1c1c400
- [3.224470] hub 7-0:1.0: USB hub found
- [3.234501] hub 7-0:1.0: 1 port detected
- [3.265039] sunxi-ohci sunxi-ohci.4: SW USB2.0 'Open' Host Controller (OHCI) Driver
- [3.279622] sunxi-ohci sunxi-ohci.4: new USB bus registered, assigned bus number 8
- [3.294138] sunxi-ohci sunxi-ohci.4: irq 111, io mem 0xf1c1d400
- [3.364469] hub 8-0:1.0: USB hub found
- [3.374597] hub 8-0:1.0: 1 port detected
Copy code
However, if I boot the Orange Pi PC and *then* plug in the second USB adapter, it works. I suspect I am seeing a power problem on the USB. Each USB adapter needs more power when first starting and then a little less once running. If both are started at the same time, the total demand on USB is too high.
I saw the same problem on Raspberry Pi. The solution on Raspberry Pi is to edit the boot/config.txt file:
This sets the available current of USB to 1.2A (default is 600mA). During startup, my USB adapters take a little more than 300mA each. For a short time, they exceed the 600mA total limit. On the Raspberry Pi, increasing the available current is enough to make the USB adapters start and work correctly.
Does anyone know if there is a way to increase the available USB current for the Orange Pi PC?
|
|