summaryrefslogtreecommitdiffstats
path: root/loadDriver.sh
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2016-12-06 15:20:06 +0100
committerChristian Gromm <christian.gromm@microchip.com>2016-12-06 15:20:06 +0100
commit0ffc1ba8b64287653c59a6ab8beaad6de6029935 (patch)
tree678122f7c8a04bbbb11c92817681e28755fbd10c /loadDriver.sh
parent70458963c48662012af856b56676260150f124c8 (diff)
update NetworkManager to v3.0.4
This patch updates the NetworkManager binary to version v3.0.4. Additionally, configuration scripts are added and updated to match the camera setup. Change-Id: I264f5bc88b120269bda576267e2ba7acfb6c2ec7 Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Diffstat (limited to 'loadDriver.sh')
-rwxr-xr-xloadDriver.sh20
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