From a1a214203b03170b1cf8688e20989eb77ed1974d Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Wed, 18 May 2022 12:45:53 -0700 Subject: [PATCH] revise webcam init --- SD_ROOT/wz_mini/etc/init.d/wz_cam.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 3441b26..7f5bce1 100644 --- a/SD_ROOT/wz_mini/etc/init.d/wz_cam.sh +++ b/SD_ROOT/wz_mini/etc/init.d/wz_cam.sh @@ -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" 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 insmod /system/driver/avpu.ko