diff --git a/.gitignore b/.gitignore index a4cf6f6..de8d4c8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,6 @@ # https://www.atlassian.com/git/tutorials/saving-changes/gitignore # Assembly folders -archive/ -cache/ -openipc/ +/archive/ +/cache/ +/openipc/ diff --git a/projects/ssc333_lite_tapo-c110/br-ext-chip-sigmastar/configs/ssc333_lite_tapo-c110_defconfig b/projects/ssc333_lite_tapo-c110/br-ext-chip-sigmastar/configs/ssc333_lite_tapo-c110_defconfig new file mode 100644 index 0000000..3ad6395 --- /dev/null +++ b/projects/ssc333_lite_tapo-c110/br-ext-chip-sigmastar/configs/ssc333_lite_tapo-c110_defconfig @@ -0,0 +1,121 @@ +# Architecture +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_EABIHF=y +BR2_ARM_FPU_NEON_VFPV4=y +BR2_ARM_INSTRUCTIONS_THUMB2=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="4.9.84" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y + +# Toolchain +BR2_PER_PACKAGE_DIRECTORIES=y +BR2_GCC_VERSION_12_X=y +# BR2_TOOLCHAIN_USES_UCLIBC is not set +# BR2_TOOLCHAIN_BUILDROOT_UCLIBC is not set +# BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc" +BR2_TOOLCHAIN_USES_MUSL=y +BR2_TOOLCHAIN_BUILDROOT_MUSL=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="musl" +BR2_TOOLCHAIN_BUILDROOT_CXX=y +# BR2_TOOLCHAIN_BUILDROOT_LOCALE is not set +BR2_TOOLCHAIN_BUILDROOT_USE_SSP=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/infinity6b0/kernel/infinity6b0-ssc009a.config" +BR2_LINUX_KERNEL_UIMAGE=y +BR2_LINUX_KERNEL_XZ=y + +# OpenIPC +BR2_OPENIPC_SOC_VENDOR="sigmastar" +BR2_OPENIPC_SOC_MODEL="ssc335" +BR2_OPENIPC_SOC_FAMILY="infinity6b0" +BR2_OPENIPC_FLAVOR="lite" +BR2_OPENIPC_FLASH_SIZE="8" + +# Filesystem +# BR2_TARGET_TZ_INFO is not set +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_SQUASHFS=y +BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y +BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL)/overlay" +BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL)/scripts/rootfs_script.sh" + +# OpenIPC configuration +BR2_TOOLCHAIN_BUILDROOT_VENDOR="openipc" +BR2_TARGET_GENERIC_ISSUE="Welcome to OpenIPC" +BR2_TARGET_GENERIC_HOSTNAME="openipc-ssc335" +BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL)/package/all-patches" + +# OpenIPC packages +BR2_PACKAGE_AWS_WEBRTC=y +BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL)/package/busybox/busybox.config" +BR2_PACKAGE_DROPBEAR_OPENIPC=y +# BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set +# BR2_PACKAGE_FDK_AAC_OPENIPC is not set +BR2_PACKAGE_UBOOT_TOOLS=y +BR2_PACKAGE_HASERL=y +BR2_PACKAGE_IPCTOOL=y +BR2_PACKAGE_JSON_C=y +BR2_PACKAGE_JSONFILTER=y +BR2_PACKAGE_LIBCURL_OPENIPC=y +BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y +# BR2_PACKAGE_LIBCURL_OPENIPC_VERBOSE is not set +# 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_LIBCURL_OPENIPC_MBEDTLS=y +BR2_PACKAGE_LIBEVENT_OPENIPC=y +BR2_PACKAGE_LIBEVENT_OPENIPC_REMOVE_PYSCRIPT=y +BR2_PACKAGE_LIBOGG_OPENIPC=y +BR2_PACKAGE_LIBYAML=y +BR2_PACKAGE_MAJESTIC=y +BR2_PACKAGE_MAJESTIC_FONTS=y +BR2_PACKAGE_MBEDTLS_OPENIPC=y +# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set +# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set +BR2_PACKAGE_MICROBE_WEB=y +# BR2_PACKAGE_MINI_SNMPD is not set +# BR2_PACKAGE_MOTORS is not set +BR2_PACKAGE_OPUS_OPENIPC=y +BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y +BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6B0=y +BR2_PACKAGE_EXFAT_OPENIPC=y +BR2_PACKAGE_EXFATPROGS=y +# BR2_PACKAGE_SSHPASS is not set +# BR2_PACKAGE_UACME_OPENIPC is not set +BR2_PACKAGE_VTUND_OPENIPC=y +BR2_PACKAGE_YAML_CLI=y +BR2_PACKAGE_ZLIB=y + +# Wireless +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_CLI=y +BR2_PACKAGE_WPA_SUPPLICANT_NL80211=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y +# BR2_PACKAGE_RTL8188EU is not set +# BR2_PACKAGE_RTL8192EU_OPENIPC is not set +BR2_PACKAGE_SSW101B=y + +# Debug +# BR2_PACKAGE_HOST_GDB is not set +# BR2_PACKAGE_GDB is not set + +# CCACHE +BR2_CCACHE=y +BR2_CCACHE_DIR="$(HOME)/.ccache" + +# External +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-openipc-linux-musleabihf" +BR2_TOOLCHAIN_EXTERNAL_CXX=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/openipc/firmware/releases/download/$(OPENIPC_TOOLCHAIN).tgz" diff --git a/projects/ssc333_lite_tapo-c110/general/overlay/etc/TZ b/projects/ssc333_lite_tapo-c110/general/overlay/etc/TZ new file mode 100644 index 0000000..8d44087 --- /dev/null +++ b/projects/ssc333_lite_tapo-c110/general/overlay/etc/TZ @@ -0,0 +1 @@ +MSK-3 \ No newline at end of file diff --git a/projects/ssc333_lite_tapo-c110/general/overlay/etc/composer.ini b/projects/ssc333_lite_tapo-c110/general/overlay/etc/composer.ini new file mode 100644 index 0000000..1f15175 --- /dev/null +++ b/projects/ssc333_lite_tapo-c110/general/overlay/etc/composer.ini @@ -0,0 +1,4 @@ +# +composer_message="This firmware was created with the Composer project." +# +default_timezone="MSK-3,Europe/Moscow" diff --git a/projects/ssc333_lite_tapo-c110/general/overlay/etc/sensors/info.txt b/projects/ssc333_lite_tapo-c110/general/overlay/etc/sensors/info.txt new file mode 100644 index 0000000..9849418 --- /dev/null +++ b/projects/ssc333_lite_tapo-c110/general/overlay/etc/sensors/info.txt @@ -0,0 +1,3 @@ + +insmod sc3338_MIPI.ko chmap=1 lane_num=4 hdr_lane_num=4 + diff --git a/projects/ssc333_lite_tapo-c110/general/overlay/etc/sensors/sc3338.bin b/projects/ssc333_lite_tapo-c110/general/overlay/etc/sensors/sc3338.bin new file mode 100644 index 0000000..15b7847 Binary files /dev/null and b/projects/ssc333_lite_tapo-c110/general/overlay/etc/sensors/sc3338.bin differ diff --git a/projects/ssc333_lite_tapo-c110/general/overlay/etc/timezone b/projects/ssc333_lite_tapo-c110/general/overlay/etc/timezone new file mode 100644 index 0000000..b1f078f --- /dev/null +++ b/projects/ssc333_lite_tapo-c110/general/overlay/etc/timezone @@ -0,0 +1 @@ +Europe/Moscow \ No newline at end of file diff --git a/projects/ssc333_lite_tapo-c110/general/overlay/etc/wireless/usb b/projects/ssc333_lite_tapo-c110/general/overlay/etc/wireless/usb new file mode 100755 index 0000000..6032b93 --- /dev/null +++ b/projects/ssc333_lite_tapo-c110/general/overlay/etc/wireless/usb @@ -0,0 +1,140 @@ +#!/bin/sh + +set_gpio() { + test -e /sys/class/gpio/gpio$1 && echo $1 > /sys/class/gpio/unexport + echo $1 > /sys/class/gpio/export + echo out > /sys/class/gpio/gpio$1/direction + echo $2 > /sys/class/gpio/gpio$1/value + sleep 1 +} + +# MT7601U Generic +if [ "$1" = "mt7601u-generic" ]; then + modprobe mt7601u + exit 0 +fi + +# RTL8188FU Generic +if [ "$1" = "rtl8188fu-generic" ]; then + modprobe 8188fu + exit 0 +fi + +# RTL8733BU Generic +if [ "$1" = "rtl8733bu-generic" ]; then + modprobe 8733bu + exit 0 +fi + +# GK7205V200 CamHi +if [ "$1" = "mt7601u-gk7205v200-camhi" ]; then + set_gpio 9 0 + modprobe mt7601u + exit 0 +fi + +# GK7205V200 CamHi +if [ "$1" = "rtl8733bu-gk7205v200-camhi" ]; then + set_gpio 9 0 + modprobe 8733bu + exit 0 +fi + +# GK7205V200 Kafei +if [ "$1" = "8188fu-gk7205v200-kafei" ]; then + set_gpio 57 0 + modprobe 8188fu + exit 0 +fi + +# HI3516EV200 CamHi +if [ "$1" = "mt7601u-hi3516ev200-camhi" ]; then + set_gpio 9 0 + modprobe mt7601u + exit 0 +fi + +# HI3516EV300 CamHi +if [ "$1" = "mt7601u-hi3516ev300-camhi" ]; then + devmem 0x100C0080 32 0x530 + set_gpio 7 0 + modprobe mt7601sta + exit 0 +fi + +# HI3518EV100 CamHi +if [ "$1" = "mt7601u-hi3518ev100-camhi" ]; then + modprobe mt7601sta + exit 0 +fi + +# HI3518EV200 LifeSmart +if [ "$1" = "rtl8188fu-hi3518ev200-lifesmart" ]; then + set_gpio 54 1 + modprobe 8188fu + exit 0 +fi + +# HI3518EV200 Rostelecom QVC-IPC-136W +if [ "$1" = "rtl8188eu-hi3518ev200-qvc-ipc-136w" ]; then + set_gpio 7 1 + modprobe 8188eu + exit 0 +fi + +# HI3518EV300 Unknown1 +if [ "$1" = "rtl8188fu-hi3518ev300-unknown1" ]; then + set_gpio 57 0 + modprobe mac80211 + modprobe 8188fu + exit 0 +fi + +# SSC333 Tapo C110 +if [ "$1" = "ssw101b-ssc333-tapo-c110" ]; then + modprobe ssw101b_wifi_usb + exit 0 +fi + +# SSC337DE Foscam +if [ "$1" = "rtl8188fu-ssc337de-foscam" ]; then + set_gpio 15 0 + modprobe 8188fu + exit 0 +fi + +# SSC337DE Vendor +if [ "$1" = "aic8800-ssc337de-vendor" ]; then + modprobe aic8800_fdrv + exit 0 +fi + +# T10 NVT +if [ "$1" = "mt7601sta-t10-nvt" ]; then + modprobe cfg80211 + modprobe mt7601sta + exit 0 +fi + +# T21 BJS +if [ "$1" = "rtl8188fu-t21-bjs" ]; then + set_gpio 50 0 + modprobe 8188fu + exit 0 +fi + +# T21 Smartwares +if [ "$1" = "rtl8188fu-t21-smartwares" ]; then + set_gpio 49 1 + modprobe 8188fu + exit 0 +fi + +# T31 CamHi +if [ "$1" = "mt7601u-t31-camhi" ]; then + set_gpio 61 0 + modprobe mac80211 + exit 0 +fi + +exit 1 diff --git a/projects/ssc333_lite_tapo-c110/general/overlay/lib/modules/4.9.84/sigmastar/sensor/sensor_sc3338_mipi.ko b/projects/ssc333_lite_tapo-c110/general/overlay/lib/modules/4.9.84/sigmastar/sensor/sensor_sc3338_mipi.ko new file mode 100644 index 0000000..732a9b9 Binary files /dev/null and b/projects/ssc333_lite_tapo-c110/general/overlay/lib/modules/4.9.84/sigmastar/sensor/sensor_sc3338_mipi.ko differ diff --git a/projects/t31_lite_convoy/general/overlay/etc/majestic.yaml b/projects/t31_lite_convoy/general/overlay/etc/majestic.yaml index 4b0817f..554b7e3 100644 --- a/projects/t31_lite_convoy/general/overlay/etc/majestic.yaml +++ b/projects/t31_lite_convoy/general/overlay/etc/majestic.yaml @@ -12,7 +12,7 @@ image: luminance: 50 osd: enabled: false - template: "%a %e %B %Y %H:%M:%S %Z" + template: "OpenIPC | %F %T:%f" nightMode: enabled: true irCutPin1: 58 @@ -44,9 +44,9 @@ hls: youtube: enabled: false motionDetect: - enabled: true + enabled: false visualize: true - debug: true + debug: false ipeye: enabled: false watchdog: @@ -55,4 +55,6 @@ watchdog: outgoing: enabled: true server: udp://172.19.32.18:5600 +isp: + slowShutter: disabled