2 2
NicoD

tutorial Build Armbian with Panfrost

Recommended Posts

Panfrost instructions Armbian
 

This tutorial explains how to build an Armbian image with panfrost. And what else you need to make it work.

These are early drivers. Many things don't work yet. Only OpenGL 2.1 works now.

 

You need to build an image with kernel 5.2 or later.
For this you need an x86 pc with Ubuntu 18.04 or a virtual Ubuntu 18.04 x86 image.


First install git, then clone the build folder from Armbian, and enter the build directory.

 

apt-get -y -qq install git
git clone --depth 1 https://github.com/armbian/build
cd build

Now run the script with EXPERT=yes so you can choose to build a dev image.

sudo ./compile EXPERT=yes
  • Choose "Full OS image for flashing"
  • Then "Show a kernel configuration menu before compilation"
  • Choose your board. If it's not in the regular list, look in "Show SCS/WIP/EOS/TVB".
  • Choose Development version
  • kernel configuration -> device drivers -> graphic drivers -> panfrost

 

Let it run until it's finished. The image will be in the /build/output/images

Burn it to an SD-card/eMMC/...

 

Now we need to install all the needed software

sudo apt install flex bison python3-mako libwayland-egl-backend-dev libxcb-dri3-dev libxcb-dri2-0-dev libxcb-glx0-dev libx11-xcb-dev libxcb-present-dev libxcb-sync-dev libxxf86vm-dev libxshmfence-dev libxrandr-dev libwayland-dev libxdamage-dev libxext-dev libxfixes-dev x11proto-dri2-dev x11proto-dri3-dev x11proto-present-dev x11proto-gl-dev x11proto-xf86vidmode-dev libexpat1-dev libudev-dev gettext glmark2 glmark2-es2 mesa-utils xutils-dev libpthread-stubs0-dev ninja-build bc python-pip flex bison cmake git valgrind llvm llvm-8-dev python3-pip  pkg-config zlib1g-dev wayland-protocols

Download and install meson

wget http://ftp.de.debian.org/debian/pool/main/m/meson/meson_0.52.0-2_all.deb
sudo dpkg -i meson_0.52.0-2_all.deb

Download and install mesa DRM

git clone git://anongit.freedesktop.org/mesa/drm
cd drm
meson build --prefix=/usr
ninja -C build
sudo -E ninja -C build install
cd ..

Download and install mesa graphics

git clone git://anongit.freedesktop.org/mesa/mesa
cd mesa
meson -Ddri-drivers= -Dvulkan-drivers= -Dgallium-drivers=panfrost,kmsro -Dlibunwind=false -Dprefix=/usr build/
ninja -C build/
sudo ninja -C build/ install

REBOOT

 

Optionally, update sdl (recommended)

git clone https://github.com/SDL-mirror/SDL.git
cd SDL
mkdir build
cd build
cmake ../  
make -j6
sudo make install

REBOOT

 

Only thing that works ok with it is supertuxkart, to install it.

sudo apt install supertuxkart

 

Panfrost - Linux games working from repo
SuperTuxKart - Works well
ExtremeTuxRacer - lots of glitches
AssaultCube - lots of glitches

 

Instructions by Salvador Liébana & NicoD

Share this post


Link to post
Share on other sites
8 hours ago, soerenderfor said:

Just a quick for you: Do the Panfrost make the RockPi4 faster in desktop use/mode? And in which way. Thanks.

 

Best Regards.

 

panfrost driver is far away from daily use, still under heave develop..

 

if you have mali450/400 device, lima driver is near.

Share this post


Link to post
Share on other sites
1 hour ago, ning said:

 

panfrost driver is far away from daily use, still under heave develop..

 

if you have mali450/400 device, lima driver is near.

I had the impression it was the other way around.

Have you had success with lima? or anyone?

 

Anyway, Looking forward to seeing the @NicoD's video about tee panfrost experience.

Share this post


Link to post
Share on other sites

He my video about what's new on the Rock Pi 4, and mainline Armbian + Panfrost

 

Share this post


Link to post
Share on other sites
2 2