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]

18

Threads

303

Posts

7627

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
7627
Post time 2015-11-3 23:28:00 | Show all posts
mainline kernel support is needed for H3 chip as well as Mali400 GPU driver. Seems like an obstacle for us.

1

Threads

28

Posts

136

Credits

Registered member

Rank: 2

Credits
136
Post time 2015-11-4 05:25:48 | Show all posts
They're working on mainlining the H3, and progress seems quick.  as for mali.....

http://www.phoronix.com/scan.php?page=news_item&px=MTg4Mjk

oh and:
http://www.phoronix.com/scan.php?page=news_item&px=MTA0OTQ   .....it runs quake 3, so it can't be all that bad...

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

210

Credits

Intermediate member

Rank: 3Rank: 3

Credits
210
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

2089

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2089
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

2089

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2089
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

2089

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2089
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 .....
You have to log in before you can reply Login | Register

Points Rules

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

2019-8-21 09:08 GMT+8 , Processed in 0.030551 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list