OpenGL SGX-PVR driver

Hello!
Im working on custom Hardware, related to Beaglebone black. The main part is equal to this board, so I hope you can help me.
The major hardware difference is, there is a LVDS transmitter in place of the HDMI transmitter.
The major software difference is: I’m using an old ELDK 5.3 toolchain and RootFS - details follow.

My problem is:
I build the kernel and the SGX modules, everything seems fine, including the installation on target. But executing tests, i.e. pvr2d_test, sgx_init_test, sgx_*_test causes segmentation faults.
(And I dont’t know if this correlates with my other issue: Qt5 EGLFS apps show nothing but a black screen without error messages)

My steps are:
I’m following http://elinux.org/BeagleBoardDebian#SGX_BeagleBone.2FBeagleBone_Black

`
git clone https://github.com/RobertCNelson/bb-kernel.git
cd bb-kernel
git checkout origin/am33x-v4.1 -b bb300
git am …/0001-add-bb300-board-support.patch
./build_kernel.sh
./sgx_build_modules.sh

sudo tar xf deploy/GFX_5.01.01.02_es8.x.tar.gz -C /tftpboot/bb300/linux/rootfs/
sed -i -e ‘s\distro=$(lsb_release -si)\distro=Ubuntu’ /tftpboot/bb300/linux/rootfs/opt/gfxinstall/sgx-install.sh
sudo tar xf deploy/4.1.3324-modules.tar.gz -C /tftpboot/bb300/linux/rootfs/ --exclude=lib/modules/4.1.3324/kernel/crypto --exclude=lib/modules/4.1.3324/kernel/drivers/bluetooth --exclude=lib/modules/4.1.3324/kernel/net/bluetooth

`

0001-add-bb300-board-support.patch:

diff --git a/.gitignore b/.gitignore
index c16aff6…7cfbbe2 100644
— a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
.CC
recipe.sh
-system.sh
+#system.sh
KERNEL
dl
deploy
@@ -12,3 +12,4 @@ patches/previous_defconfig
patches/bisect_defconfig
patches/HEAD_omap2plus_defconfig
patches/MOD_omap2plus_defconfig
+patches/ref_bb300_defconfig
diff --git a/build_kernel.sh b/build_kernel.sh
index 10a58b1…0fd4cb8 100755
— a/build_kernel.sh
+++ b/build_kernel.sh
@@ -71,10 +71,10 @@ make_kernel () {

unset address

  • ##uImage, if you really really want a uImage, zreladdr needs to be defined on the build line going forward…
  • ##make sure to install your distro’s version of mkimage
  • #image=“uImage”
  • #address=“LOADADDR=${ZRELADDR}”
  • #uImage, if you really really want a uImage, zreladdr needs to be defined on the build line going forward…
  • #make sure to install your distro’s version of mkimage
  • image=“uImage”
  • address=“LOADADDR=${ZRELADDR}”

cd “${DIR}/KERNEL” || exit
echo “-----------------------------”
diff --git a/patch.sh b/patch.sh
index 4e9a8b5…7634dd4 100644
— a/patch.sh
+++ b/patch.sh
@@ -612,6 +612,23 @@ sgx () {
fi
}

+bb300 () {

  • echo “dir: bb300”
  • #regenerate=“enable”
  • if [ “x${regenerate}” = “xenable” ] ; then
  • start_cleanup
  • fi

Daniel, hello.
You can look to my message: https://groups.google.com/d/msg/beagleboard/zvzjtzLGOcc/3oOIx2ecCQAJ
I’m using factory bbb, but my goal was Qt5 + QtQuick2. And I solve this problem.
May be you can extract some useful information from my work.
Good luck.