View previous topic :: View next topic |
Author |
Message |
ivanbrash n00b
Joined: 01 Jun 2024 Posts: 6
|
Posted: Sat Jun 01, 2024 4:49 am Post subject: How to compile Gentoo for Orange Pi Zero 2W? |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat Jun 01, 2024 10:09 am Post subject: |
|
|
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 |
|
|
ivanbrash n00b
Joined: 01 Jun 2024 Posts: 6
|
Posted: Sun Jun 02, 2024 11:30 am Post subject: |
|
|
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 |
|
|
ivanbrash n00b
Joined: 01 Jun 2024 Posts: 6
|
Posted: Fri Jul 12, 2024 10:14 pm Post subject: |
|
|
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 |
|
|
lekto Apprentice
Joined: 20 Sep 2014 Posts: 209 Location: Ancient Rome
|
Posted: Sat Jul 13, 2024 12:23 pm Post subject: |
|
|
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 |
|
|
ivanbrash n00b
Joined: 01 Jun 2024 Posts: 6
|
Posted: Thu Jul 25, 2024 3:41 am Post subject: |
|
|
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 |
|
|
lekto Apprentice
Joined: 20 Sep 2014 Posts: 209 Location: Ancient Rome
|
Posted: Thu Jul 25, 2024 1:05 pm Post subject: |
|
|
Probably something like: "-march=armv8-a -mtune=cortex-a53 -pipe -O2". |
|
Back to top |
|
|
|