firefly-rk3399 图形和视频加速(ubuntu)

本帖最后由 isle 于 2017-4-11 11:44 编辑

firefly-rk3399 在ubuntu下支持图形加速和视频解码加速了(GPU&VPU)
现提供beta版测试固件:
3D测试:

<div id="code_hu1"><ol><li>sudo apt install glmark2-es2

</li><li>glmark2-es2</li></ol></div>

解码测试:

test_dec-gst.sh

下载:
baidu: https://pan.baidu.com/s/1qXFzhik
google: https://drive.google.com/file/d/ … Ws/view?usp=sharing

更新(add opencl)baidu : http://pan.baidu.com/s/1jISdOZO
google: https://drive.google.com/file/d/0B7HO8lbGgAqAb1Axb2ZXQi1jYkU/view?usp=sharing

{:4_165:} 折腾安卓 在折腾Ubuntu {:5_247:}

有同学用了么,网络好用么?//记得上个固件网络不可用

我刷了,貌似源用的是armhf

318 和324的固件网络都不可用,也不见回复和解决,不知道该怎么处理

网络不行?不会,这两个固件都是测试过的,你在试下android下可能用,如果还不行,联系下售后。

网络可用, 分辨率不能改, 安装beta版测试固件 使用GLMARK2-ES2分数47分, 是否正常?

firefly@firefly:~$ glmark2-es2

glmark2 2014.03+git20150611.fa71af2d

=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-T860
GL_VERSION: OpenGL ES 3.2 v1.r13p0-00rel0-git(9a84806).3f1d5bb367a82ffee80da72cf5fca604

[build] use-vbo=false: FPS: 57 FrameTime: 17.544 ms
[build] use-vbo=true: FPS: 54 FrameTime: 18.519 ms
[texture] texture-filter=nearest: FPS: 53 FrameTime: 18.868 ms
[texture] texture-filter=linear: FPS: 55 FrameTime: 18.182 ms
[texture] texture-filter=mipmap: FPS: 53 FrameTime: 18.868 ms
[shading] shading=gouraud: FPS: 51 FrameTime: 19.608 ms
[shading] shading=blinn-phong-inf: FPS: 52 FrameTime: 19.231 ms
[shading] shading=phong: FPS: 54 FrameTime: 18.519 ms
[shading] shading=cel: FPS: 52 FrameTime: 19.231 ms
[bump] bump-render=high-poly: FPS: 50 FrameTime: 20.000 ms
[bump] bump-render=normals: FPS: 51 FrameTime: 19.608 ms
[bump] bump-render=height: FPS: 54 FrameTime: 18.519 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 50 FrameTime: 20.000 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 30 FrameTime: 33.333 ms
[pulsar] light=false:quads=5:texture=false: FPS: 52 FrameTime: 19.231 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 39 FrameTime: 25.641 ms
[desktop] effect=shadow:windows=4: FPS: 57 FrameTime: 17.544 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 29 FrameTime: 34.483 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 29 FrameTime: 34.483 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 30 FrameTime: 33.333 ms
[ideas] speed=duration: FPS: 50 FrameTime: 20.000 ms
[jellyfish] : FPS: 46 FrameTime: 21.739 ms
[terrain] : FPS: 20 FrameTime: 50.000 ms
[shadow] : FPS: 41 FrameTime: 24.390 ms
[refract] : FPS: 29 FrameTime: 34.483 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 50 FrameTime: 20.000 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 52 FrameTime: 19.231 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 53 FrameTime: 18.868 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 50 FrameTime: 20.000 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 52 FrameTime: 19.231 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 52 FrameTime: 19.231 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 52 FrameTime: 19.231 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 53 FrameTime: 18.868 ms

                              glmark2 Score: 47

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

tboftmtjosk 发表于 2017-4-11 15:45
网络可用, 分辨率不能改, 安装beta版测试固件 使用GLMARK2-ES2分数47分, 是否正常?

您好,请 试一下 glmark2-es2 --off-screen
47分谈不上正常与否,因为glmakr2-es2在桌面环境下测试,受两个瓶颈影响,一个是 显卡的画图能力,一个是X窗口的性能。 X窗口的系统相当操蛋,根本不适合嵌入式处理器。

  1. glmark2-es2 --off-screen, 你测试出来的分数就是GPU的能力了。
  2. 更换wayland或者其他窗口系统,来解决X的瓶颈。

