please choosego to mobile | Continue to access the PC version
Author: tcmichals

Orangepi2/plus2/PC H3 Linux mainline support

[Copy link]

0

threads

4

posts

46

credits

Novice

Rank: 1

credits
46
Published in 2015-11-16 08:01:09 | Show all floors
Edited by tdack at 2015-11-16 10:30
When i apply the WIP USB patches from sunxi-wip branch of @jwrdegoede to my linux-next branch with the V4 patches from @jemk then it works.

Fritz, can you point me to the linux-next branch that you are using?  I assume that the V4 patches are coming from the linux-sunxi mailing list?

Just to make sure I've got things in the right order:

1. Grab linux-next source
2. Apply jwrdegoede/linux-sunxi sunxi-wip patches for H3 USB support
3. Apply jemk H3 V4 patches from linux-sunxi mailing list
4. Profit, only with GPIO though

Update ...

Using @jwrdegoede/u-boot-sunxi/sunxi-wip and @jwrdegoede/linux-sunxi/sunxi-wip I've now managed to get a full kernel boot.

http://pastebin.com/pBt1iZhT

Looks like USB is progressing!
  1. [    0.777507] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  2. [    0.784098] ehci-platform: EHCI generic platform driver
  3. [    0.789635] ehci-platform 1c1b000.usb: EHCI Host Controller
  4. [    0.795254] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 1
  5. [    0.803236] ehci-platform 1c1b000.usb: irq 23, io mem 0x01c1b000
  6. [    0.827604] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
  7. [    0.835123] hub 1-0:1.0: USB hub found
  8. [    0.839003] hub 1-0:1.0: 1 port detected
  9. [    0.843788] ehci-platform 1c1c000.usb: EHCI Host Controller
  10. [    0.849454] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
  11. [    0.857365] ehci-platform 1c1c000.usb: irq 25, io mem 0x01c1c000
  12. [    0.877608] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
  13. [    0.884996] hub 2-0:1.0: USB hub found
  14. [    0.888851] hub 2-0:1.0: 1 port detected
  15. [    0.893526] ehci-platform 1c1d000.usb: EHCI Host Controller
  16. [    0.899180] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 3
  17. [    0.907071] ehci-platform 1c1d000.usb: irq 27, io mem 0x01c1d000
  18. [    0.927601] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
  19. [    0.934906] hub 3-0:1.0: USB hub found
  20. [    0.939314] hub 3-0:1.0: 1 port detected
  21. [    0.943905] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  22. [    0.950164] ohci-platform: OHCI generic platform driver
  23. [    0.955639] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
  24. [    0.962323] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 4
  25. [    0.970233] ohci-platform 1c1b400.usb: irq 24, io mem 0x01c1b400
  26. [    1.032832] hub 4-0:1.0: USB hub found
  27. [    1.036647] hub 4-0:1.0: 1 port detected
  28. [    1.041830] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
  29. [    1.048535] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 5
  30. [    1.056429] ohci-platform 1c1c400.usb: irq 26, io mem 0x01c1c400
  31. [    1.122800] hub 5-0:1.0: USB hub found
  32. [    1.126612] hub 5-0:1.0: 1 port detected
  33. [    1.131349] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
  34. [    1.138050] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 6
  35. [    1.145928] ohci-platform 1c1d400.usb: irq 28, io mem 0x01c1d400
  36. [    1.212832] hub 6-0:1.0: USB hub found
  37. [    1.216644] hub 6-0:1.0: 1 port detected
Copy code


5

threads

355

posts

2466

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2466
Published in 2015-11-17 16:34:43 | Show all floors
@tdack
You can safely remove ehci2/ohci2 from the sun8i-h3-orangepi-plus.dts. port2 is not used on opi plus, there are only 2 test-pads (DM2-DP2)
And ohci1, ohci3 should not be needed to.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

5

threads

355

posts

2466

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2466
Published in 2015-11-18 06:44:05 | Show all floors

works with all H3 opis

Edited by fritz at 2015-11-18 08:40

OK, USB works now!
complete log:
http://pastebin.com/NVk18114

PS. This should work with all opis with H3 soc, maybe rename the thread in:
Mainline linux kernel support for the H3 or something else.

Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

0

threads

4

posts

46

credits

Novice

Rank: 1

credits
46
Published in 2015-11-23 06:22:55 | Show all floors
Fritz, could you say what kernel sources you are using and where you are getting them from?

Hans has applied some patches relating to USB and some from Jens to his sunxi-wip branch but I can't get a kernel to boot fully.  It hangs at "Registering SWP/SWPB emulation handling"
It also looks like it is having trouble finding/bringing up the voltage regulators for USB.

Complete log: http://pastebin.com/VGkEix9p

In other news it looks like H3 support is making its way into U-Boot mainline http://git.denx.de/?p=u-boot.git ... 928665d26edab8429e4

5

threads

355

posts

2466

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2466
Published in 2015-11-24 06:04:13 | Show all floors
Can confirm.U-boot mainline now works without patches.

Today I have builded from sunxi-wip (Hans) and it works correctly.
full boot log:
http://pastebin.com/MiZLGwHr
If you want to try with other branches like linux-next you need to patch it.
The only branch that actually has all patches included is @Hans sunxi-wip branch.

Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

0

threads

17

posts

80

credits

Registered member

Rank: 2

credits
80
Published in 2015-11-24 12:26:57 | Show all floors
A new u boot sounds good.
Will a mainline u boot make it easier to change resolutions for hdmi monitors without having to reboot?
Will this new u boot support a keyboard and mouse and will people make a gui interface for it like with a normal bios?

0

threads

4

posts

46

credits

Novice

Rank: 1

credits
46
Published in 2015-11-24 13:46:55 | Show all floors
The current H3 support in mainline U-Boot is just enough to get a kernel with a device tree booted plus a serial console.  I'd guess more features will be added as mainline kernel support for the H3 improves and people port the features from the SDK to the newer U-boot and kernel.

3

threads

65

posts

256

credits

Intermediate member

Rank: 3Rank: 3

credits
256
Published in 2015-11-30 20:18:21 | Show all floors
I am layman
but I'm eager to learn
this means that plate H3 will eloluir way A20 and follow signs?

1

threads

24

posts

169

credits

Registered member

Rank: 2

credits
169
Published in 2015-12-20 21:57:33 | Show all floors
Any kernel available to test it out?

1

threads

11

posts

59

credits

Registered member

Rank: 2

credits
59
Published in 2016-1-18 12:00:53 | Show all floors
Hi all.
I have two Orange PI PC Boards that i buyed two weeks ago and i am struggling since then to boot this devices following the source build steps in the Wiki.

I was able to compile everything based on the WIKI HowTo http://www.orangepi.org/Docs/Building.html and got all the needed Files like u-boot-sunxi-with-spl.bin, uImage, orangepi.bin, modules/3.4.XX in the build directory, but for some strange reason i am not able to boot my Orange PI PCs following all the needed build and flashing steps.

Can somebody please tell me the newest updated HowTo Source Build and Flashing Steps for u-boot, u-tools. sunxi-kernel and so on
from the beginning to the end that are proved to work so i am able finally able to boot my Orange PI Pcs and see some Output over hdmi on my Screen?

Thanks a lot in advance for the Help!
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list