Headless OpenGL ES on the PocketBeagle

186 views
Skip to first unread message

wga...@gmail.com

unread,
Mar 29, 2020, 1:11:49 PM3/29/20
to BeagleBoard
I would like the use the SGX graphics accelerator on the PocketBeagle to do some rendering to a frame buffer using OpenGL ES.

I have followed the steps for the BBB to get the graphics driver working, but I am hitting a dead end here:

root@beaglebone:/opt# /etc/init.d/rc.pvr start
PVR:(Error): PVRSRVBridgeCall: Failed to access device.  Function ID:3223086861 (strerror returns no value.). [0, ]
PVR:(Error): OpenServices: PVRSRVBridgeCall failed. [0, ]
PVR:(Error): PVRSRVInitSrvConnect: PVRSRVConnect failed [0, ]
PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (4) [0, ]
/usr/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=PVRSRV_ERROR_INIT_FAILURE)

When I do a lsmod, I can see the pvrsrvkm module is loaded, but other than that I don't have much of an idea of what's going on.

I'm using Debian 10 with the 4.19 kernel, which I downloaded from Robert's website.

Any pointers would be much appreciated.

Robert Nelson

unread,
Mar 29, 2020, 1:14:17 PM3/29/20
to Beagle Board
Yeah, just use the stretch iot image (with v4.14.x-ti kernel)

https://elinux.org/Beagleboard:Latest-images-testing#Debian_9_.28Stretch.29_IoT

On first bootup, the sgx modules and libraries get setup..

Sorry, I haven't spent any time on Buster/4.19.x-ti with sgx yet..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Will Gallia

unread,
Mar 29, 2020, 2:49:27 PM3/29/20
to BeagleBoard
Ok, just gave it a try and works great.

Thanks Robert, all your work is soooo much appreciated.

Will Gallia

unread,
Apr 5, 2020, 1:31:56 PM4/5/20
to BeagleBoard
Hi Robert, I'm having trouble creating an OpenGL context using egl. My programs are compiling, but I can't get a valid context to work with. I was wondering if you had a test suite that you use to check you can talk with the SGX? Any pointers would be gratefully appreciated.


On Sunday, 29 March 2020 18:14:17 UTC+1, RobertCNelson wrote:

Robert Nelson

unread,
Apr 5, 2020, 2:49:03 PM4/5/20
to Beagle Board
On Sun, Apr 5, 2020 at 12:32 PM Will Gallia <wga...@gmail.com> wrote:
>
> Hi Robert, I'm having trouble creating an OpenGL context using egl. My programs are compiling, but I can't get a valid context to work with. I was wondering if you had a test suite that you use to check you can talk with the SGX? Any pointers would be gratefully appreciated.

Maybe https://github.com/powervr-graphics/Native_SDK ?

ps, this is pre-installed on:

https://rcn-ee.net/rootfs/bb.org/testing/2020-04-04/stretch-imgtec/

Hoping to make it an official blend. ;)

jonnymo

unread,
Apr 5, 2020, 11:15:03 PM4/5/20
to Beagle Board
You can use glxgears to see if you are able to get a OpenGL-ES window to open.

Also, you can use glmark2-es2 to run tests on the graphics to get performance data

This works on that fruit board, so it should work with a BB.

Cheers,

Jon

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYg20T7K_4dEPwp%3D50PeX5vWHhNXrw%3D_Erij7Mh8ScMtJg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages