base profile for aceline aip-o4
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
autonight -d 3
|
||||
;;
|
||||
stop)
|
||||
kill -9 $(pidof autonight)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
set_gpio() {
|
||||
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
|
||||
sleep 1
|
||||
}
|
||||
|
||||
set_mmc() {
|
||||
mmc=/sys/devices/platform/jzmmc_v1.2.$1/present
|
||||
[ "$(cat $mmc)" = "N" ] && echo "INSERT" > $mmc
|
||||
}
|
||||
|
||||
# Generic ATBM603X
|
||||
if [ "$1" = "atbm603x-generic" ]; then
|
||||
set_gpio 47 1
|
||||
set_mmc 1
|
||||
cp -f /usr/share/atbm60xx_conf/atbm_txpwer_dcxo_cfg.txt /tmp
|
||||
cp -f /usr/share/atbm60xx_conf/set_rate_power.txt /tmp
|
||||
modprobe atbm603x_wifi_sdio atbm_printk_mask=0
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exit 1
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/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_aceline-aip-o4-nor.tgz'
|
||||
#
|
||||
#
|
||||
# Set custom majestic settings
|
||||
#
|
||||
cli -s .isp.blkCnt 1
|
||||
#cli -s .audio.speakerPin 7
|
||||
#cli -s .nightMode.irCutPin1 58
|
||||
#cli -s .nightMode.irCutPin2 57
|
||||
#cli -s .nightMode.backlightPin 11
|
||||
cli -s .video0.codec h264
|
||||
#
|
||||
#
|
||||
# Set wlan device and credentials if need
|
||||
#
|
||||
fw_setenv wlandev atbm603x-generic
|
||||
#fw_setenv wlanssid Router
|
||||
#fw_setenv wlanpass 12345678
|
||||
#
|
||||
#
|
||||
# Set osmem and rmem
|
||||
#
|
||||
fw_setenv osmem 39M
|
||||
fw_setenv rmem 25M@0x2700000
|
||||
#
|
||||
exit 0
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
sensor:
|
||||
name: os02b10
|
||||
address: 0x3c
|
||||
width: 1920
|
||||
height: 1080
|
||||
bus: i2c
|
||||
Reference in New Issue
Block a user