echo Starting PVR
- load_driver
-
touch /etc/powervr-esrev
-
SAVED_ESREVISION="$(cat /etc/powervr-esrev)"
devmem2 0x48004B48 w 0x2 > /dev/null
# enable hardware supervised domain power state transition - makes suspend work
devmem2 0x48004B48 w 0x3 > /dev/null
- if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" ] ; then
+ if [ "${ES_REVISION}" != "${SAVED_ESREVISION}" -o ! -e /etc/powervr-kmodver ] ; then
sdkver=`echo /usr/lib/ES${ES_REVISION}.0/libGLESv2.so.1.* | sed -e 's:.*lib.*.so.\(.*\).*:\1:'`
echo -n "Starting SGX fixup for"
echo " ES${ES_REVISION}.x (${sdkver})"
if [ "${sdkver}" != "${oldkmod}" ]; then
echo "Switching driver to ${sdkver}"
echo "${sdkver}" > /etc/powervr-kmodver
- unload_driver
- load_driver
fi
fi
+
+ load_driver
+
if test -x /usr/bin/pvrsrvinit; then
/usr/bin/pvrsrvinit
elif test -x /usr/bin/pvrsrvctl; then
done
# Attempt to create proper library softlinks
- for sofile in $(find ${S} -name "lib*Open*.so") $(find ${S} -name "lib*srv*.so") $(find ${S} -name "lib*gl*.so") $(find ${S} -name "libpvr*.so") $(find ${S} -name "lib*GL*.so"); do
+ for sofile in $(find ${S} -name "lib*.so"); do
if [ "$(readlink -n ${sofile})" = "" ] ; then
mv $sofile ${sofile}.${IMGPV}
ln -sf $(basename ${sofile}.${IMGPV}) ${sofile}