Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This tutorial describe how to run Qt5 with OpenGL ES on RK3288 Vyasa with Opensource Mali-t760 drivers

All necessary patches for U-Boot, Linux and Buildroot is submitted in Mainline.

Table of Contents
BSP Build

Build the BSP from here

MALI

Info
bash> git clone https://github.com/openedev/rockchip_forwardports
bash> cd rockchip_forwardports
bash> git checkout -b working origin/working
bash> bash build.sh

Write SD

Setup SD card from here and copy mali_kbase.ko

Info
bash> cp /path/to/rockchip_forwardports/midgard_r13p0/mali_kbase.ko /media/jagan/<mount_point>/root
bash> syncbash> umount /dev/mmcblk0*

Qt5 Running demo video

Info
Welcome to VYASA RK3288!
vyasa-rk3288 login: root
# modprobe -a rockchipdrm
[   29.856111] rockchip-drm display-subsystem: bound ff930000.vop (ops vop_component_ops [rockchipdrm])
[   29.866742] rockchip-drm display-subsystem: bound ff940000.vop (ops vop_component_ops [rockchipdrm])
[   29.877119] dwhdmi-rockchip ff980000.hdmi: Detected HDMI TX controller v2.00a with HDCP (DWC MHL PHY)
[   29.888348] rockchip-drm display-subsystem: bound ff980000.hdmi (ops dw_hdmi_rockchip_ops [rockchipdrm])
[   29.898973] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   29.906374] [drm] No driver support for vblank timestamp query.
[   29.950736] Console: switching to colour frame buffer device 128x48
[   30.010803] rockchip-drm display-subsystem: fb0:  frame buffer device
[   30.053757] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 0
# modprobe -a governor_simpleondemand
# insmod mali_kbase.ko
[   40.129975] mali_kbase: loading out-of-tree module taints kernel.
[   40.141904] W : [File] : /root/JSpace/code/vyasa/rockchip_forwardports/midgard_r13p0/platform/rk/mali_kbase_config_rk.c; [Line] : 107; [Fu
nc] : kbase_platform_rk_init(); power-off-delay-ms not available.
[   40.162426] mali ffa30000.gpu: GPU identified as 0x0750 r0p0 status 1
[   40.170021] mali ffa30000.gpu: Probed as mali0
# export QT_QPA_EGLFS_INTEGRATION=none
# cd /usr/lib/qt/examples/opengl/
README         legacy         paintedwindow
hellowindow    opengl.pro     qopenglwindow
# ./hellowindow/hellowindow
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).