mripard / sunxi-mali

GNU General Public License v2.0
100 stars 54 forks source link

Install guide for Armbian WIP. #79

Closed ghost closed 4 years ago

ghost commented 4 years ago

Trying to find out how I did that. I'm not responsible for bricks made by following that exactly. If I'll ever have to do that AGAIN, that is. Get at least 2A power source, or you'll experience sudden reboots. Edit /boot/armbianEnv.txt such as it will have a line extraargs="drm_kms_helper.drm_fbdev_overalloc=200" https://gist.github.com/singulared/5262444 A respect to @singulared - create /etc/udev/rules.d/99-mali-devices.rules with KERNEL=="mali*" OWNER="root" GROUP="mali" MODE="0660" Respects to https://fedoraproject.org/wiki/RenderingProject/aiglx https://github.com/mripard/xf86-video-armsoc/blob/sunxi-mali/xorg.conf There should be no /etc/X11/xorg.conf.d/80-armsoc-sun4i.conf - my config will replace it. Create a file /etc/X11/xorg.conf.d/80-mali-tweaks.conf

Section "Device"
    Identifier      "ARMSOC DRM driver"
    Driver          "armsoc"
    Option  "DRI2"      "true"
Option "SWcursor" "on"
#   Option          "fbdev"         "/dev/fb0"
#   Option  "Debug"     "true"
#   Option  "UMP_LOCK"  "false"
EndSection

Section "Screen"
    Identifier  "DefaultScreen"
    Device      "ARMSOC DRM driver"
    DefaultDepth    16
EndSection

Section "ServerFlags"
Option  "AIGLX" "off"
EndSection

Section "Extensions"
Option "Composite" "Disable"
EndSection

Then,

sudo apt update
sudo apt upgrade
sudo apt install xfce4 xfce4-goodies \
    xauth colord upower lxdm \
    xorg xserver-xorg-input-all weston \
    build-essential quilt cmake git \
    autoconf-archive xutils-dev \
    linux-headers-current-sunxi \
    mesa-utils mesa-utils-extra \
    debsums
systemctl reboot
sudo debsums -s
#do
#sudo apt install --reinstall x
#sudo debsums -s
#til errors go away
#header errors seem to be okay
sudo echo blacklist lima > /etc/modprobe.d/nolima.conf
sudo modprobe -r lima
mkdir src
cd src
git clone --depth=1 --recursive https://github.com/mripard/sunxi-mali.git
git clone --depth=1 --recursive https://github.com/bootlin/mali-blobs.git
cp -r sunxi-mali sunxi-mali0
cd sunxi-mali0
#set your kernel here instead of 5.3.9
export KDIR=/lib/modules/5.3.9-sunxi/build \
    INSTALL_MOD_PATH=/ \
    CROSS_COMPILE="" \
    #BUILD=debug #BUILD=release
./build.sh -r r6p2 -b
sudo -E ./build.sh -r r6p2 -i
sudo echo mali > /etc/modules-load.d/mali.conf
sudo depmod -a
sudo modprobe mali #mali_debug_level=5 #mali_debug_level=7
cd ../mali-blobs
#TODO