diff --git a/README.md b/README.md index 508f1c1..4d24c92 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,10 @@ Using this project can potentially expose your device to the open internet depen ## How you can help! * Vertical Tilt on the PANv2 doesn't work properly. Only does this on the modified kernel. Need investigation why this happens. +## Why? + +* Most things in life relate to cats somehow. I started this project to track the local feral cat population in my neighborhood using cameras. + ## Prerequisites * Person diff --git a/SD_ROOT/wz_mini/bin/audioplay_t20 b/SD_ROOT/wz_mini/bin/audioplay_t20 new file mode 100755 index 0000000..2b25ccf Binary files /dev/null and b/SD_ROOT/wz_mini/bin/audioplay_t20 differ diff --git a/SD_ROOT/wz_mini/etc/init.d/v3_init.sh b/SD_ROOT/wz_mini/etc/init.d/v3_init.sh index 5b4be3d..6aab79d 100644 --- a/SD_ROOT/wz_mini/etc/init.d/v3_init.sh +++ b/SD_ROOT/wz_mini/etc/init.d/v3_init.sh @@ -19,8 +19,6 @@ echo ' |______| ' -sleep 2 - set -x #lets test this out and see how it goes, patched udhcpc for iCamera diff --git a/SD_ROOT/wz_mini/etc/init.d/wz_cam.sh b/SD_ROOT/wz_mini/etc/init.d/wz_cam.sh index 3d92251..5ce54ca 100644 --- a/SD_ROOT/wz_mini/etc/init.d/wz_cam.sh +++ b/SD_ROOT/wz_mini/etc/init.d/wz_cam.sh @@ -17,12 +17,6 @@ WEB_CAM_BIT_RATE=$(cat /opt/wz_mini/run_mmc.sh | grep "WEB_CAM_BIT_RATE\=" | cut sed -i "s/bitrate :8000/bitrate :$WEB_CAM_BIT_RATE/" "/opt/wz_mini/usr/bin/uvc.config" fi -cd /sys/class/gpio -echo 39 > export -cd gpio39 -echo out > direction -echo 0 > active_low -echo 0 > value echo 1 > /proc/sys/vm/overcommit_memory mount --bind /opt/wz_mini/usr/bin /system/bin @@ -37,8 +31,21 @@ insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/usbcamera.ko cd /system/bin/ /system/bin/ucamera & +sleep 1 + #Set dwc2 ID_PIN driver memory devmem 0x13500000 32 0x001100cc devmem 0x10000040 32 0x0b000096 #wipe the bits to set the ID_PIN devmem 0x10000040 32 0x0b000FFF + +sleep 1 + +cd /sys/class/gpio +echo 39 > export +cd gpio39 +echo out > direction +echo 0 > active_low +echo 0 > value + +/opt/wz_mini/bin/audioplay_t31 /usr/share/notify/binbin.wav 30