blob: 20b5167b4ce3363d069bd138adaf95295e30c270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
CPUTYPE="$(cputype)"
if ( $CPUTYPE == "OMAP3530"); then
rmmod omaplfb
rmmod pvrsrvkm
insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
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
else
echo No SGX hardware, not starting pvrsinit
fi
|