Custom D.E.O.T. V1.0+/Clockwork OS v0.4 image - With Updated Kernel 5.3.6, Latest Lima Drivers, RA1.8.1, Mupen64+ and much more! (Current version: 191122)

SSH into your game shell, and type this into the command line. This was taken from the link I put in my post above, and directly from @guu’s post a few replies up. I have just modified an additional mkdir to allow the files to be built somewhere.

If you don’t know 100% what you’re doing, do everything 1 line at a time, to make sure there are no errors etc. Some of the commands require a Y/N input. If you just paste everything in, it overrides these, and aborts the process.

You don’t need to type in the ## comments. They’re just comments.

## install the new libdrm
wget https://dri.freedesktop.org/libdrm/libdrm-2.4.100.tar.bz2
tar jxvf  libdrm-2.4.100.tar.bz2
cd libdrm-2.4.100
./configure --libdir=/usr/lib/arm-linux-gnueabihf
make
sudo make install
cd 

## install the mesa master branch 
sudo apt install g++ meson python3-mako zlib1g-dev libexpat1-dev libdrm-dev flex bison libx11-dev libxext-dev libxdamage-dev libxcb-glx0-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-present-dev libxshmfence-dev libxxf86vm-dev libxrandr-dev

git clone https://gitlab.freedesktop.org/mesa/mesa.git
cd mesa
mkdir build
meson build --prefix=/usr/   -Dbuildtype=release   -Dgallium-drivers=kmsro,lima,swrast -Dosmesa=none -Dplatforms=x11,drm,surfaceless -Dllvm=false

sudo ninja -C build/ install

sudo mv /usr/lib/dri/sun4i_drm_dri.so /usr/lib/dri/sun4i_drm_dri.so.old

sudo mv /usr/lib/dri/sun4i-drm_dri.so /usr/lib/dri/sun4i_drm_dri.so

sudo mv  /usr/lib/lima /usr/lib/lima.old/

sudo reboot