Firefly开源社区

打印 上一主题 下一主题

how to enable firefly rk3288 reload openGL/CL feature?

97

积分

0

威望

0

贡献

游客

积分
97

how to enable firefly rk3288 reload openGL/CL feature?

发表于 2016-9-28 17:13:56      浏览:9518 | 回复:8        打印     [复制链接] 楼主
本帖最后由 dalton.lai 于 2016-9-28 17:19 编辑

hi,

1. I have compiled the kernel 3.10 and copy compiled mali_kbase.ko into /system/lib/modules.

2. And, copy below Midgard GPU User-Space Binary Drivers into /usr/lib.
    mali-t76x_r5p0-06rel0_linux_1+fbdev.tar.gz
    mali-t76x_r6p0-02rel0_linux_1+fbdev.tar.gz

3. lsmod to check if the mali_kbase.ko have loaded as below
   Module                  Size  Used by
   mali_kbase            240797  0

4. make sure we have full permission to access:
    /dev/mali0
    /dev/fb*
    mali_kbase.ko
    Midgard GPU User-Space Binary Drivers

5. check the kernel space driver in kernel source (seems modified from TX011-SW-99002-r6p0-02rel0.tgz)

6. follow below thread to setup fb
http://bbs.t-firefly.com/forum.p ... mp;highlight=driver
╭────
│ sudo -s
│ cat << EOF >/etc/init/fbset.conf
│ # fbset - run fbset to set truecolor fbmo
│ description "run fbset before lightdm"
│ start on startup and started udev or starting lightdm
│ task
│ script
│     [ -x /bin/fbset ] && /bin/fbset -a -nonstd 1 -depth 32 -rgba "8/0,8/8,8/16,8/24"
│ end script
│ EOF
│ cat << EOF >/etc/X11/xorg.conf
│ Section "Screen"
│     Identifier "Default Screen"
│     DefaultDepth 24
│ EndSection
│ EOF
╰────

But, it seems still not work:
firefly@firefly:~$ sudo clinfo
I: ICD loader reports no usable platforms

firefly@firefly:~$ sudo glmark2
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
=======================================================
    glmark2 2012.08
=======================================================
    OpenGL Information
    GL_VENDOR:     Mesa Project
    GL_RENDERER:   Software Rasterizer
    GL_VERSION:    2.1 Mesa 10.1.3
=======================================================

firefly@firefly:~$ glmark2-es2
libEGL warning: GLX/DRI2 is not supported
libEGL warning: DRI2: failed to authenticate
Error: eglChooseConfig() didn't return any configs
Error: Error: Could not get a valid XVisualInfo!
Error: Error: Couldn't create X Window!
Error: main: Could not initialize canvas

So, any one can help to guide me to debug for this problem?
Thanks a lot.
回复

使用道具 举报

97

积分

0

威望

0

贡献

游客

积分
97
发表于 2016-10-9 17:33:37      沙发
hi isle,

thanks a lot for your information.
I have test with Firefly-rk3288_Ubuntu_1604_2016_08291523_Beta.img on reload board, and openCL/openGL ES both works well, except VGA i2c4 keep prompting in console to lag the system. (appended logs as below)

[ 1722.064489] rk3x-i2c ff160000.i2c: timeout, ipd: 0x80, state: 2
[ 1722.164485] rk3x-i2c ff160000.i2c: timeout, ipd: 0x80, state: 2
[ 1732.284885] rk3x-i2c ff160000.i2c: timeout, ipd: 0x80, state: 2

anyway, it works, thank you.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表