mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-14 08:02:16 +00:00
add zte k540 (#9)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
#
|
||||
Experimental system for building OpenIPC firmware for known devices
|
||||
#
|
||||
12
devices/t31_lite_zte-k540/general/overlay/etc/wireless/usb
Executable file
12
devices/t31_lite_zte-k540/general/overlay/etc/wireless/usb
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set_gpio() {
|
||||
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
|
||||
sleep 1
|
||||
}
|
||||
|
||||
if [ "$1" = "atbm603x_wifi_usb" ]; then
|
||||
set_gpio 51 0
|
||||
modprobe atbm603x_wifi_usb
|
||||
exit 0
|
||||
fi
|
||||
@@ -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_zte-k540-nor.tgz'
|
||||
#
|
||||
#
|
||||
# Set custom majestic settings
|
||||
#
|
||||
cli -s .nightMode.enabled true
|
||||
cli -s .nightMode.irCutPin1 57
|
||||
cli -s .nightMode.irCutPin2 58
|
||||
cli -s .nightMode.backlightPin 11
|
||||
cli -s .video0.codec h264
|
||||
cli -s .audio.speakerPin 64
|
||||
#
|
||||
#
|
||||
# Set wlan device and credentials if need
|
||||
#
|
||||
fw_setenv wlandev atbm603x_wifi_usb
|
||||
#fw_setenv wlanssid Router
|
||||
#fw_setenv wlanpass 12345678
|
||||
#
|
||||
#
|
||||
# Set osmem and rmem
|
||||
#
|
||||
fw_setenv osmem 64M
|
||||
fw_setenv rmem 64M@0x4000000
|
||||
#
|
||||
exit 0
|
||||
Reference in New Issue
Block a user