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-10-22 18:27:18 | Show all posts
This is brilliant, thank you!

18

Threads

303

Posts

7738

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
7738
Post time 2015-10-23 21:00:56 | Show all posts
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
Post time 2015-10-25 20:59:58 | Show all posts
-j18?

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

8

Threads

617

Posts

4166

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4166
Post time 2015-10-25 22:28:32 | Show all posts
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

355

Posts

2102

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2102
Post time 2015-10-26 03:49:57 | Show all posts
@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 post contains more resources

You have to Login for download or view attachment(s). 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
Post time 2015-10-26 04:28:51 | Show all posts
@fritz,

How does one buildroot for alarm?

BTW.... YIPPIE!

+100000000 codekipper!

1

Threads

28

Posts

136

Credits

Registered member

Rank: 2

Credits
136
Post time 2015-10-26 05:19:21 | Show all posts
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

355

Posts

2102

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2102
Post time 2015-10-26 06:06:52 | Show all posts
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
Post time 2015-10-26 11:37:09 | Show all posts
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

355

Posts

2102

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2102
Post time 2015-10-26 16:13:50 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

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

2019-11-21 22:28 GMT+8 , Processed in 0.033796 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list