Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9139524
  • 博文数量: 1725
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19840
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1725)

文章存档

2024年(1)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: Android平台

2018-01-23 17:59:18

https://www.cnx-software.com/2014/03/14/mali-400-gpu-is-now-working-in-linux-for-rockchip-rk3188-devices/


Accelerated 3D graphics in Linux with Mali-400 via OpenGL ES has been possible for nearly a year on RK3066 devices,  but there was no such support for RK3188. This week however, both  and omegamoon have reported OpenGL ES to work in in their respective RK3188 devices. I don’t know which device omegamoon used, but Naoki did so in Radxa Rock, and even  to build it yourself.

es2gears OpenGL ES demo on Rockchip RK3188

es2gears OpenGL ES demo on Rockchip RK3188

They’ve mostly followed the work done by  for Rockchip, and  provided in linux-sunxi community, and it can be summarize in 3 main steps:

  1. Cross-compile drm.ko, mali_drm.ko, ump.ko, mali.ko in a Linux machine
  2. Copy and load the four modules to your RK3188 based board or device.
  3. Install dependencies and binary Mali drivers from sunxi-linux in your Rockchip device

Once this is done you can try some OpenGL ES demos such as esgears2 or glmark2-es to test it with the framebuffer. es2gears can be installed with “sudo apt-get install mesa-utils-extra” and glmark2-es2 with “sudo apt-get install glmark2-es2“.

I had a quick try this morning, and the building worked, the four modules could load, but es2gears still rendered by software:

点击(此处)折叠或打开

  1. libEGL warning: DRI2: failed to authenticate
  2. XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
  3.       after 184 requests (171 known processed) with 0 events remaining.
  4. EGL_VERSION = 1.4 (DRI2)
I used a different toolchain, and kernel source, so this may be the reason. TBC. A successful es2gears output should look like:

点击(此处)折叠或打开

  1. EGL_VERSION = 1.4 Linux-r3p2-01rel2
  2.  vertex shader info:
  3.  fragment shader info:
  4.  info:
  5.  2064 frames in 5.0 seconds = 412.635 FPS
  6.  2129 frames in 5.0 seconds = 425.630 FPS



点击(此处)折叠或打开

  1. and glmark2-es2:
  2.  =======================================================
  3.     glmark2 2012.08
  4. =======================================================
  5.     OpenGL Information
  6.     GL_VENDOR: ARM
  7.     GL_RENDERER: Mali-400 MP
  8.     GL_VERSION: OpenGL ES 2.0
  9. =======================================================



Further steps would be to enable X11 to use Mali, but I’m not sure this has been tried just yet.


Nevertheless, that should mean you can soon expect Linux images with support for accelerated 3D graphics for your Rockchip RK3188. This does not mean however that hardware video decoding will be possible, as . There is, however, a  to brings hardware video decoding support in RK3188, but this should take much more time.

In other news, linux-rochip community has just started a , so you may want to join if you are interested in software development on Rockchip devices for Linux and Android.


阅读(4608) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~