diff options
Diffstat (limited to 'loadDriver.sh')
-rwxr-xr-x | loadDriver.sh | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/loadDriver.sh b/loadDriver.sh index f0ce5b7..2993614 100755 --- a/loadDriver.sh +++ b/loadDriver.sh @@ -5,9 +5,9 @@ then echo Warning you are not root, expect problems! fi -if [ -d ../../../LinuxDriver ] +if [ -d /home/pi/appsteam/trunk/LinuxDriver ] then - cd ../../../LinuxDriver + cd /home/pi/appsteam/trunk/LinuxDriver echo Switched to folder:$(pwd) else echo Searching driver in folder:$(pwd) @@ -29,6 +29,9 @@ lsmod | grep "^hdm_usb\>" > /dev/null && lsmod | grep "^aim_sound\>" > /dev/null && rmmod aim_sound && echo "unloaded aim_sound" +lsmod | grep "^aim_v4l2\>" > /dev/null && + rmmod aim_v4l2 && echo "unloaded aim_v4l2" + lsmod | grep "^aim_cdev\>" > /dev/null && rmmod aim_cdev && echo "unloaded aim_cdev" @@ -39,7 +42,12 @@ lsmod | grep "^mostcore\>" > /dev/null && rmmod mostcore && echo "unloaded mostcore" echo +#load V4L support +lsmod | grep "^media\>" || + insmod /lib/modules/$(uname -r)/kernel/drivers/media/media.ko +lsmod | grep "^videodev\>" || + insmod /lib/modules/$(uname -r)/kernel/drivers/media/v4l2-core/videodev.ko #load MOST Kernel modules insmod mostcore.ko && echo "loaded mostcore" @@ -49,7 +57,10 @@ insmod aim_cdev.ko && echo "loaded aim_cdev" insmod aim_network.ko && echo "loaded aim_network" [ -e aim_sound.ko ] && - insmod aim_sound.ko && echo "loaded sound" + insmod aim_sound.ko && echo "loaded sound" + +[ -e aim_v4l2.ko ] && + insmod aim_v4l2.ko && echo "loaded v4l2" [ -e hdm_usb.ko ] && insmod hdm_usb.ko && echo "loaded hdm_usb" @@ -78,7 +89,7 @@ SetAsyncChannel() CH_NAME=$2 DIR=dir_$3 BUFSIZE=$4 - + CHANNEL=$DEVS/$MDEV/$CH_NAME [ -e $CHANNEL/set_buffer_size ] || return 1 @@ -110,7 +121,6 @@ StartupEth() then echo Starting up $METH ifconfig $METH up - ETH_ALREADY_SET="" return 2 fi |