Page 1 of 1

You can now install gentoo on NanoPi R4S and NanoPi R2S.

Posted: Thu Sep 23, 2021 4:01 am
by crocket
Previously, I gave up on using NanoPi R2S because I couldn't figure out how to compile and install u-boot and linux kernel.

Today, I searched with "gentoo nanopi r4s" as search keywords, and I found

https://github.com/palacaze/gentoo-nanopi-r4s

I don't know how palacaze figured out how to install gentoo linux on NanoPi R4S, but he did it.

I also found gentoo installation instructions for NanoPi Neo3 and NanoPi R2S on

https://wiki.gentoo.org/wiki/Embedded_H ... anoPI/Neo3

NanoPi Neo3 and NanoPi R2S are similar to each other, so this guide can be used for NanoPi R2S, too.

Rejoice! It's time to build a gentoo router!!!!

Re: You can now install gentoo on NanoPi R4S and NanoPi R2S.

Posted: Sun Aug 31, 2025 4:28 pm
by sdauth
Very useful guide, thanks!
Sorry to resurrect this thread but I was looking for tips or advice for installation for the r4s.
From what I understand, it is now possible to use mainline and u-boot without patches or workaround.
Since my main desktop is not that powerful to run qemu aarch64 comfortably (and I was lazy to setup crossdev again), I installed armbian on a sd card and chrooted to a gentoo stage3 directly via ssh.
I'm currently compiling @world. It is much faster than my previous (failed) experiment with a beaglebone, the 4GB of ram helps also. I'm almost at gcc compilation... 8O (hopefully 4GB of swap is enough, I think it should be just fine with -lto & -pgo though)
The temp was quite high (60c) so I added a little fan temporarily, it is now between 40-45c with all threads busy.
Also I t took the 5.10 config from the guide and ran syncconfig to update it with gentoo-sources-6.12.41. I didn't modify much except remove raid support, video etc... Maybe more later but the more important is that it boots at least once :lol:
I wonder if it is possible to boot from an usb device instead of the sd card... Maybe I can just keep the armbian sd with the installed bootloader and somehow tweak it to boot from usb instead. (I'll update this post later)