Skip to content

Running 3D applications on HSDK

Alexey Brodkin edited this page Apr 11, 2018 · 21 revisions

chocolate doom

fbset > /etc/fb.modes && SDL_NOMOUSE=1 chocolate-doom

kmscube

MESA_LOADER_DRIVER_OVERRIDE=imx-drm kmscube --device /dev/dri/card1

glxgears

X&
DISPLAY=:0 glxgears

Weston

Generic preparation:

mkdir -m 0700 /tmp/weston
export XDG_RUNTIME_DIR=/tmp/weston
export MESA_LOADER_DRIVER_OVERRIDE=imx-drm

With X11 back-end:

export DISPLAY=:0
X&
weston&

With DRM back-end via GPU:

weston --backend=drm-backend.so --tty=63&

With DRM back-end via software renderer:

export MESA_LOADER_DRIVER_OVERRIDE=kms_swrast
weston --backend=drm-backend.so --tty=63

or use Pixman SW renderer:

weston --backend=drm-backend.so --tty=63 --use-pixman

In graphical terminal window execute:

glmark2-es2-wayland

To start screen capturing press Windows-R keys on the keyboard attached to the target:

[00:00:30.617] starting recorder for output screen0, file capture.wcap

To stop press Windows-R again. This will produce capture.wcap:

[00:00:38.640] stopping recorder, total file size 1M, 113 frames

This will produce file capture.wcap in folder where Wayland was started. Now to decode real frames from this blob say wcap-decode --all capture.wcap and then check wcap-frame-X.png.

Xserver

Simple DRM device (no 3D acceleration)

cat /etc/Xorg/xorg.conf
Section "Device"
        Identifier      "Driver0"
        Screen          0
        Driver          "modesetting"
        Option          "kmsdev" "/dev/dri/card1"
EndSection

Note kmsdev must point to the bitstreamer device! For example on HSDK board /dev/dri/card0 refers to Vivante GPU, so we have to specify /dev/dri/card1 instaead.

Clone this wiki locally