mirror of
https://github.com/outbackdingo/builder.git
synced 2026-01-27 10:18:28 +00:00
Merge branch 'master' of github2:OpenIPC/builder
This commit is contained in:
3
.github/workflows/master.yml
vendored
3
.github/workflows/master.yml
vendored
@@ -44,6 +44,7 @@ jobs:
|
||||
- hi3518ev200_ultimate_lenovo-snowman-1080p
|
||||
- ssc30kd_lite_chinatelecom-ds-ytj5301
|
||||
- ssc325_lite_imilab-ec3-cmsxj25a
|
||||
- ssc325_lite_imou-c22cp
|
||||
- ssc325_lite_tp-link-tapo-c310-v1
|
||||
- ssc325_lite_trassir-tr-w2c1-v1
|
||||
- ssc325de_lite_imou-c22ep-s2
|
||||
@@ -75,6 +76,7 @@ jobs:
|
||||
- t21_lite_smartwares-cip-37210at
|
||||
- t21_lite_xyx-06s
|
||||
- t21_lite_wansview-q5-1080p
|
||||
- t31_lite_aceline-aip-o4
|
||||
- t31_lite_wansview-q5-2k
|
||||
- t31_lite_aoni-ep01j05
|
||||
- t31_lite_chinamobile-hdc-51-a6-v11
|
||||
@@ -90,6 +92,7 @@ jobs:
|
||||
|
||||
# APFPV
|
||||
- ssc338q_apfpv
|
||||
- ssc378qe_apfpv
|
||||
|
||||
# FPV
|
||||
- hi3516ev200_fpv
|
||||
|
||||
@@ -37,7 +37,7 @@ Imilab EC3 CMSXJ25A SSC325 GC2053 MT7603UN_? NOR_16M in pr
|
||||
Imou IPC-C22E-S2-v2 SSC335DE GC2053 RTL8188FU_USB NOR_16M done
|
||||
Imou IPC-C22EP-S2 SSC325DE SC2239 RTL8188FU_USB NAND testing stage 1
|
||||
Imou IPC-C22EP-S2 ? SSC325DE SC2335 RTL8188FU_USB NAND wait driver
|
||||
Imou IPC-F22AP SSC325 SC2239 - NOR_? preparation
|
||||
Imou IPC-С22СP SSC325 SC2239 RTL8188FU_USB NOR_8M in progress
|
||||
JVS INGT10 GQS60EP T10A OV9750 - NOR_8M done
|
||||
Lenovo Snowman 1080P HI3518EV200 SC2035 RTL8188EUS_USB NOR_16M in progress, LightSensor-no
|
||||
Meari Speed 6S SSC333 JXF37 RTL8188FU_USB NOR_16M video-yes, wifi-yes, motors-no
|
||||
@@ -99,6 +99,9 @@ Many devices sold in online stores are clones of original devices or, more often
|
||||
```
|
||||
Model names Our firmware
|
||||
|
||||
Dahua IPC-C22C-LC => Imou IPC-С22CP
|
||||
Imou IPC-С22EP-A => Imou IPC-С22CP
|
||||
Imou IPC-F22AP => Imou IPC-С22CP
|
||||
Switcam HS303 v3 => Qtech QVC-IPC-136W
|
||||
Tiandy TC-C320N => Tiandy TC-C321N
|
||||
Tiandy TC-C320N v2 => Tiandy TC-C321N v2
|
||||
|
||||
@@ -83,7 +83,7 @@ copy_to_tftp() {
|
||||
}
|
||||
|
||||
select_device() {
|
||||
AVAILABLE_DEVICES=$(find common devices -name *_defconfig | sort | cut -d/ -f5)
|
||||
AVAILABLE_DEVICES=$(find devices -name *_defconfig | sort | cut -d/ -f5)
|
||||
cmd="whiptail --title \"Available devices\" --menu \"Please select a device from the list below:\" 20 70 12"
|
||||
for p in ${AVAILABLE_DEVICES//_defconfig}; do cmd="${cmd} \"$p\" \"\""; done
|
||||
DEVICE=$(eval "${cmd} 3>&1 1>&2 2>&3")
|
||||
@@ -100,7 +100,7 @@ echo_c 30 "Version: ${VERSION}"
|
||||
while [ -z "${DEVICE}" ]; do select_device; done
|
||||
|
||||
echo_c 31 "\nStarting a device for ${DEVICE}"
|
||||
ITEM=$(find common devices -name ${DEVICE}_defconfig | cut -d/ -f1,2)
|
||||
ITEM=$(find devices -name ${DEVICE}_defconfig | cut -d/ -f1,2)
|
||||
tree -C "${ITEM}"
|
||||
|
||||
sleep 3
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -30,8 +30,9 @@ BR2_PACKAGE_EXFATPROGS=y
|
||||
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||
BR2_PACKAGE_ZLIB=y
|
||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||
BR2_PACKAGE_HOSTAPD=y
|
||||
BR2_PACKAGE_IW=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
|
||||
@@ -0,0 +1,72 @@
|
||||
# Architecture
|
||||
BR2_arm=y
|
||||
BR2_cortex_a35=y
|
||||
BR2_ARM_FPU_NEON_VFPV4=y
|
||||
BR2_ARM_INSTRUCTIONS_THUMB2=y
|
||||
|
||||
# Toolchain
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz"
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-openipc-linux-musleabihf"
|
||||
BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_10=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CXX=y
|
||||
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/openipc/linux/archive/$(OPENIPC_KERNEL).tar.gz"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(EXTERNAL_VENDOR)/board/$(OPENIPC_SOC_FAMILY)/infinity6c-ssc027d.config"
|
||||
BR2_LINUX_KERNEL_UIMAGE=y
|
||||
BR2_LINUX_KERNEL_XZ=y
|
||||
|
||||
# Filesystem
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config"
|
||||
BR2_PACKAGE_EXFATPROGS=y
|
||||
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||
BR2_PACKAGE_ZLIB=y
|
||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||
BR2_PACKAGE_IW=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
|
||||
|
||||
# OpenIPC
|
||||
BR2_OPENIPC_SOC_VENDOR="sigmastar"
|
||||
BR2_OPENIPC_SOC_MODEL="ssc378qe"
|
||||
BR2_OPENIPC_SOC_FAMILY="infinity6c"
|
||||
BR2_OPENIPC_VARIANT="apfpv"
|
||||
BR2_OPENIPC_FLASH_SIZE="16"
|
||||
|
||||
# Packages
|
||||
BR2_PACKAGE_DROPBEAR_OPENIPC=y
|
||||
BR2_PACKAGE_EXFAT_OPENIPC=y
|
||||
BR2_PACKAGE_IPCTOOL=y
|
||||
BR2_PACKAGE_JSONFILTER=y
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC=y
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set
|
||||
BR2_PACKAGE_LIBEVENT_OPENIPC=y
|
||||
BR2_PACKAGE_LIBOGG_OPENIPC=y
|
||||
BR2_PACKAGE_LINUX_PATCHER_SIGMASTAR_DTB="infinity6c-ssc027d-s01a-demo"
|
||||
BR2_PACKAGE_MAJESTIC_FONTS=y
|
||||
BR2_PACKAGE_MAJESTIC_WEBUI=y
|
||||
BR2_PACKAGE_MAJESTIC=y
|
||||
BR2_PACKAGE_MBEDTLS_OPENIPC=y
|
||||
BR2_PACKAGE_MAVFWD=y
|
||||
BR2_PACKAGE_MSPOSD=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
|
||||
BR2_PACKAGE_RTL8812AU=y
|
||||
BR2_PACKAGE_RTL88X2EU_OPENIPC=y
|
||||
BR2_PACKAGE_RTL8733BU_OPENIPC=y
|
||||
BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6C=y
|
||||
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||
BR2_PACKAGE_YAML_CLI=y
|
||||
@@ -1,22 +1,13 @@
|
||||
#!/bin/sh
|
||||
ssid=$(fw_printenv -n wlanssid || echo OpenIPC)
|
||||
pass=$(fw_printenv -n wlanpass || echo 12345678)
|
||||
chan=$(fw_printenv -n wlanchan || echo 1)
|
||||
[ "$chan" -le 13 ] && mode=g || mode=a
|
||||
|
||||
set_config() {
|
||||
cat << EOF > /tmp/hostapd.conf
|
||||
ctrl_interface=/var/run/hostapd
|
||||
interface=wlan0
|
||||
channel=$chan
|
||||
hw_mode=$mode
|
||||
ieee80211n=1
|
||||
ieee80211ac=1
|
||||
wmm_enabled=1
|
||||
rsn_pairwise=CCMP
|
||||
wpa=2
|
||||
ssid=$ssid
|
||||
wpa_passphrase=$pass
|
||||
cat << EOF > /tmp/wpa_supplicant.conf
|
||||
network={
|
||||
mode=2
|
||||
frequency=$(fw_printenv -n wlanfreq || echo 5200)
|
||||
ssid="$(fw_printenv -n wlanssid || echo OpenIPC)"
|
||||
psk="$(fw_printenv -n wlanpass || echo 12345678)"
|
||||
}
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -25,7 +16,7 @@ case "$1" in
|
||||
for card in $(lsusb | awk '{print $6}' | uniq); do
|
||||
case "$card" in
|
||||
"0bda:8812" | "0bda:881a" | "0b05:17d2" | "2357:0101" | "2604:0012")
|
||||
driver=88XXau
|
||||
driver=8812au
|
||||
;;
|
||||
|
||||
"0bda:a81a")
|
||||
@@ -45,14 +36,12 @@ case "$1" in
|
||||
|
||||
echo "Detected driver: $driver"
|
||||
modprobe "$driver" rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0
|
||||
|
||||
[ "$chan" -le 13 ] && rate=0x8D || rate=0xB7
|
||||
echo "$rate" > $(ls /proc/net/*/wlan0/rate_ctl)
|
||||
;;
|
||||
|
||||
start)
|
||||
iw wlan0 set txpower fixed $(fw_printenv -n wlanpwr || echo 1500)
|
||||
set_config
|
||||
hostapd /tmp/hostapd.conf -B
|
||||
wpa_supplicant -B -i wlan0 -c /tmp/wpa_supplicant.conf
|
||||
udhcpd -S
|
||||
;;
|
||||
|
||||
@@ -1,15 +1,4 @@
|
||||
#!/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/openipc.ssc338q-nor-apfpv.tgz'
|
||||
#
|
||||
#
|
||||
# Set custom majestic settings
|
||||
#
|
||||
cli -s .isp.exposure 15
|
||||
cli -s .video0.fps 60
|
||||
cli -s .video0.bitrate 12000
|
||||
@@ -0,0 +1,4 @@
|
||||
/etc/sensors/gc4653.bin
|
||||
/etc/sensors/os04a10.bin
|
||||
/etc/sensors/sc401ai.bin
|
||||
/etc/sensors/sc830ai.bin
|
||||
@@ -0,0 +1,73 @@
|
||||
# Architecture
|
||||
BR2_arm=y
|
||||
BR2_cortex_a7=y
|
||||
BR2_ARM_FPU_NEON_VFPV4=y
|
||||
BR2_ARM_INSTRUCTIONS_THUMB2=y
|
||||
|
||||
# Toolchain
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz"
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-openipc-linux-musleabihf"
|
||||
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CXX=y
|
||||
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/openipc/linux/archive/$(OPENIPC_KERNEL).tar.gz"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(EXTERNAL_VENDOR)/board/$(OPENIPC_SOC_FAMILY)/infinity6-ssc009a.config"
|
||||
BR2_LINUX_KERNEL_UIMAGE=y
|
||||
BR2_LINUX_KERNEL_XZ=y
|
||||
|
||||
# Filesystem
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config"
|
||||
BR2_PACKAGE_EXFATPROGS=y
|
||||
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||
BR2_PACKAGE_ZLIB=y
|
||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||
# BR2_PACKAGE_MOSQUITTO is not set
|
||||
# BR2_PACKAGE_MOSQUITTO_BROKER is not set
|
||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||
BR2_PACKAGE_WIREGUARD_TOOLS=y
|
||||
BR2_PACKAGE_WIRELESS_TOOLS=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
|
||||
|
||||
# OpenIPC
|
||||
BR2_OPENIPC_SOC_VENDOR="sigmastar"
|
||||
BR2_OPENIPC_SOC_MODEL="ssc325"
|
||||
BR2_OPENIPC_SOC_FAMILY="infinity6"
|
||||
BR2_OPENIPC_VARIANT="lite"
|
||||
BR2_OPENIPC_FLASH_SIZE="8"
|
||||
|
||||
# Packages
|
||||
BR2_PACKAGE_DROPBEAR_OPENIPC=y
|
||||
BR2_PACKAGE_EXFAT_OPENIPC=y
|
||||
BR2_PACKAGE_IPCTOOL=y
|
||||
BR2_PACKAGE_JSONFILTER=y
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC=y
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set
|
||||
BR2_PACKAGE_LIBEVENT_OPENIPC=y
|
||||
BR2_PACKAGE_LIBOGG_OPENIPC=y
|
||||
BR2_PACKAGE_MAJESTIC_FONTS=y
|
||||
BR2_PACKAGE_MAJESTIC_WEBUI=y
|
||||
BR2_PACKAGE_MAJESTIC=y
|
||||
BR2_PACKAGE_MBEDTLS_OPENIPC=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
|
||||
BR2_PACKAGE_QUIRC_OPENIPC=y
|
||||
BR2_PACKAGE_RTL8188FU_OPENIPC=y
|
||||
BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6=y
|
||||
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||
BR2_PACKAGE_YAML_CLI=y
|
||||
14
devices/ssc325_lite_imou-c22cp/general/overlay/etc/wireless/usb
Executable file
14
devices/ssc325_lite_imou-c22cp/general/overlay/etc/wireless/usb
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
set_gpio() {
|
||||
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
|
||||
sleep 1
|
||||
}
|
||||
|
||||
if [ "$1" = "rtl8188fu-ssc325-imou-c22cp" ]; then
|
||||
set_gpio 46 1
|
||||
modprobe 8188fu
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exit 1
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/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/ssc325_lite_imou-c22cp-nor.tgz'
|
||||
#
|
||||
#
|
||||
# Set custom majestic settings
|
||||
#
|
||||
cli -s .video0.codec h264
|
||||
cli -s .nightMode.irCutPin1 76
|
||||
cli -s .nightMode.irCutPin2 77
|
||||
cli -s .nightMode.colorToGray true
|
||||
#cli -s .audio.speakerPin 15
|
||||
cli -s .audio.outputEnabled true
|
||||
cli -s .audio.outputVolume 80
|
||||
cli -s .audio.srate 48000
|
||||
#
|
||||
#
|
||||
# Set wlan device and credentials if need
|
||||
#
|
||||
fw_setenv wlandev rtl8188fu-ssc325-imou-c22cp
|
||||
#fw_setenv wlanssid Router
|
||||
#fw_setenv wlanpass 12345678
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,13 @@
|
||||
alarm_in=-1
|
||||
alarm_out=-1
|
||||
button=66
|
||||
ircut1=76
|
||||
ircut2=77
|
||||
led1=61
|
||||
led2=79
|
||||
light_ir=-1
|
||||
light_wl=-1
|
||||
light_sensor=-1
|
||||
mmc_pwr=-1
|
||||
speaker=-1
|
||||
usb=46
|
||||
@@ -0,0 +1,12 @@
|
||||
/etc/sensors/gc2053.bin
|
||||
/etc/sensors/imx307.bin
|
||||
/etc/sensors/sc2335.bin
|
||||
#
|
||||
/lib/modules/4.9.84/sigmastar/sensor_imx307_mipi.ko
|
||||
/lib/modules/4.9.84/sigmastar/sensor_sc2335_mipi.ko
|
||||
/lib/modules/4.9.84/sigmastar/sensor_sc2335_parl.ko
|
||||
#
|
||||
/lib/modules/4.9.84/kernel/fs/lockd/*.ko
|
||||
/lib/modules/4.9.84/kernel/fs/nfs/*.ko
|
||||
/lib/modules/4.9.84/kernel/fs/nfs_common/*.ko
|
||||
/lib/modules/4.9.84/kernel/net/sunrpc/*.ko
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,73 @@
|
||||
# Architecture
|
||||
BR2_mipsel=y
|
||||
BR2_mips_xburst=y
|
||||
# BR2_MIPS_SOFT_FLOAT is not set
|
||||
BR2_MIPS_FP32_MODE_32=y
|
||||
|
||||
# Toolchain
|
||||
BR2_TOOLCHAIN_EXTERNAL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz"
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="mipsel-openipc-linux-musl"
|
||||
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y
|
||||
BR2_TOOLCHAIN_EXTERNAL_CXX=y
|
||||
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/openipc/linux/archive/$(OPENIPC_KERNEL).tar.gz"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(EXTERNAL_VENDOR)/board/$(OPENIPC_SOC_FAMILY)/t31.generic.config"
|
||||
BR2_LINUX_KERNEL_LZMA=y
|
||||
|
||||
# Filesystem
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config"
|
||||
BR2_PACKAGE_UBOOT_TOOLS=y
|
||||
BR2_PACKAGE_ZLIB=y
|
||||
# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
|
||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||
BR2_PACKAGE_WIREGUARD_TOOLS=y
|
||||
BR2_PACKAGE_WIRELESS_TOOLS=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
|
||||
|
||||
# OpenIPC
|
||||
BR2_OPENIPC_SOC_VENDOR="ingenic"
|
||||
BR2_OPENIPC_SOC_MODEL="t31"
|
||||
BR2_OPENIPC_SOC_FAMILY="t31"
|
||||
BR2_OPENIPC_SNS_MODEL="os02g10"
|
||||
BR2_OPENIPC_VARIANT="lite"
|
||||
BR2_OPENIPC_FLASH_SIZE="8"
|
||||
|
||||
# Packages
|
||||
BR2_PACKAGE_ATBM60XX=y
|
||||
BR2_PACKAGE_ATBM60XX_MODEL_603X=y
|
||||
BR2_PACKAGE_ATBM60XX_INTERFACE_SDIO=y
|
||||
BR2_PACKAGE_AUTONIGHT=y
|
||||
BR2_PACKAGE_DROPBEAR_OPENIPC=y
|
||||
BR2_PACKAGE_INGENIC_OSDRV_T31=y
|
||||
BR2_PACKAGE_IPCTOOL=y
|
||||
BR2_PACKAGE_JSONFILTER=y
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC=y
|
||||
BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set
|
||||
BR2_PACKAGE_LIBEVENT_OPENIPC=y
|
||||
BR2_PACKAGE_LIBOGG_OPENIPC=y
|
||||
BR2_PACKAGE_MAJESTIC_FONTS=y
|
||||
BR2_PACKAGE_MAJESTIC_WEBUI=y
|
||||
BR2_PACKAGE_MAJESTIC=y
|
||||
BR2_PACKAGE_MBEDTLS_OPENIPC=y
|
||||
BR2_PACKAGE_MOTORS=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
|
||||
BR2_PACKAGE_QUIRC_OPENIPC=y
|
||||
BR2_PACKAGE_VTUND_OPENIPC=y
|
||||
BR2_PACKAGE_YAML_CLI=y
|
||||
14
devices/t31_lite_aceline-aip-o4/general/overlay/etc/init.d/S90autonight
Executable file
14
devices/t31_lite_aceline-aip-o4/general/overlay/etc/init.d/S90autonight
Executable file
@@ -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
|
||||
23
devices/t31_lite_aceline-aip-o4/general/overlay/etc/wireless/sdio
Executable file
23
devices/t31_lite_aceline-aip-o4/general/overlay/etc/wireless/sdio
Executable file
@@ -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,35 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Perform basic settings on a known IP camera
|
||||
#
|
||||
# Manual sensor set
|
||||
fw_setenv sensor os02g10
|
||||
#
|
||||
# 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
|
||||
@@ -0,0 +1,6 @@
|
||||
sensor:
|
||||
name: os02g10
|
||||
address: 0x3c
|
||||
width: 1920
|
||||
height: 1080
|
||||
bus: i2c
|
||||
Reference in New Issue
Block a user