Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

How to compile Gentoo for Orange Pi Zero 2W?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
ivanbrash
n00b
n00b
Posts: 7
Joined: Sat Jun 01, 2024 4:38 am

How to compile Gentoo for Orange Pi Zero 2W?

  • Quote

Post by ivanbrash » Sat Jun 01, 2024 4:49 am

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?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jun 01, 2024 10:09 am

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.
Top
ivanbrash
n00b
n00b
Posts: 7
Joined: Sat Jun 01, 2024 4:38 am

  • Quote

Post by ivanbrash » Sun Jun 02, 2024 11:30 am

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$.
Top
ivanbrash
n00b
n00b
Posts: 7
Joined: Sat Jun 01, 2024 4:38 am

  • Quote

Post by ivanbrash » Fri Jul 12, 2024 10:14 pm

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?
Top
lekto
Apprentice
Apprentice
Posts: 231
Joined: Sat Sep 20, 2014 6:48 pm
Location: Ancient Rome

  • Quote

Post by lekto » Sat Jul 13, 2024 12:23 pm

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.
Top
ivanbrash
n00b
n00b
Posts: 7
Joined: Sat Jun 01, 2024 4:38 am

  • Quote

Post by ivanbrash » Thu Jul 25, 2024 3:41 am

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.
Top
lekto
Apprentice
Apprentice
Posts: 231
Joined: Sat Sep 20, 2014 6:48 pm
Location: Ancient Rome

  • Quote

Post by lekto » Thu Jul 25, 2024 1:05 pm

Probably something like: "-march=armv8-a -mtune=cortex-a53 -pipe -O2".
Top
Post Reply

7 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic