arm mail400 linux驱动,mali 400 的使用方法

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.

uid-27875-id-5782644.html

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:

Cross-compile drm.ko, mali_drm.ko, ump.ko, mali.ko in a Linux machine

Copy and load the four modules to your RK3188 based board or device.

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:

点击(此处)折叠或打开

libEGL warning: DRI2: failed to authenticate

XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"

after 184 requests (171 known processed) with 0 events remaining.

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:

点击(此处)折叠或打开

EGL_VERSION = 1.4 Linux-r3p2-01rel2

vertex shader info:

fragment shader info:

info:

2064 frames in 5.0 seconds = 412.635 FPS

2129 frames in 5.0 seconds = 425.630 FPS

点击(此处)折叠或打开

and glmark2-es2:

=======================================================

glmark2 2012.08

=======================================================

OpenGL Information

GL_VENDOR: ARM

GL_RENDERER: Mali-400 MP

GL_VERSION: OpenGL ES 2.0

=======================================================

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值