please choosego to mobile | Continue to access the PC version
View: 5548|Reply: 4

Orange Pi PC Mainline?

[Copy link]

9

threads

27

posts

286

credits

Intermediate member

Rank: 3Rank: 3

credits
286
Published in 2016-12-1 15:51:08 | Show all floors |Read mode
I'm having trouble finding if there is a pre-made Linux for Orange Pi PC with a Mainline kernel and a recent U-boot.Besides just preferring it, I want to dig a bit deeper too because I want to do some sort-of bare metal programming utilising U-boot as a bootloader. So far to my frustration I have discovered that the only thing I can successfully compile U-Boot on is the Orange Pi PC running Ubuntu MATE. The assembler chokes on register usage in some assembly crosscompiling from Ubuntu x64, and Raspbian on a Raspberry Pi 3 has a gcc internal failure.
In the case of Ubuntu I believe it may be due to deprecated opcodes on later ARM architectures causing it to fail. On the Pi 3 ???

So, does a Mainline build for The Orange Pi PC exist?

Thanks.

9

threads

27

posts

286

credits

Intermediate member

Rank: 3Rank: 3

credits
286
 Author| Published in 2016-12-1 16:57:12 | Show all floors
As is usual, I found the answer after posting. Armbian seems to be the way to do it.

In the following link it says how to change the kernel between builds.
https://docs.armbian.com/User-Guide_Advanced-Features/

I thought I'd post it for the benefit of others like myself who found the information hard to find.

1

threads

64

posts

240

credits

Intermediate member

Rank: 3Rank: 3

credits
240
Published in 2016-12-1 17:42:53 | Show all floors
Xunlong (the guys who made OPI) have a git repo - https://github.com/orangepi-xunlong
There you can find sources, toolchain and scripts to build either 3.4 or a mainline kernel (at least for H3)

9

threads

27

posts

286

credits

Intermediate member

Rank: 3Rank: 3

credits
286
 Author| Published in 2017-1-29 04:58:34 | Show all floors
Hi. I haven't built from the sources on there yet. haven't really needed to.
The Mainline kernel has a much more complete version of U-Boot with it. It's been a while since I've been able to play with it. However I did succeed in compiling a couple of test binaries on the PC, copying them via serial cable to the OPi PC's RAM and running them. I also managed to draw on the U-Boot configured simplefb using U-Boot memory commands. It was a horizontal line because it was easy to just do a block fill. The important thing was it showed I had the right base address and gave me feedback on the pixel format.

9

threads

29

posts

329

credits

Intermediate member

Rank: 3Rank: 3

credits
329
Published in 2017-1-29 07:17:30 | Show all floors
I will make my new Distro with Debian, But i will add my logo in boot?  Can we add logo in kernel?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list