AM335x SGX driver issue (pvrsrvctl: no such file or directory)

I’ve been struggling with this for a few days now and it feels like it’s time to ask for some help :slight_smile: I originally posted this to the Ti e2e forum, but they have told me they do not provide support assistance for Angstrom :frowning:

I would like to use the OpenGLES SDK for software development. I am targeting a Chipsee 1000 x 600 7" BBB cape, using an Angstrom build provided by Chipsee, which I’m trying to modify to include the SGX driver.

I’ve followed the installation guide carefully, but at the end of installing the am335x demo on the target device, i get this error:
./rc.pvr: line 52: /usr/local/bin/pvrsrvctl: No such file or directory

Weirdly, pvrsrvctl does seem to be in that directory, but it doesn’t execute. When I try, I get the same error as above! I also get this error if I try and execute any of the demos, even after a reboot, after doing depmod -a.

Running lsmod after executing the am335x demo program does seem to indicate pvrsrvkm is running, but there’s no sign of omapflb:

The steps i’m following to modify the Chipsee build i have are:

1. Build the custom Chipsee Angstrom kernel with module support
This includes a “make 0=am335x am335x_evm” command that creates the MLO and u-boot.img files

2. Build and install the SGX module
Using “make OMAPES=8.x all” and “make OMAPES=8.x install”… having modified the Rules.make paths first… it complains if i haven’t already built the kernel with module support…

3. Rebuild and install the modules
In the root of the kernel source directory, “make modules INSTALL_MOD_PATH=/path/to/filesystem” and “make modules_install INSTALL_MOD_PATH=/path/to/filesystem”

4. Package it up and flash it to the target

5. Boot into new image, disable Window Manager and then run /etc/init.d/335x-demo

I transferred onto the target and have executed that, with these results:

WSEGL settings