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

Orangepi2/plus2/PC H3 Linux mainline support

[Copy link]

1

threads

12

posts

73

credits

Registered member

Rank: 2

credits
73
Published in 2015-10-22 18:27:18 | Show all floors
This is brilliant, thank you!

18

threads

303

posts

9845

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9845
Published in 2015-10-23 21:00:56 | Show all floors
codekipper replied at 2015-10-22 17:01
Here are some more detailed instructions.
I'm always try to work with pretty much the latest u-boot  ...

Good job. Any issues? Does four cores all working?

1

threads

28

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-10-25 20:59:58 | Show all floors
-j18?

May I ask what CPU you've got in your desktop?  .....trying your build directions now.  Thanks!

9

threads

634

posts

4423

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4423
Published in 2015-10-25 22:28:32 | Show all floors
12 core Xeon I suppose ;)
http://www.amazon.com/dp/B00F0R71DM/ref=psdc_229189_t3_B00F42GWK6

I succeed with u-boot but failed to boot kernel.
https://github.com/igorpecovnik/ ... n/h3-bootloader.bin

Uboot also reports some errors regarding cpu voltage ...

5

threads

354

posts

2708

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2708
Published in 2015-10-26 03:49:57 | Show all floors
@codekipper
a couple of small oversights in your How To:
after git branch orangepi linux-next/master
git checkout orangepi
for git am, patches needs to be in "mbox" format.
patches does not apply cleanly, needs manual intervention.
yeah and -j18 is a bit "bully"

I have used archlinux as rootfs, works to.
if anyone interested, here is my boot.log:


This thread contains more resources

You need to Log in to download or view,No account?    Register

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

1

threads

28

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-10-26 04:28:51 | Show all floors
@fritz,

How does one buildroot for alarm?

BTW.... YIPPIE!

+100000000 codekipper!

1

threads

28

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-10-26 05:19:21 | Show all floors
Found it!  It's the patching.  @Fritz, how were you able to make the patching work?  I'm not so hot with git, so

Applying: pinctrl: sunxi: Add H3 PIO controller support
error: patch failed: Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt:17
error: Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt: patch does not apply
error: patch failed: drivers/pinctrl/sunxi/Makefile:12
error: drivers/pinctrl/sunxi/Makefile: patch does not apply
Patch failed at 0001 pinctrl: sunxi: Add H3 PIO controller support
The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".


Leaves me a bit clueless....

Thanks!

5

threads

354

posts

2708

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2708
Published in 2015-10-26 06:06:52 | Show all floors
Edited by fritz at 2015-10-26 09:17

continue with:
git am --abort
check if it's clean:
git status
download my attached big patch and untar it.
check if patch does apply clean:
git apply --check Basic_H3_support.patch
if ok apply it:
git am --signoff Basic_H3_support.patch
check if OK:
git status
check log:
git log
type q for quit log.
continue with @codekipper's how to.


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

1

threads

28

posts

136

credits

Registered member

Rank: 2

credits
136
Published in 2015-10-26 11:37:09 | Show all floors
Edited by faddat at 2015-11-3 03:56

Here's the final form of my script but here's the thing:  Bootage!  It was the periods after /tmp/sdcard......
Don't use this script as anything more than a reference.  If you do, you'll likely regret it.  You've been warned....

https://gist.github.com/faddat/1254cebed57f98136316


5

threads

354

posts

2708

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2708
Published in 2015-10-26 16:13:50 | Show all floors
Well, the big patch was intented for you, that you can complete your test without too many hitches.
You can safely remove the header from the patch, credits should go to Jens (jemk).
errors at first sight:
cp /home/faddat/linux/arch/arm/boot/uimage   ---> uImage
but in the end you've managed to complete the process and to boot without problems?
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