mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-25 06:47:18 +00:00
webcam mode update script
This commit is contained in:
parent
15f69c8005
commit
f5dc2f673a
@ -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
|
||||
|
BIN
SD_ROOT/wz_mini/bin/audioplay_t20
Executable file
BIN
SD_ROOT/wz_mini/bin/audioplay_t20
Executable file
Binary file not shown.
@ -19,8 +19,6 @@ echo '
|
||||
|______|
|
||||
'
|
||||
|
||||
sleep 2
|
||||
|
||||
set -x
|
||||
|
||||
#lets test this out and see how it goes, patched udhcpc for iCamera
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user