DESCRIPTION = "libGLES for the omap3"
LICENCE = "proprietary-binary"
+RDEPENDS_${PN} += "devmem2"
+
#HACK! These are binaries, so we can't guarantee that LDFLAGS match :(
INSANE_SKIP_${PN} = True
INSANE_SKIP_${PN}-tests = True
# voila!
SRC_URI = "file://OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin \
+ file://cputype \
file://rc.pvr \
file://chameleonman.desktop \
file://evilskull.desktop \
cp -pP ${BINLOCATION}/*.so* ${D}${libdir}
install -d ${D}${bindir}/
+ install -m 0755 ${WORKDIR}/cputype ${D}${bindir}/
+
cp -pP ${BINLOCATION}/*_test ${D}${bindir}/
cp -pP ${BINLOCATION}/gl2info ${D}${bindir}/
cp -pP ${BINLOCATION}/gles1test1 ${D}${bindir}/
--- /dev/null
+#!/bin/sh
+devmem2 0x4800244c | \
+grep 'Value at address' | \
+sed -e 's/.*): //' | \
+sed -e 's/0x5C00/OMAP3503/' -e 's/0x1C00/OMAP3515/' -e 's/0x4C00/OMAP3525/' -e 's/0x0C00/OMAP3530/'
#!/bin/sh
-#rmmod bc_example
-rmmod omaplfb
-rmmod pvrsrvkm
+CPUTYPE="$(cputype)"
-insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
-#modprobe bc_example
-modprobe omaplfb
+if ( $CPUTYPE == "OMAP3530"); then
-pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
+ rmmod omaplfb
+ rmmod pvrsrvkm
-if [ -e /dev/pvrsrvkm ] ; then
- rm -f /dev/pvrsrvkm
-fi
+ insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
+
+ modprobe omaplfb
+
+ pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3`
-mknod /dev/pvrsrvkm c $pvr_maj 0
-chmod 666 /dev/pvrsrvkm
+ if [ -e /dev/pvrsrvkm ] ; then
+ rm -f /dev/pvrsrvkm
+ fi
-/usr/bin/pvrsrvinit
+ mknod /dev/pvrsrvkm c $pvr_maj 0
+ chmod 666 /dev/pvrsrvkm
-# Set SGX to full speed
-devmem2 0x48004b40 w 0
+ /usr/bin/pvrsrvinit
+
+ # Set SGX to full speed
+ devmem2 0x48004b40 w 0
+else
+ echo No SGX hardware, not starting pvrsinit
+fi