Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to compile Gentoo for Orange Pi Zero 2W?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ivanbrash
n00b
n00b


Joined: 01 Jun 2024
Posts: 6

PostPosted: Sat Jun 01, 2024 4:49 am    Post subject: How to compile Gentoo for Orange Pi Zero 2W? Reply with quote

Orange Pi Zero 2W is a Chinese alternative for Raspberry Pi Zero 2W with Allwinner H618 CPU and Mali-G31 GPU, which is more powerful than Raspberry Pi Zero 2W. And I would like to ask you, is the instruction for Raspberry Pi suitable for Orange Pi Zero 2W?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Sat Jun 01, 2024 10:09 am    Post subject: Reply with quote

ivanbrash,

Welcome to Gentoo.

The general concept in the Raspberry Pi Install Guide is valid, as are the Gentoo parts of of the setup.
The idea is to put a vendor kernel under a Gentoo stage 3 and set it up to boot.

You will need to replace the Raspberry Pi content of /boot with whatever a Orange Pi Zero 2W requires.

Further, you won't be able to build much on an Orange Pi Zero 2W.
See Further Reading. The alternatives are Cross compiling and/or a QEMU chroot.
They both run on $RANDOM_ARCH but generate code for your Orange Pi Zero 2W.

Hmm ... there is a 4G version. That has the RAM for most builds.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ivanbrash
n00b
n00b


Joined: 01 Jun 2024
Posts: 6

PostPosted: Sun Jun 02, 2024 11:30 am    Post subject: Reply with quote

I'm have been testing Orange Pi Zero 2W in Geekbench 5 and it is similar in performance to the first laptop Core 2 Duo and KDE Plasma 6 works well on it(tested on Manjaro ARM Build for Orange Pi Zero 3/2W/2 from junari). For compiling a Gentoo for this SBC I have the mini-PC on Ryzen 7 6800H which purchased on Aliexpress for 500$.
Back to top
View user's profile Send private message
ivanbrash
n00b
n00b


Joined: 01 Jun 2024
Posts: 6

PostPosted: Fri Jul 12, 2024 10:14 pm    Post subject: Reply with quote

NeddySeagoon wrote:
ivanbrash,

Welcome to Gentoo.

The general concept in the Raspberry Pi Install Guide is valid, as are the Gentoo parts of of the setup.
The idea is to put a vendor kernel under a Gentoo stage 3 and set it up to boot.

You will need to replace the Raspberry Pi content of /boot with whatever a Orange Pi Zero 2W requires.

Further, you won't be able to build much on an Orange Pi Zero 2W.
See Further Reading. The alternatives are Cross compiling and/or a QEMU chroot.
They both run on $RANDOM_ARCH but generate code for your Orange Pi Zero 2W.

Hmm ... there is a 4G version. That has the RAM for most builds.


And how to flash u-boot without damaging the partition table?
Back to top
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 207
Location: Ancient Rome

PostPosted: Sat Jul 13, 2024 12:23 pm    Post subject: Reply with quote

If you are working with Allwinners SoC, this site is useful: https://linux-sunxi.org/

ivanbrash wrote:
(…)
And how to flash u-boot without damaging the partition table?


You can create a partition in the right place and then dd into it. This way, you can be sure you won't overwrite anything important.
Back to top
View user's profile Send private message
ivanbrash
n00b
n00b


Joined: 01 Jun 2024
Posts: 6

PostPosted: Thu Jul 25, 2024 3:41 am    Post subject: Reply with quote

lekto wrote:
If you are working with Allwinners SoC, this site is useful: https://linux-sunxi.org/

ivanbrash wrote:
(…)
And how to flash u-boot without damaging the partition table?


You can create a partition in the right place and then dd into it. This way, you can be sure you won't overwrite anything important.

And which SAFE_CFLAGS should I use to compile Gentoo with maximum optimization for the Allwinner H618 processor? After all, I'm going to use the mainline Linux kernel with some patches to make everything work.
Back to top
View user's profile Send private message
lekto
Apprentice
Apprentice


Joined: 20 Sep 2014
Posts: 207
Location: Ancient Rome

PostPosted: Thu Jul 25, 2024 1:05 pm    Post subject: Reply with quote

Probably something like: "-march=armv8-a -mtune=cortex-a53 -pipe -O2".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum