登录|立即注册
论坛 > 进阶用户
发帖|
看59356|回17|收藏
jacer 看全部
2015-11-14 20:26:53
本帖最后由 jacer 于 2015-12-2 19:37 编辑

下载下面链接的驱动包解压到home目录http://pan.baidu.com/s/1mg1ZSqk
打开termnal终端然后输入如下命令

代码:

  1. sudo apt-get update

代码:

  1. 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

代码:

  1. cd ~/gpu_pack/LIB

代码:

  1. sudo cp -R * /usr/lib

代码:

  1. cd ~/gpu_pack/include

代码:

  1. sudo cp -R * /usr/include

代码:

  1. mkdir ~/hw_accleration

代码:

  1. cd ~/hw_accleration
  2. git clone https://github.com/robclark/libdri2.git
  3. git clone https://github.com/linux-sunxi/libump.git
  4. git clone https://github.com/ssvb/xf86-video-fbturbo.git
  5. cd ~/hw_accleration
  6. cd libdri2
  7. ./autogen.sh
  8. ./configure --prefix=/usr
  9. make
  10. sudo make install
  11. sudo ldconfig
  12. cd ~/hw_accleration
  13. cd libump
  14. autoreconf -i
  15. ./configure
  16. make
  17. sudo make install
  18. sudo ldconfig
  19. cd ~/hw_accleration
  20. cd xf86-video-fbturbo
  21. autoreconf -v -i
  22. ./configure --prefix=/usr
  23. make
  24. sudo make install

代码:

  1. sudo vi /etc/X11/xorg.conf
复制粘贴如下进去输入ESC键 然后输入:wq保存

代码:

  1. Section "Device"
  2.         Identifier      "Allwinner H3 FBDEV"
  3.         Driver          "fbturbo"
  4.         Option          "fbdev" "/dev/fb0"
  5.         Option          "DRI2"            "true"
  6.         Option          "SwapbuffersWait" "true"
  7. EndSection

  8. Section "DRI"
  9.     Mode 0666
  10. EndSection

代码:

  1. cd  /etc/udev/rules.d

代码:

  1. sudo vi 50-mali.rules
复制粘贴如下内容进去然后保存方法同上

代码:


  1. KERNEL=="mali", MODE="0660", GROUP="video"
  2. KERNEL=="ump", MODE="0660", GROUP="video"
  3. KERNEL=="disp", MODE="0660", GROUP="video"
  4. KERNEL=="g2d", MODE="0660", GROUP="video"
  5. KERNEL=="fb*", MODE="0660", GROUP="video"
  6. KERNEL=="cedar_dev", MODE="0660", GROUP="video"

代码:

  1. sudo usermod -aG video $USER

代码:

  1. sudo mv /usr/lib/arm-linux-gnueabihf/mesa-egl/ /usr/lib/arm-linux-gnueabihf/.mesa-egl/

代码:

  1. cd /usr/lib

代码:

  1. sudo -s
输入用户密码后运行

代码:

  1. ln -sf libMali.so libEGL.so
  2. ln -sf libMali.so libEGL.so.1
  3. ln -sf libMali.so libEGL.so.1.4
  4. ln -sf libMali.so libGLESv1_CM.so
  5. ln -sf libMali.so libGLESv1_CM.so.1
  6. ln -sf libMali.so libGLESv1_CM.so.1.1
  7. ln -sf libMali.so libGLESv2.so
  8. ln -sf libMali.so libGLESv2.so.2
  9. ln -sf libMali.so libGLESv2.so.2.0

代码:

  1. sudo vi /etc/modules-load.d/modules.conf
改成如下后:wq保存

代码:

  1. # /etc/modules: kernel modules to load at boot time.
  2. #
  3. # This file contains the names of kernel modules that should be loaded
  4. # at boot time, one per line. Lines beginning with "#" are ignored.

  5. #For SATA Support
  6. #sw_ahci_platform

  7. ##Display and GPU
  8. ##lcd
  9. ##hdmi
  10. ump
  11. ##disp
  12. mali
  13. mali_drm
  14. ##8192cu
  15. ##8188eu
  16. 8189es
  17. gpio-sunxi
运行下面命令后重启

代码:

  1. sudo depmod -a
重启后可以安装glmark2-es2测试GPU是否成功驱动,方法如下:
打开终端termnal输入如下命令安装并运行会看到如下的动画:旋转的俊马 玻璃兔子 木箱等

代码:

  1. sudo apt-get install glmark2-es2
  2. glmark2-es2

代码:

  1. orangepi@OrangePI:~/glmark2-2011.09$ glmark2-es2
  2. =======================================================
  3.     glmark2 2011.09
  4. =======================================================
  5.     OpenGL Information
  6.     GL_VENDOR:     ARM
  7.     GL_RENDERER:   Mali-400 MP
  8.     GL_VERSION:    OpenGL ES 2.0
  9. =======================================================
  10. [build] use-vbo=false:  FPS: 111
  11. [build] use-vbo=true:  FPS: 124
  12. [texture] texture-filter=nearest:  FPS: 135
  13. [texture] texture-filter=linear:  FPS: 133
  14. [texture] texture-filter=mipmap:  FPS: 141
  15. [shading] shading=gouraud:  FPS: 109
  16. [shading] shading=blinn-phong-inf:  FPS: 110
  17. [shading] shading=phong:  FPS: 91
  18. [bump] bump-render=high-poly:  FPS: 72
  19. [bump] bump-render=normals:  FPS: 119
  20. [effect2d] kernel=0,1,0;1,-4,1;0,1,0;:  FPS: 66
  21. [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;:  FPS: 46
  22. [pulsar] light=false:quads=5:texture=false:  FPS: 114
  23. [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:  FPS: 38
  24. [conditionals] fragment-steps=0:vertex-steps=0:  FPS: 114
  25. [conditionals] fragment-steps=5:vertex-steps=0:  FPS: 88
  26. [conditionals] fragment-steps=0:vertex-steps=5:  FPS: 113
  27. [function] fragment-complexity=low:fragment-steps=5:  FPS: 96
  28. [function] fragment-complexity=medium:fragment-steps=5:  FPS: 71
  29. [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5:  FPS: 85
  30. [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5:  FPS: 96
  31. [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5:  FPS: 94
  32. =======================================================
  33.                                   glmark2 Score: 98
  34. =======================================================



附件: 您需要登录才可以下载或查看附件。没有账号?立即注册
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脚本?
1234下一页

orange pi.

Powered by Discuz! X3.4

首页|简易版|触屏版|电脑版