So, I've been away from the sgx stuff for awhile. I had it fully working on a Angstrom 3.x kernel quite a while ago. Now I'm on a beagle black with Debian and kernel 4.4.80.
I'm a bit confused, as I working through the old Graphics_SDK_5_01_01_02 stuff, trying to get it compiled with all kinds of weird errors.
Then I saw these drivers omap5-sgx-ddk-linux, which seem to be for the newer kernels? So I switched to this newer package and I was able to get this driver "pvrsrvkm" compiled and loaded with this message on my beagle:
Sep 11 17:00:59 beaglebone kernel: [ 154.509813] [drm] Initialized pvr 1.14.3699939 20110701 on minor 1
Sep 11 17:00:59 beaglebone kernel: [ 154.626674] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
So the driver is talking to the sgx hardware, good! But if I try any of the sgx demo stuff I get this:
root@beaglebone:/usr/local/bin# ./sgx_init_test
----------------------- Start -----------------------
Try calling PVRSRVConnect with an invalid argument:
PVR:(Error): PVRSRVConnect: Invalid connection. [0, ]
PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
OK
Call PVRSRVConnect with a valid argument:
OK
Try calling PVRSRVEnumerateDevices with invalid puiNumDevices:
PVR:(Error): PVRSRVEnumerateDevices: Invalid params [0, ]
OK
Get number of devices from PVRSRVEnumerateDevices:
OK
.... Reported 1 devices
.... Device Number | Device Type
0000 | PVRSRV_DEVICE_ID_SGX
Attempt to acquire device 0:
OK
Getting SGX Client info
OK
.... ui32ProcessID:992
Display Class API: enumerate devices
./sgx_init_test: symbol lookup error: ./sgx_init_test: undefined symbol: PVRSRVEnumerateDeviceClass
All the sgx demos fail with: undefined symbol: PVRSRVEnumerateDeviceClass.
Why is this? Is the omap5-sgx-ddk-linux the correct driver to be using for my 4.4.80 kernel?
Thanks!