mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-10-11 01:48:05 +00:00
add webcam mode and change rtsp server configs, add avconv for youtube rtmp testing
This commit is contained in:
8
SD_ROOT/wz_mini/etc/init.d/v3_init.sh
Executable file → Normal file
8
SD_ROOT/wz_mini/etc/init.d/v3_init.sh
Executable file → Normal file
@@ -121,6 +121,14 @@ if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "DEBUG_ENABLED\=") == "DEBUG_ENABLED\
|
||||
sed -i '/app_init.sh/,+3d' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/^# Run init/i/bin/sh /etc/profile' /opt/wz_mini/tmp/.storage/rcS
|
||||
touch /tmp/dbgflag
|
||||
else
|
||||
|
||||
if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "ENABLE_WEB_CAM\=") == "ENABLE_WEB_CAM\=\"true\"" ]]; then
|
||||
sed -i '/app_init.sh/,+3d' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/^# Run init/i/opt/wz_mini/etc/init.d/wz_cam.sh' /opt/wz_mini/tmp/.storage/rcS
|
||||
touch /tmp/dbgflag
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if ! [[ -e /tmp/dbgflag ]]; then
|
||||
|
24
SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
Normal file
24
SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
exec 1> /opt/wz_mini/log/wz_cam.log 2>&1
|
||||
|
||||
|
||||
mount --bind /opt/wz_mini/usr/bin /system/bin
|
||||
insmod /system/driver/avpu.ko
|
||||
insmod /system/driver/tx-isp-t31.ko isp_clk=220000000
|
||||
insmod /system/driver/sensor_gc2053_t31.ko
|
||||
insmod /system/driver/audio.ko
|
||||
insmod /opt/wz_mini/lib/modules/libcomposite.ko
|
||||
insmod /opt/wz_mini/lib/modules/videobuf2-vmalloc.ko
|
||||
insmod /opt/wz_mini/lib/modules/usbcamera.ko
|
||||
|
||||
cd /system/bin/
|
||||
/system/bin/ucamera &
|
||||
|
||||
#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
|
Reference in New Issue
Block a user