Author: tcmichals

Orangepi2/plus2/PC H3 Linux mainline support

[Copy link]

18

threads

303

posts

9613

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9613
Published in 2015-11-3 23:28:00 | Show all floors
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
Published in 2015-11-4 05:25:48 | Show all floors
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
Published in 2015-11-5 23:19:49 | Show all floors
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
Published in 2015-11-8 17:33:03 | Show all floors
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

283

credits

Intermediate member

Rank: 3Rank: 3

credits
283
Published in 2015-11-9 01:42:46 | Show all floors
@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
Published in 2015-11-10 07:15:27 | Show all floors
@codekipper, thanks once again!  I'm giving it another go

0

threads

4

posts

46

credits

Novice

Rank: 1

credits
46
Published in 2015-11-15 10:39:15 | Show all floors
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 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 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

354

posts

2627

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2627
Published in 2015-11-15 16:02:15 | Show all floors
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

354

posts

2627

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2627
Published in 2015-11-15 18:49:27 | Show all floors
@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

354

posts

2627

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2627
Published in 2015-11-15 21:46:34 | Show all floors
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 need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list