View: 6597|Reply: 0

Orange Pi PC: USB Power Setting?

[Copy link]

3

threads

9

posts

61

credits

Registered member

Rank: 2

credits
61
Published in 2015-11-8 01:46:01 | Show all floors |Read mode
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)

  1. [2.325082] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  2. [2.358126] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
  3. [2.372816] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
  4. [2.387557] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
  5. [2.410032] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
  6. [2.422891] hub 1-0:1.0: USB hub found
  7. [2.432796] hub 1-0:1.0: 1 port detected
  8. <font color="#2e8b57">[2.463189] sunxi-ehci sunxi-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
  9. [2.477909] sunxi-ehci sunxi-ehci.2: new USB bus registered, assigned bus number 2
  10. [2.492591] sunxi-ehci sunxi-ehci.2: irq 106, io mem 0xf1c1b000
  11. [2.520045] sunxi-ehci sunxi-ehci.2: USB 0.0 started, EHCI 1.00
  12. [2.532406] ehci_irq: highspeed device connect
  13. [2.543647] hub 2-0:1.0: USB hub found
  14. [2.553551] hub 2-0:1.0: 1 port detected</font>
  15. [2.583887] sunxi-ehci sunxi-ehci.3: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
  16. [2.598538] sunxi-ehci sunxi-ehci.3: new USB bus registered, assigned bus number 3
  17. [2.613146] sunxi-ehci sunxi-ehci.3: irq 108, io mem 0xf1c1c000
  18. [2.640045] sunxi-ehci sunxi-ehci.3: USB 0.0 started, EHCI 1.00
  19. [2.652766] hub 3-0:1.0: USB hub found
  20. [2.662595] hub 3-0:1.0: 1 port detected
  21. <font color="#ff0000">[2.692833] sunxi-ehci sunxi-ehci.4: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
  22. [2.707424] sunxi-ehci sunxi-ehci.4: new USB bus registered, assigned bus number 4
  23. [2.722014] sunxi-ehci sunxi-ehci.4: irq 110, io mem 0xf1c1d000
  24. [2.750044] sunxi-ehci sunxi-ehci.4: USB 0.0 started, EHCI 1.00
  25. [2.762377] ehci_irq: highspeed device connect
  26. [2.773475] hub 4-0:1.0: USB hub found
  27. [2.783235] hub 4-0:1.0: 1 port detected
  28. [2.793465] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  29. [2.820048] ehci_irq: highspeed device disconnect</font>
  30. [2.835872] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
  31. [2.850085] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 5
  32. [2.864197] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
  33. [2.934462] hub 5-0:1.0: USB hub found
  34. [2.944266] hub 5-0:1.0: 1 port detected
  35. [2.974530] sunxi-ohci sunxi-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
  36. [2.988804] sunxi-ohci sunxi-ohci.2: new USB bus registered, assigned bus number 6
  37. [3.003050] sunxi-ohci sunxi-ohci.2: irq 107, io mem 0xf1c1b400
  38. [3.074475] hub 6-0:1.0: USB hub found
  39. [3.084463] hub 6-0:1.0: 1 port detected
  40. [3.114899] sunxi-ohci sunxi-ohci.3: SW USB2.0 'Open' Host Controller (OHCI) Driver
  41. [3.120042] usb 4-1: new high-speed USB device number 2 using sunxi-ehci
  42. [3.142703] sunxi-ohci sunxi-ohci.3: new USB bus registered, assigned bus number 7
  43. [3.157076] sunxi-ohci sunxi-ohci.3: irq 109, io mem 0xf1c1c400
  44. [3.224470] hub 7-0:1.0: USB hub found
  45. [3.234501] hub 7-0:1.0: 1 port detected
  46. [3.265039] sunxi-ohci sunxi-ohci.4: SW USB2.0 'Open' Host Controller (OHCI) Driver
  47. [3.279622] sunxi-ohci sunxi-ohci.4: new USB bus registered, assigned bus number 8
  48. [3.294138] sunxi-ohci sunxi-ohci.4: irq 111, io mem 0xf1c1d400
  49. [3.364469] hub 8-0:1.0: USB hub found
  50. [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:
  1. max_usb_current=1
Copy code
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?

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list