我也在测试,能否qq加个好友, 我的qq是,66218637

另外,版主大哥,我运行 glmark2-es2,提示信息是

OpenGL Information
GL_VENDOR: VMware Inc
GL_RENDERER: Gallium 0.4 on llvmpipe(LLVM 3.8, 128bit)
GL_VERSION: OpenGL ES3.0 Mesa 11.2.0

也就是说,我的板子上,ubuntu桌面终端,运行glmark2-es2, 它使用的是 mesa的软驱动,而不是 Arm的Mali-T860 驱动, 请问怎么着可以切换或者更新这个驱动

用这个版本的固件就可以了啊。

test_dec-gst.sh测试效果还可以, 但是否只有几秒效果

firefly@firefly:~$ sudo test_dec-gst.sh
Setting pipeline to PAUSED …
Pipeline is PREROLLING …
mpi: mpp version: 4f94b40 author: Randy Li [drm]: use mmap64() in native way for GNU Linux target
hal_h264d_api: hal_h264d_init mpp_buffer_group_get_internal used ion In
mpp_buf_slot: new width 1920 height 1080 stride hor 1920 ver 1088 fmt 0
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Got EOS from element “pipeline0”.
Execution ended after 0:00:09.366645753
Setting pipeline to PAUSED …
Setting pipeline to READY …
mpp_thread: MPP_THREAD_STOPPING status set mThread 0xf321d4f0
mpp_dec: mpp_dec_parser_thread exit
mpp_dec: mpp_dec_parser_thread exit ok
mpp_thread: MPP_THREAD_STOPPING status set mThread 0xf321d5f8
mpp_dec: mpp_dec_hal_thread exit ok
Setting pipeline to NULL …
Freeing pipeline …

还有CPU只开了0-3, CPU 4,5 不能用, 也不能开启.

root@firefly:/sys/devices/system/cpu/cpu4# lscpu
Architecture: aarch64
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-3
Off-line CPU(s) list: 4,5
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Model name: ARMv8 Processor rev 4 (v8l)
CPU max MHz: 1416.0000
CPU min MHz: 408.0000
root@firefly:/sys/devices/system/cpu/cpu4# echo 1 > /sys/devices/system/cpu/cpu4/online
-su: echo: write error: Invalid argument
root@firefly:/sys/devices/system/cpu/cpu4# echo 1 > /sys/devices/system/cpu/cpu5/online
-su: echo: write error: Invalid argument

leeonshih 发表于 2017-4-11 17:16
您好,请 试一下 glmark2-es2 --off-screen
47分谈不上正常与否,因为glmakr2-es2在桌面环境下测试,受 …

感谢回覆,QQ没在用,还是在这讨论吧,可以比较多人参与,我用了OFF SCREEN测试, 有272分.
我是使用了板主上面提供的firefly-rk3399 Xubuntu beta版测试固件才能有以下资讯
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-T860
GL_VERSION: OpenGL ES 3.2 v1.r13p0-00rel0-git(9a84806).3f1d5bb367a82ffee80da72cf5fca604

root@firefly:/sys/devices/system/cpu/cpu4# sudo glmark2-es2 --off-screen

glmark2 2014.03+git20150611.fa71af2d

=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-T860
GL_VERSION: OpenGL ES 3.2 v1.r13p0-00rel0-git(9a84806).3f1d5bb367a82ffee80da72cf5fca604

