summaryrefslogtreecommitdiff
path: root/recipes/powervr-drivers/libgles-omap3-3.01.00.02/rc.pvr
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/powervr-drivers/libgles-omap3-3.01.00.02/rc.pvr')
-rwxr-xr-xrecipes/powervr-drivers/libgles-omap3-3.01.00.02/rc.pvr10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/powervr-drivers/libgles-omap3-3.01.00.02/rc.pvr b/recipes/powervr-drivers/libgles-omap3-3.01.00.02/rc.pvr
index 1b3c274593..2d34c4c0bc 100755
--- a/recipes/powervr-drivers/libgles-omap3-3.01.00.02/rc.pvr
+++ b/recipes/powervr-drivers/libgles-omap3-3.01.00.02/rc.pvr
@@ -1,4 +1,8 @@
#!/bin/sh
+PATH=$PATH:/usr/sbin
+
+BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
+YRES="$(fbset | grep geom | awk '{print $3}')"
CPUTYPE="$(cputype)"
@@ -18,6 +22,12 @@ if [ "$1" = "stop" ]; then
exit 0
fi
+if [ $BITSPERPIXEL = "32" ] ; then
+ fbset -rgba 8/16,8/8,8/0,8/24
+fi
+
+fbset -vyres $(expr $YRES \* 3)
+
if [ $CPUTYPE = "OMAP3530" ]; then
echo Starting PVR
insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")