From 0fbc5ff711070cb80ccf0a9f92411acc892d68ba Mon Sep 17 00:00:00 2001 From: cronyx Date: Sat, 2 Aug 2025 14:46:45 +0300 Subject: [PATCH] add base profile for imou c22cp c22ep-a --- README.md | 2 + .../configs/ssc325_lite_imou-c22cp_defconfig | 73 +++++++++++++++++++ .../overlay/usr/share/openipc/customizer.sh | 27 +++++++ .../overlay/usr/share/openipc/gpio.conf | 0 .../overlay/usr/share/openipc/muxes.sh | 0 .../general/scripts/excludes/ssc325_lite.list | 14 ++++ 6 files changed, 116 insertions(+) create mode 100644 devices/ssc325_lite_imou-c22cp/br-ext-chip-sigmastar/configs/ssc325_lite_imou-c22cp_defconfig create mode 100644 devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/customizer.sh create mode 100644 devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/gpio.conf create mode 100644 devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/muxes.sh create mode 100644 devices/ssc325_lite_imou-c22cp/general/scripts/excludes/ssc325_lite.list diff --git a/README.md b/README.md index 682a52a..a690e0e 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ 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 SC2339 RTL8188FU_USB NOR_8M preparation 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 +100,7 @@ Many devices sold in online stores are clones of original devices or, more often ``` Model names Our firmware +Imou IPC-С22EP-A => Imou IPC-С22CP Switcam HS303 v3 => Qtech QVC-IPC-136W Tiandy TC-C320N => Tiandy TC-C321N Tiandy TC-C320N v2 => Tiandy TC-C321N v2 diff --git a/devices/ssc325_lite_imou-c22cp/br-ext-chip-sigmastar/configs/ssc325_lite_imou-c22cp_defconfig b/devices/ssc325_lite_imou-c22cp/br-ext-chip-sigmastar/configs/ssc325_lite_imou-c22cp_defconfig new file mode 100644 index 0000000..49d1809 --- /dev/null +++ b/devices/ssc325_lite_imou-c22cp/br-ext-chip-sigmastar/configs/ssc325_lite_imou-c22cp_defconfig @@ -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 diff --git a/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/customizer.sh b/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/customizer.sh new file mode 100644 index 0000000..d926551 --- /dev/null +++ b/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/customizer.sh @@ -0,0 +1,27 @@ +#!/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.colorToGray true +cli -s .audio.outputEnabled true +cli -s .audio.outputVolume 80 +#cli -s .audio.speakerPin 15 +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 diff --git a/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/gpio.conf b/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/gpio.conf new file mode 100644 index 0000000..e69de29 diff --git a/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/muxes.sh b/devices/ssc325_lite_imou-c22cp/general/overlay/usr/share/openipc/muxes.sh new file mode 100644 index 0000000..e69de29 diff --git a/devices/ssc325_lite_imou-c22cp/general/scripts/excludes/ssc325_lite.list b/devices/ssc325_lite_imou-c22cp/general/scripts/excludes/ssc325_lite.list new file mode 100644 index 0000000..0b0559a --- /dev/null +++ b/devices/ssc325_lite_imou-c22cp/general/scripts/excludes/ssc325_lite.list @@ -0,0 +1,14 @@ +/etc/sensors/imx307.bin +/etc/sensors/sc2239.bin +/etc/sensors/sc2335.bin +# +/lib/modules/4.9.84/sigmastar/sensor_imx307_mipi.ko +/lib/modules/4.9.84/sigmastar/sensor_sc2239_mipi.ko +/lib/modules/4.9.84/sigmastar/sensor_sc2239_parl.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