|
Edited by magicse at 2015-10-28 09:53
Q:How install kernel part of mali drivers
A: (Game start)
LEVEL 1
Copy modules ump.ko mali.ko drm.ko и mali_drm.ko to /lib/modules/3.4.39/
Copy Libs (libGLES* libGLES* LibUmp LibMali) to /usr/lib
Copy include to /usr/include
Create rules for dev
sudo cat <<eof>/etc/udev/rules.d/50-mali.rules
KERNEL=="mali", MODE="0666", GROUP="video"
KERNEL=="ump", MODE="0666", GROUP="video"
KERNEL=="cedar_dev", MODE="0660", GROUP="video"
EOF
To allow hardware acceleration without root privileges, you have to give write permissions to following device files:
sudo chmod 666 /dev/mali /dev/ump /dev/cedar_dev
sudo chown root:video /dev/mali
sudo chown root:video /dev/ump
sudo chown root:video /dev/cedar_dev
You have to assign the group to the user:
sudo usermod -aG video [$USER] for me user ->orangepi
Modify /etc/modules to add the following lines:
ump
mali
drm
mali_drm
Then type in a terminal "depmod -a" so it will parse the new modules
reboot
Level 1 done
LEVEL 2
Need to build xf86-video-fbturbo or xf86-video-mali
and configure X.11 xorg
May be someone make it.
|
|