# Installing Gentoo on the SolidRun HoneyComb LX2

**URL:** <https://community.solid-run.com/t/installing-gentoo-on-the-solidrun-honeycomb-lx2/154>\
**Category:** NXP LX2160\
**Tags:** NXP-LX2160\
**Created:** [September 10, 2021, 1:13pm UTC](https://community.solid-run.com/t/installing-gentoo-on-the-solidrun-honeycomb-lx2/154 "2021-09-10T13:13:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanoJing](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/hanojing/32/64_2.png) [@hanoJing](https://community.solid-run.com/u/hanoJing)\
**Post date:** [September 10, 2021, 1:13pm UTC](https://community.solid-run.com/t/installing-gentoo-on-the-solidrun-honeycomb-lx2/154/1 "2021-09-10T13:13:43Z")

</div>

I got Gentoo installed on the HoneyComb LX2. It’s an upgrade compared to Void Linux for me.

1. I recommend the bottom of this website, which will get you up and running with Gentoo: [HoneyComb / ClearFog CX Installation and Tips - SolidRun](https://developer.solid-run.com/knowledge-base/honeycomb-clearfog-cx-installation-and-tips/)

2. 

LLVM\_TARGETS=“ARM AMDGPU AArch64 BPF”  
L10N=“de en”  
LC\_MESSAGES=C  
CPU\_FLAGS\_ARM64=“neon”  
VIDEO\_CARDS=“amdgpu radeonsi”  
COMMON\_FLAGS="-march=native -O2 -pipe"  
FCFLAGS="${COMMON\_FLAGS}"  
FFLAGS="${COMMON\_FLAGS}"  
CFLAGS="${COMMON\_FLAGS}"  
CXXFLAGS="${COMMON\_FLAGS}"  
CHOST=“aarch64-unknown-linux-gnu”  
FEATURES=“buildpkg parallel-fetch parallel-install”  
USE=“X vulkan elogind dbus opengl cups persist -systemd -kde -gnome -bluetooth”  
EMERGE\_DEFAULT\_OPTS="–ask --jobs 2 --keep-going=y --autounmask=y --autounmask-continue"  
MAKEOPTS="-j10"  
ACCEPT\_KEYWORDS="~arm64"  
ACCEPT\_LICENSE="\*"  
PORTAGE\_NICENESS=“16”  
GENTOO\_MIRRORS=https://mirror.leaseweb.com/gentoo/

You might want to change the GENTOO\_MIRRORS variable to match your region aswell as the USE flags on wheter you use wayland, opendoas… etc… or not. I have 16GiB of RAM, If you have more than that, you can set the MAKEOPTS="-j" flag higher.

1. If you want mesa to work properly on Gentoo, you will have to patch mesa with this patch, by Jon Nettleton - thank you Jon! :[void-packages/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch at master · void-linux/void-packages · GitHub](https://github.com/void-linux/void-packages/blob/master/srcpkgs/mesa/patches/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch)

!!!This patch is for mesa-21.2.1!!!

Therefore: sudo mkdir -p /etc/portage/patches/media-libs/mesa/  
wget [https://raw.githubusercontent.com/void-linux/void-packages/master/srcpkgs/mesa/patches/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch](https://raw.githubusercontent.com/void-linux/void-packages/master/srcpkgs/mesa/patches/0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch)

sudo cp 0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch /etc/portage/patches/media-libs/mesa/

For topics like synchronizing the time, setting the keymap and locale view:  
for time:  
[https://wiki.gentoo.org/wiki/OpenNTPD](https://wiki.gentoo.org/wiki/OpenNTPD)

for the keymap:  
[https://wiki.gentoo.org/wiki/Keyboard\_layout\_switching](https://wiki.gentoo.org/wiki/Keyboard_layout_switching)

for the locale:  
[https://wiki.gentoo.org/wiki/Localization/Guide](https://wiki.gentoo.org/wiki/Localization/Guide)
