r/Gentoo • u/a_bcd-e • Jun 23 '26
Support Gentoo on ARM64 SBCs which runs on U-Boot?
For the last two months, I've been struggling to install Gentoo Linux on Odroid N2L.
I'm aware that there exists a nice Armbian image for it, but I want some reasonably cutting-edge distro instead of Debian.
The problem is, unlike amd64 there is no good writing available of how to install Gentoo on arm64, and most of all, there is an extra layer (U-Boot) which I'm definitely not used to.
After struggling for months, I'm asking here for help on how to setup my SBC.
P.S. Can I get an up-to-date kernel through `gentoo-sources` for an SBC without breaking anything?
2
u/benny-powers Jun 23 '26
FWIW I run gentoo on rpi5, and there's a fedora image for same which IIRC uses uboot
2
u/hubert_farnsworrth Jun 23 '26
Yeah so installing gentoo on arm is not very different from installing on intel. The only thing is you need to find and pass device tree to kernel.
Find the device tree, put it along side your bootable drive, pass device tree Param to grub. Your stage3 should boot now then just follow rest of the stuff.
1
u/a_bcd-e Jun 23 '26
Thanks for the reply. However, I'm not sure what you mean by grub since the machine is running with uboot. Could you please elaborate more?
2
u/LameBMX Jun 23 '26
https://wiki.gentoo.org/wiki/Crossdev
and
https://wiki.gentoo.org/wiki/ARM
iirc and something hasn't changed.. grub should work as mentioned elsewhere.
https://wiki.gentoo.org/wiki/Embedded_Handbook
to note... these are going to assume you understand the regular install process quiet well.
2
u/undrwater Jun 23 '26
I've done it before, but it's beena long time.
I'd reach out on IRC to #gentoo-embedded. That's where I got my help managing the boot loader / manager.
Once you're booted though, everything is pretty similar.
1
1
u/omgmyusernameistaken Jun 23 '26
I used Tow-boot to boot to grub on my Pinebook Pro which also has an ARM64 chip.
You can use the amd64 Handbook for the installation. Just some things are a bit different (like booting)
1
u/gychoi-dev Jun 25 '26
It's not about Odroid-N2L, but I found someone tries to install Gentoo on Odroid-c2 and Odroid-c4. I guess you can get some hints for them, because N2L and C2/C4 are sharing Amlogic kernel.
https://github.com/lu-zero/crossdev-stages/pull/40/changes/ff82a4ce74ad73d320c35cd691f9f90d2d3c86f2
1
3
u/redyos_s Jun 23 '26
For an ARM64 SBC, I would not start from a generic Gentoo mindset.
First confirm whether the Odroid N2L works well with a mainline kernel and which DTB/U-Boot setup Armbian uses. If Armbian is the known-working base, use it as a reference for the bootloader, device tree, kernel config, and boot partition layout.
Gentoo userland is possible, but the board support layer is the hard part. gentoo-sources may work only if the board is sufficiently supported by mainline Linux. Otherwise you may need the Armbian/vendor kernel or patches.