avafinger / mali-fbdev-stress-test-tools Goto Github PK
View Code? Open in Web Editor NEWMali framebuffer stress test tools and some experiments ( fbdev ) - RK3399 / H2+ - OpenGLES2
Mali framebuffer stress test tools and some experiments ( fbdev ) - RK3399 / H2+ - OpenGLES2
Hi
So I've been working on getting the Mali blob to run on our target board; OrangePi Zero H3 Plus2.
The goal is to get FBDEV acceleration using the existing binary blobs, currently a 800x800 LCD running over HDMI.
The build environment is Buildroot which is compiling kernel 5.4.13, Mali kernel drivers are the Mripard r6p2, userspace is the corresponding Bootlin blob for fbdev.
CMA and DMA_CMA flags are enabled, CMA is set at 128mb, FBDEV_OVERALLOC is 200.
Device tree is mainline and the device is probed successfully by mdev:
Starting mdev... OK
[ 2.942554] mali: loading out-of-tree module taints kernel.
[ 2.972766] Allwinner sunXi mali glue initialized
[ 2.979874] Mali:
[ 2.979882] Found Mali GPU Mali-400 MP r1p1
[ 2.986758] Mali:
[ 2.986762] 2+0 PP cores initialized
[ 2.993136] Mali:
[ 2.993141] Mali device driver loaded
I forked the glmark2-es2-fbdev code to my github and patched the waf libraries and config to compile under python3 so I could build a buildroot package - I added the following calls to the waf build script:
GLMARK2_FBDEV_CONF_OPTS += \
--prefix=/usr \
--with-flavors=$(subst $(space),$(comma),$(GLMARK2_FBDEV_FLAVORS)) \
--with-mali \
--no-werror
--with-mali as it seemed like an appropriate flag, --no-werror just to deal with some compiler warnings.
The package is now compiling and being installed to the target file system. However when I run I get the following:
# glmark2-es2-fbdev
=======================================================
glmark2 2014.03+git20150611.fa71af2d
=======================================================
OpenGL Information
GL_VENDOR: ARM
GL_RENDERER: Mali-400 MP
GL_VERSION: OpenGL ES 2.0
=======================================================
[build] use-vbo=false:
Screen goes black.
The system HARD locks, chip gets hot, nothing works! Cant force quit.
I tried again with nohup, to see if we were at 100% cpu but nohup hangs in the same way.
I'm a bit lost now, any ideas on how I can diagnose this one (or even check if the Mali driver is working?)
Thanks
Do you know how to get the fbdev driver installed on A64 hardware (like the NanoPI A64)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.