[build] use-vbo=false: FPS: 246 FrameTime: 4.065 ms
[build] use-vbo=true: FPS: 365 FrameTime: 2.740 ms
[texture] texture-filter=nearest: FPS: 418 FrameTime: 2.392 ms
[texture] texture-filter=linear: FPS: 395 FrameTime: 2.532 ms
[texture] texture-filter=mipmap: FPS: 382 FrameTime: 2.618 ms
[shading] shading=gouraud: FPS: 364 FrameTime: 2.747 ms
[shading] shading=blinn-phong-inf: FPS: 301 FrameTime: 3.322 ms
[shading] shading=phong: FPS: 324 FrameTime: 3.086 ms
[shading] shading=cel: FPS: 323 FrameTime: 3.096 ms
[bump] bump-render=high-poly: FPS: 241 FrameTime: 4.149 ms
[bump] bump-render=normals: FPS: 361 FrameTime: 2.770 ms
[bump] bump-render=height: FPS: 417 FrameTime: 2.398 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 338 FrameTime: 2.959 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 230 FrameTime: 4.348 ms
[pulsar] light=false:quads=5:texture=false: FPS: 356 FrameTime: 2.809 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 212 FrameTime: 4.717 ms
[desktop] effect=shadow:windows=4: FPS: 220 FrameTime: 4.545 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 54 FrameTime: 18.519 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 53 FrameTime: 18.868 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 54 FrameTime: 18.519 ms
[ideas] speed=duration: FPS: 87 FrameTime: 11.494 ms
[jellyfish] : FPS: 270 FrameTime: 3.704 ms
[terrain] : FPS: 45 FrameTime: 22.222 ms
[shadow] : FPS: 173 FrameTime: 5.780 ms
[refract] : FPS: 81 FrameTime: 12.346 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 366 FrameTime: 2.732 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 258 FrameTime: 3.876 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 418 FrameTime: 2.392 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 366 FrameTime: 2.732 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 274 FrameTime: 3.650 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 349 FrameTime: 2.865 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 376 FrameTime: 2.660 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 283 FrameTime: 3.534 ms

                              glmark2 Score: 272

=======================================================
root@firefly:/sys/devices/system/cpu/cpu4#

网络不行?不会,这两个固件都是测试过的,你在试下android下可能用,如果还不行,联系下售后

tboftmtjosk 发表于 2017-4-11 18:27
感谢回覆,QQ没在用,还是在这讨论吧,可以比较多人参与,我用了OFF SCREEN测试, 有272分.
我是使用了板主上 …

272分不算高,估计T860的优化工作还会持续做。我昨天试了一下 三星 xu3(exynos5422,T628 的GPU,比T860低一档),glmark2-es2 --off-screen 跑分能到500多。

网络不可用是说的 eth0 不可用,我老久就在论坛上说了。
rk3399 板能发icmp包,但是收不到。(不想说试试 物理硬件的之类的,这显然是arp消息收发没有问题,也就是网络数据收发没有问题,问题9成9就出在收到数据后如果需要匹配MAC地址之类的上面)。我回退了virtd,2月份的代码是好的,后面的都不行。virtd不知道是什么鬼东西,开源开源,也找不到代码,直接放了一个2进制文件。firefly的快点处理,我就不相信这是我一个人遇到的问题而不是系统软件版本问题

把主题忘了,你们在测试glmark2-es2的时候没有发现提示找不到rockchip_dri.so!?如果都没有的话,那我就怀疑淘宝t-firefly官方店残次品没有卖掉,赶上我倒霉啦!如果有的话,那测试也不知道测的到底是啥东西,就是开始打印了T860,后面谁知道会不会转过来还是使用软仿。

水中的鱼 发表于 2017-4-12 21:42
网络不可用是说的 eth0 不可用,我老久就在论坛上说了。
rk3399 板能发icmp包,但是收不到。(不想说试试 …

至少我手上2块板子都没有问题。你有几块板子?都有这个问题?

水中的鱼 发表于 2017-4-12 22:06
把主题忘了,你们在测试glmark2-es2的时候没有发现提示找不到rockchip_dri.so!?如果都没有的话,那我就怀疑 …

测试glmark2-es2提示找不到rockchip_dri.so ??? 贴图来看看,X的log中会有这个提示,这个是没有问题的,我们并没有用到dri,所以没有这个so。

isle 发表于 2017-4-13 09:26
至少我手上2块板子都没有问题。你有几块板子?都有这个问题?

我只买了一块试用,发现有问题,gl不好用,你们说后续解决,但是后面的你们的固件就网络不可用,试用都不能作(wifi太慢,我记得哪里限速,但是现在想改找不到地方),然后在你们论坛上一直提这个问题呀

isle 发表于 2017-4-13 09:26
至少我手上2块板子都没有问题。你有几块板子?都有这个问题?

我只买了一块试用,发现有问题,gl不好用,你们说后续解决,但是后面的你们的固件就网络不可用,试用都不能作(wifi太慢,我记得哪里限速,但是现在想改找不到地方),然后在你们论坛上一直提这个问题呀