mameau%CWD%:> █
OFFLINE
$ cat armbian-build.txt
boot 6.12 image, no video output use serial

https://github.com/armbian/build
https://www.reddit.com/r/OrangePI/comments/1i9mbr4/comment/m9woej4/


### KERNEL // edge
git clone https://github.com/armbian/build.git armbian-build
cd armbian-build
./compile.sh kernel BOARD=orangepi5 BRANCH=edge KERNEL_GIT=shallow
./compile.sh kernel-dtb BOARD=orangepi5 BRANCH=edge KERNEL_GIT=shallow
cd output/debs
sudo dpkg -i *.deb
sudo apt-get install -f -y

[optional] sudo apt-get install -y vulkan-tools mesa-utils


### VULKAN (not required for MESA 24)
git clone https://github.com/KhronosGroup/SPIRV-Tools.git spirv-tools
cd spirv-tools/external
git clone https://github.com/KhronosGroup/SPIRV-Headers.git spirv-headers
sudo apt-get install cmake
cd ../
mkdir build && cd build
cmake ..
cmake --build . --target install


### MESA
sudo apt-get install build-essential git
sudo sed -i 's/^#deb-src/deb-src/' /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep mesa
git clone git://anongit.freedesktop.org/mesa/mesa mesa

cd mesa
git pull origin main
24.3-branchpoint
#git checkout $(git describe --tags | head -n1)
git checkout 24.3-branchpoint

rm -rf builddir
meson setup \
 -Dprefix=/usr \
 -Dgles2=enabled \
 -Dgallium-drivers=panfrost,zink \
 -Dvulkan-drivers=panfrost \
 -Dtools=drm-shim \
 -Dbuildtype=release \
 builddir/

[optional] may need to fix perms on users ccache

meson compile -C builddir/
sudo meson install -C builddir/

reboot

glxinfo -B

# mesa 24 (not required for 25)
PAN_I_WANT_A_BROKEN_VULKAN_DRIVER=1 vulkaninfo | grep -A10 GPU0




### unrelated but prevent sleep/hibernation
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target