[beagleboard] SGX driver and kernel 4.4

2017-09-12 Thread terryfryar via BeagleBoard
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
| 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!


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/ea8184e1-4c06-49cc-bb0e-81d368e5cdd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] sgx and kernel 4.4

2017-09-12 Thread terryfryar via BeagleBoard
Using omap5-sgx-ddk-linux sgx driver package with Debian 4.4.80 kernel. 
 pvrsrvkm loads fine, but any of the sgx demo programs fails:

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
| 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


Why is this?  Is this the correct driver?

Thanks!

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/bd3e310b-a73d-42ac-abc9-2dba5079287b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Beagle black, SGX, OpenGL, and Graphics SDK with 3.8 kernel....no luck...

2014-10-06 Thread terryfryar via BeagleBoard
Well, I have the SGX stuff working with the 3.8 kernel.  I do also have Qt 
5.3.2 built and working.  I have not had a chance to try the opengl 
platform on qt yet though.  This 3.8 kernel is using the 
Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.12-beaglebone-2013.09.05.img 
rootfs.  I cross compiled on a 12.04 ubuntu host with the CodeSourcery 
toolchain.

So, for the TI 4.10.00.01 graphics SDK to work with the 3.8 kernel, there 
are several patches that will be required.  Some of these I got off the TI 
sitara forum, and the others I developed myself by backporting the 
5.01.01.01 graphics sdk.  I can tell you that without the patches, the 4.10 
sdk will never work with 3.8!  I am using the RobertCNelson 3.8 kernel at 
the moment, but I am pretty sure the official beagle repository 3.8 
kernel will work also.  There are changes to get the device node added, but 
there are also some timer related changes.  I will try to release some 
patch files later, once I get things tidied up a bit.  

I am able to run all the 4.10 sdk ogles demos and they seem to run pretty 
smooth on the boneblack, and I am running them using a 7 LCD...looks 
pretty good!  This is using soft floating point at the moment, so there is 
room for improvement.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Beagle black, SGX, OpenGL, and Graphics SDK with 3.8 kernel....no luck...

2014-10-03 Thread terryfryar via BeagleBoard
So, for over a week I have been trying to get Qt 5.3.2 working with OpenGL 
on a BBB with a 3.8 kernel.  So far, I haven't made much progress even 
though Ive spent many hours.

I am stuck just trying to get OpenGL/SGX working on the black using the TI 
graphics SDK.  I have tried 4 different 3.8 kernels, including the official 
ones as well as RobertCNelson's stuff.  I have applied about 10 patches to 
the graphics SDK and the kernel.  I can get the Graphics SDK built and 
installed, but I keep coming back to this:

[5.263934] PVR: PVRCore_Init
[5.270060] PVR: PVRSRVDriverProbe(pDevice=df0c2e00)
[5.270176] PVR: SGX register base: 0x5600
[5.270189] PVR: SGX register size: 16777215
[5.270200] PVR: SGX IRQ: 37
[5.270233] PVR: EnableSystemClocks: Enabling System Clocks
[5.270283] PVR_K:(Error): EnableSystemClocks: Couldn't get GPTIMER11 
functional clock [512, opt/Graphics_SDK_4_10_00_   
 01/GFX_Linux_KM/services4/system/ti335x/sysutils_linux.c]
[5.270305] PVR_K:(Error): SysInitialise: Failed to Enable system clocks 
(171) [481, opt/Graphics_SDK_4_10_00_01/GFX_L   
 inux_KM/services4/system/ti335x/sysconfig.c]
[5.274037] PVR: PVRCore_Init: major device 240

When the pvrsvrkm driver tries to load, a clk_get() function fails in the 
driver and I cannot for the life of me figure out why?  It's unclear 
exactly what timer this is, as the error indicates GPTIMER11, but inside 
the driver code it's referring to gpt7_fck.  I assume this is timer7 in 
the Sitara?

I have recompiled several versions of 3.8 kernels many, many times.  Ive 
applied several patches.  I have tried cutting out device tree objects and 
disabling many things to no avail.  I have seen 3 or 4 folks who supposedly 
have gotten this TI pvrsrvkm and omaplfb driver to load and some of the 
test graphics apps to actually workI'd really like to know how they did 
it?

The patches I have I collected from an FSE at TI, as well as some guy named 
Alexander.  These apply to the Graphics SDk and the kernel, but nothing I 
have tried seems to get rid of this clock issue?

I have built the graphics SDK with make BUILD=debug OMAPES=8.x PM_RUNTIME=1 
all, and left out PM_RUNTIME, which seems to affect which portion of init 
code in the driver is executed...but I get another clock error, so no dice!

Does anyone have a 3.8 kernel with OpenGL working?  I tried installing the 
packaged drivers with Angstrom..but had no success there either.  I know TI 
is only supporting the 3.12 kernel...but there are cape issues there, plus 
I have Xenomai running with 3.8 and I hate to jump to 3.12.

Anyone have any success running OpenGL on 3.8 with a bone-black???

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.