add vstarcam cs55

This commit is contained in:
cronyx
2024-01-13 14:02:56 +03:00
parent 15c862beed
commit 44d3502e57
6 changed files with 260 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
#
Experimental system for building OpenIPC firmware for known devices
#

View File

@@ -0,0 +1,14 @@
#!/bin/sh
set_gpio() {
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
sleep 1
}
if [ "$1" = "rtl8188fu-generic" ]; then
set_gpio 11 1
modprobe 8188fu
exit 0
fi
exit 1

View File

@@ -0,0 +1,35 @@
#!/bin/sh
#
# Perform basic settings on a known IP camera
#
#
# Set custom upgrade url
#
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/t31_lite_vstarcam-cs55-nor.tgz'
#
#
# Set custom majestic settings
#
cli -s .system.webAdmin disabled
cli -s .system.staticDir /var/www/majestic
cli -s .isp.blkCnt 1
#cli -s .nightMode.enabled true
#cli -s .nightMode.irCutPin1 ??
#cli -s .nightMode.irCutPin2 ??
cli -s .nightMode.backlightPin 42
cli -s .video0.codec h264
#
#
# Set wlan device and credentials if need
#
fw_setenv wlandev rtl8188fu-generic
#fw_setenv wlanssid Router
#fw_setenv wlanpass 12345678
#
#
# Set osmem and rmem
#
fw_setenv osmem 39M
fw_setenv rmem 25M@0x2700000
#
exit 0