|  | 
 
| 本帖最后由 jacer 于 2015-12-2 19:37 编辑 
 下载下面链接的驱动包解压到home目录http://pan.baidu.com/s/1mg1ZSqk
 打开termnal终端然后输入如下命令
 
 复制代码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
复制代码sudo cp -R * /usr/include
复制代码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
复制粘贴如下进去输入ESC键 然后输入:wq保存复制代码sudo vi /etc/X11/xorg.conf
 复制粘贴如下内容进去然后保存方法同上复制代码Section "Device"
        Identifier      "Allwinner H3 FBDEV"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"
        Option          "DRI2"            "true"
        Option          "SwapbuffersWait" "true"
EndSection
Section "DRI"
    Mode 0666
EndSection
 复制代码
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/
 复制代码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 
改成如下后:wq保存复制代码sudo vi /etc/modules-load.d/modules.conf
 运行下面命令后重启复制代码# /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
重启后可以安装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 
=======================================================
 
 
 | 
 
x本帖子中包含更多资源您需要 登录 才可以下载或查看,没有账号?立即注册  |