Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: tcmichals

Orangepi2/plus2/PC H3 Linux mainline support

[Copy link]

1

Threads

12

Posts

73

Credits

Registered member

Rank: 2

Credits
73
Post time 2015-11-5 23:19:49 | Show all posts
I couldn't apply v4 patches cleanly. Unfortunately have little time now to go further

1

Threads

28

Posts

136

Credits

Registered member

Rank: 2

Credits
136
Post time 2015-11-8 17:33:03 | Show all posts
my desire for a cluster computing necklace is going to drive me to learn C-- not like that's a bad thing, anyway.....

0

Threads

8

Posts

212

Credits

Intermediate member

Rank: 3Rank: 3

Credits
212
Post time 2015-11-9 01:42:46 | Show all posts
@elcct
You may find it easier to sync to Hans' sunxi-wip git branch, it now contains all the H3 patches from Jens and it looks like he's working on usb.
Details are here https://github.com/jwrdegoede/linux-sunxi/commits/sunxi-wip
I've not tried this yet but I will ASAP,
CK

1

Threads

28

Posts

136

Credits

Registered member

Rank: 2

Credits
136
Post time 2015-11-10 07:15:27 | Show all posts
@codekipper, thanks once again!  I'm giving it another go

0

Threads

4

Posts

46

Credits

Novice

Rank: 1

Credits
46
Post time 2015-11-15 10:39:15 | Show all posts
I've followed CodeKipper's steps in post #2 to build u-boot and then built a 4.3.0rc6 kernel using the sunxi-wip branch of jwrdegoede/linux-sunxi

To get u-boot to boot a kernel I had to use the h3-*.dts* files from the linux-sunxi sunxi-wip branch in the u-boot sources.

The OrangePi Plus boots to a u-boot prompt, but can't set core voltage and cpu freq:
  1. U-Boot SPL 2015.10-00058-gf4ccf7d-dirty (Nov 15 2015 - 13:14:51)
  2. DRAM: 1024 MiB
  3. Failed to set core voltage! Can't set CPU frequency


  4. U-Boot 2015.10-00058-gf4ccf7d-dirty (Nov 15 2015 - 13:14:51 +1100) Allwinner Technology

  5. CPU:   Allwinner H3 (SUN8I)
  6. DRAM:  1 GiB
  7. MMC:   SUNXI SD/MMC: 0
  8. *** Warning - bad CRC, using default environment
Copy the Code

It then boots the kernel but the kernel doesn't finish booting and hangs at:
  1. <div><div>[    0.987517] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)</div><div>[    0.996380] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found</div><div>[    1.002527] sunxi-mmc 1c0f000.mmc: Got CD GPIO</div></div><div></div>
Copy the Code


Full u-boot and kernel boot log: http://pastebin.com/QkfZMw5e

Any suggestions on what to do to resolve the initial u-boot core voltage and cpu freq errors or how to progress further in booting the kernel?

5

Threads

355

Posts

2102

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2102
Post time 2015-11-15 16:02:15 | Show all posts
the sunxi-wip branch of jwrdegoede/linux-sunxi use the first version of @jemk's H3-support-patchset.
commits are from 15 May 2015.but it's not for sure that this is a problem.
Will try later with this branch.
If you want compare my boot.log compiled from linux-next branch and yours:
http://pastebin.com/b9ynk2f2
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

5

Threads

355

Posts

2102

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2102
Post time 2015-11-15 18:49:27 | Show all posts
@tdack
Can confirm. sunxi-wip halts at:
[    1.013141] sunxi-mmc 1c0f000.mmc: Got CD GPIO


there is something wrong.
But there are some patches for enabling USB support for the H3 not yet pushed to the mailinglist.
looks interesting.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

5

Threads

355

Posts

2102

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2102
Post time 2015-11-15 21:46:34 | Show all posts
Sorry for the "triple" posting, but @melanrz is my master.

Ok serious now.
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.
definitly something wrong with sunxi-wip
complete boot-log:
http://pastebin.com/xpqj3VFz

For now you can only play with GPIO's but USB support is coming.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

0

Threads

4

Posts

46

Credits

Novice

Rank: 1

Credits
46
Post time 2015-11-16 08:01:09 | Show all posts
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 the Code


5

Threads

355

Posts

2102

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2102
Post time 2015-11-17 16:34:43 | Show all posts
@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 .....
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-11-20 22:16 GMT+8 , Processed in 0.034124 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list