登录
|
立即注册
论坛
>
进阶用户
发帖
|
为Ubuntu Debian linux安装Mali 400 GPU驱动
看59356
|
回17
|
收藏
jacer
看全部
2015-11-14 20:26:53
本帖最后由 jacer 于 2015-12-2 19:37 编辑
下载下面链接的驱动包解压到home目录
http://pan.baidu.com/s/1mg1ZSqk
打开termnal终端然后输入如下命令
代码:
sudo apt-get update
代码:
sudo apt-get install git build-essential make gcc autoconf libtool debhelper dh-autoreconf pkg-config automake xutils-dev libx11-dev libxext-dev libdrm-dev x11proto-dri2-dev libxfixes-dev xorg-dev libltdl-dev mesa-utils x11proto-core-dev
代码:
cd ~/gpu_pack/LIB
代码:
sudo cp -R * /usr/lib
代码:
cd ~/gpu_pack/include
代码:
sudo cp -R * /usr/include
代码:
mkdir ~/hw_accleration
代码:
cd ~/hw_accleration
git clone https://github.com/robclark/libdri2.git
git clone https://github.com/linux-sunxi/libump.git
git clone https://github.com/ssvb/xf86-video-fbturbo.git
cd ~/hw_accleration
cd libdri2
./autogen.sh
./configure --prefix=/usr
make
sudo make install
sudo ldconfig
cd ~/hw_accleration
cd libump
autoreconf -i
./configure
make
sudo make install
sudo ldconfig
cd ~/hw_accleration
cd xf86-video-fbturbo
autoreconf -v -i
./configure --prefix=/usr
make
sudo make install
代码:
sudo vi /etc/X11/xorg.conf
复制粘贴如下进去输入
ESC
键 然后输入
:wq
保存
代码:
Section "Device"
Identifier "Allwinner H3 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "DRI2" "true"
Option "SwapbuffersWait" "true"
EndSection
Section "DRI"
Mode 0666
EndSection
代码:
cd /etc/udev/rules.d
代码:
sudo vi 50-mali.rules
复制粘贴如下内容进去然后保存方法同上
代码:
KERNEL=="mali", MODE="0660", GROUP="video"
KERNEL=="ump", MODE="0660", GROUP="video"
KERNEL=="disp", MODE="0660", GROUP="video"
KERNEL=="g2d", MODE="0660", GROUP="video"
KERNEL=="fb*", MODE="0660", GROUP="video"
KERNEL=="cedar_dev", MODE="0660", GROUP="video"
代码:
sudo usermod -aG video $USER
代码:
sudo mv /usr/lib/arm-linux-gnueabihf/mesa-egl/ /usr/lib/arm-linux-gnueabihf/.mesa-egl/
代码:
cd /usr/lib
代码:
sudo -s
输入用户密码后运行
代码:
ln -sf libMali.so libEGL.so
ln -sf libMali.so libEGL.so.1
ln -sf libMali.so libEGL.so.1.4
ln -sf libMali.so libGLESv1_CM.so
ln -sf libMali.so libGLESv1_CM.so.1
ln -sf libMali.so libGLESv1_CM.so.1.1
ln -sf libMali.so libGLESv2.so
ln -sf libMali.so libGLESv2.so.2
ln -sf libMali.so libGLESv2.so.2.0
代码:
sudo vi /etc/modules-load.d/modules.conf
改成如下后:wq保存
代码:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
#For SATA Support
#sw_ahci_platform
##Display and GPU
##lcd
##hdmi
ump
##disp
mali
mali_drm
##8192cu
##8188eu
8189es
gpio-sunxi
运行下面命令后重启
代码:
sudo depmod -a
重启后可以安装glmark2-es2测试GPU是否成功驱动,方法如下:
打开终端termnal输入如下命令安装并运行会看到如下的动画:旋转的俊马 玻璃兔子 木箱等
代码:
sudo apt-get install glmark2-es2
glmark2-es2
代码:
orangepi@OrangePI:~/glmark2-2011.09$ glmark2-es2
=======================================================
glmark2 2011.09
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-400 MP
GL_VERSION: OpenGL ES 2.0
=======================================================
[build] use-vbo=false: FPS: 111
[build] use-vbo=true: FPS: 124
[texture] texture-filter=nearest: FPS: 135
[texture] texture-filter=linear: FPS: 133
[texture] texture-filter=mipmap: FPS: 141
[shading] shading=gouraud: FPS: 109
[shading] shading=blinn-phong-inf: FPS: 110
[shading] shading=phong: FPS: 91
[bump] bump-render=high-poly: FPS: 72
[bump] bump-render=normals: FPS: 119
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 66
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 46
[pulsar] light=false:quads=5:texture=false: FPS: 114
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 38
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 114
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 88
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 113
[function] fragment-complexity=low:fragment-steps=5: FPS: 96
[function] fragment-complexity=medium:fragment-steps=5: FPS: 71
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 85
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 96
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 94
=======================================================
glmark2 Score: 98
=======================================================
附件:
您需要
登录
才可以下载或查看附件。没有账号?
立即注册
duxingkei
看全部
2015-11-14 20:38:20
辛苦啦,我正准备放弃完Android时又勾起了我的欲望,一定要试下
renpeng009
看全部
2015-11-17 20:54:54
顶起,改天试试
01q2f
看全部
2015-11-18 22:14:42
安装不上
renpeng009
看全部
2015-11-19 19:55:24
我也是安装不上,感觉哪里不对,楼主能不能整理成shell脚本?
1
2
3
4
/ 4 页
下一页
orange pi.
Powered by
Discuz!
X3.4
首页
|
简易版
|
触屏版
|
电脑版