diff options
Diffstat (limited to 'recipes/powervr-drivers/libgles-omap3')
-rwxr-xr-x | recipes/powervr-drivers/libgles-omap3/rc.pvr | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/powervr-drivers/libgles-omap3/rc.pvr b/recipes/powervr-drivers/libgles-omap3/rc.pvr new file mode 100755 index 0000000000..244f480f2c --- /dev/null +++ b/recipes/powervr-drivers/libgles-omap3/rc.pvr @@ -0,0 +1,24 @@ +#!/bin/sh + +#rmmod bc_example +rmmod omaplfb +rmmod pvrsrvkm + +insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko") +#modprobe bc_example +modprobe omaplfb + +pvr_maj=`grep "pvrsrvkm$" /proc/devices | cut -b1,2,3` + +if [ -e /dev/pvrsrvkm ] ; then + rm -f /dev/pvrsrvkm +fi + +mknod /dev/pvrsrvkm c $pvr_maj 0 +chmod 666 /dev/pvrsrvkm + +/usr/bin/pvrsrvinit + +# Set SGX to full speed +devmem2 0x48004b40 w 0 + |