diff options
author | Koen Kooi <koen@openembedded.org> | 2009-01-04 17:09:50 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-01-04 17:09:50 +0100 |
commit | 5437295c588dbf0ea6e95ce98b1ea8b7bc202d68 (patch) | |
tree | 74ead6e154eeaf839d1838985d6fef854666e1f4 /packages/powervr-drivers/libgles-omap3/rc.pvr | |
parent | 299f1c2aba77996286e8d1030726b3acb5ce2bfc (diff) |
libgles omap3: use insmod in initscript instead of modprobe to avoid segfault
Diffstat (limited to 'packages/powervr-drivers/libgles-omap3/rc.pvr')
-rwxr-xr-x | packages/powervr-drivers/libgles-omap3/rc.pvr | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/powervr-drivers/libgles-omap3/rc.pvr b/packages/powervr-drivers/libgles-omap3/rc.pvr new file mode 100755 index 0000000000..7c23603280 --- /dev/null +++ b/packages/powervr-drivers/libgles-omap3/rc.pvr @@ -0,0 +1,20 @@ +#!/bin/sh + +rmmod bc_example +rmmod omaplfb +rmmod pvrsrvkm + +insmod $(find /lib/modules/$(uname -r) -name "pvrsrvkm.ko") +modprobe -f bc_example +modprobe -f 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 + +/usr/bin/pvrsrvinit + |