add xg521 gk7202v300+gc1054 with LTE modem (#15)

This commit is contained in:
john doe
2024-02-26 21:10:57 +08:00
committed by GitHub
parent 1bb08528a4
commit 05f032b14b
8 changed files with 3207 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/sh
set_gpio() {
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
sleep 1
}
# GK7202V300 XG521 with EC800E and usb0
if [ "$1" = "ec800e-gk7202v300-xg521" ]; then
set_gpio 9 0
modprobe usbserial vendor=0x2c7c product=0x0903
modprobe rndis_host
sleep 10
exit 0
fi
exit 1

View File

@@ -0,0 +1,24 @@
#!/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/gk7202v300_lite_xg521-nor.tgz'
#
# Set custom majestic settings
#
cli -s .nightMode.enabled true
cli -s .nightMode.irCutPin1 15
cli -s .nightMode.irCutPin2 14
cli -s .nightMode.colorToGray false
cli -s .nightMode.backlightPin 54
cli -s .video0.codec h264
cli -s .audio.speakerPin 4
#
# Set wlan device and credentials if need
#
fw_setenv wlandev ec800e-gk7202v300-xg521
exit 0