revise webcam init

This commit is contained in:
Alfonso Gamboa 2022-05-18 12:45:53 -07:00
parent b169cc6efb
commit a1a214203b

View File

@ -17,6 +17,13 @@ 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" sed -i "s/bitrate :8000/bitrate :$WEB_CAM_BIT_RATE/" "/opt/wz_mini/usr/bin/uvc.config"
fi 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 mount --bind /opt/wz_mini/usr/bin /system/bin
insmod /system/driver/avpu.ko insmod /system/driver/avpu.ko