From 3cfdd40b9d712582c5dd5427842e2694726f83b3 Mon Sep 17 00:00:00 2001 From: cronyx Date: Sat, 3 Aug 2024 15:31:12 +0300 Subject: [PATCH] Vixand IVG-G6S-W --- .github/workflows/master.yml | 1 + README.md | 2 +- ...gk7205v300_lite_vixand-ivg-g6s-w_defconfig | 126 ++++++++++++++++++ .../overlay/usr/share/openipc/customizer.sh | 28 ++++ .../scripts/excludes/gk7205v300_lite.list | 40 ++++++ 5 files changed, 196 insertions(+), 1 deletion(-) create mode 100644 devices/gk7205v300_lite_vixand-ivg-g6s-w/br-ext-chip-goke/configs/gk7205v300_lite_vixand-ivg-g6s-w_defconfig create mode 100644 devices/gk7205v300_lite_vixand-ivg-g6s-w/general/overlay/usr/share/openipc/customizer.sh create mode 100644 devices/gk7205v300_lite_vixand-ivg-g6s-w/general/scripts/excludes/gk7205v300_lite.list diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index e487ec6..8755d67 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -27,6 +27,7 @@ jobs: - gk7205v210_lite_vixand-ivg-g3s - gk7205v210_lite_vixand-ivg-g4f-a - gk7205v210_lite_vixand-ivg-g4f-a-w + - gk7205v300_lite_vixand-ivg-g6s-w - hi3516cv200_lite_trassir-tr-d4121ir1-v2 - hi3518ev200_lite_smartwares-cip-37210 - hi3518ev200_lite_switcam-hs303 diff --git a/README.md b/README.md index f7fc1d3..638bbd9 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Vixand IPH-5-4G GK7205V200 SC2239 EC200N_USB NOR_8M inser Vixand IVG-G3S GK7205V210 IMX307 - NOR_16M ! Vixand IVG-G4F-A GK7205V210 SC223A - NOR_16M ! Vixand IVG-G4F-A-W GK7205V210 SC223A ATBM6032i_USB NOR_16M w/ext wifi board -Vixand IVG-G6S GK7205V300 IMX335 - NOR_16M ! +Vixand IVG-G6S-W GK7205V300 IMX335 ATBM6032i_USB NOR_16M w/ext wifi board VStarcam C8892WIP HI3518EV200 AR0237 MT7601U_USB NOR_16M done VStarcam C8896WIP GK7102C_A GC2033 RTL8189ES_SDIO NOR_8M wip VStarcam C43S(B) SSC333 JXF37 MT7601U_USB NOR_16M in progress diff --git a/devices/gk7205v300_lite_vixand-ivg-g6s-w/br-ext-chip-goke/configs/gk7205v300_lite_vixand-ivg-g6s-w_defconfig b/devices/gk7205v300_lite_vixand-ivg-g6s-w/br-ext-chip-goke/configs/gk7205v300_lite_vixand-ivg-g6s-w_defconfig new file mode 100644 index 0000000..f5e6fb8 --- /dev/null +++ b/devices/gk7205v300_lite_vixand-ivg-g6s-w/br-ext-chip-goke/configs/gk7205v300_lite_vixand-ivg-g6s-w_defconfig @@ -0,0 +1,126 @@ +# Architecture +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_EABI=y +BR2_ARM_FPU_NEON_VFPV4=y +BR2_ARM_INSTRUCTIONS_THUMB2=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="4.9.37" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y + +# Toolchain +BR2_PER_PACKAGE_DIRECTORIES=y +BR2_GCC_VERSION_13_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=y +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/gk7205v200/kernel/gk7205v200.generic.config" +BR2_LINUX_KERNEL_UIMAGE=y +BR2_LINUX_KERNEL_XZ=y + +# OpenIPC +BR2_OPENIPC_SOC_VENDOR="goke" +BR2_OPENIPC_SOC_MODEL="gk7205v300" +BR2_OPENIPC_SOC_FAMILY="gk7205v200" +BR2_OPENIPC_VARIANT="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-gk7205v300" +BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL)/package/all-patches" + +# OpenIPC packages +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_GOKE_OSDRV_GK7205V200=y +BR2_PACKAGE_HISILICON_OPENSDK=y +# BR2_PACKAGE_HISI_GPIO is not set +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_MAJESTIC_WEBUI=y +BR2_PACKAGE_MBEDTLS_OPENIPC=y +# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set +# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set +# BR2_PACKAGE_MINI_SNMPD is not set +BR2_PACKAGE_MOTORS=y +BR2_PACKAGE_OPUS_OPENIPC=y +BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y +# BR2_PACKAGE_SSHPASS is not set +# BR2_PACKAGE_UACME_OPENIPC is not set +BR2_PACKAGE_VTUND_OPENIPC=y +BR2_PACKAGE_YAML_CLI=y + +# WiFi +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_ATBM60XX=y +BR2_PACKAGE_ATBM60XX_MODEL_603X=y +BR2_PACKAGE_ATBM60XX_INTERFACE_USB=y + +# WIREGUARD +BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y +BR2_PACKAGE_WIREGUARD_TOOLS=y + +# DEBUG +# BR2_PACKAGE_HOST_GDB is not set +# BR2_PACKAGE_GDB is not set + +# CCACHE +BR2_CCACHE=y +BR2_CCACHE_DIR="$(HOME)/.ccache" +BR2_OPTIMIZE_S=y + +# Compression +BR2_PACKAGE_ZLIB=y + +# External +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-openipc-linux-musleabi" +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/devices/gk7205v300_lite_vixand-ivg-g6s-w/general/overlay/usr/share/openipc/customizer.sh b/devices/gk7205v300_lite_vixand-ivg-g6s-w/general/overlay/usr/share/openipc/customizer.sh new file mode 100644 index 0000000..4057a35 --- /dev/null +++ b/devices/gk7205v300_lite_vixand-ivg-g6s-w/general/overlay/usr/share/openipc/customizer.sh @@ -0,0 +1,28 @@ +#!/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/gk7205v300_lite_vixand-ivg-g6s-w-nor.tgz' +# +# +# Set wlan device and credentials if need +# +fw_setenv wlandev atbm603x-gk7205v300-xm-g6s +#fw_setenv wlanssid Router +#fw_setenv wlanpass 12345678 +# +# Set majestic settings +# +cli -s .nightMode.irCutPin1 11 +cli -s .nightMode.irCutPin2 10 +#cli -s .nightMode.backlightPin 14 +#cli -s .nightMode.lightMonitor true +#cli -s .nightMode.minThreshold 2000 +#cli -s .nightMode.maxThreshold 14000 +#cli -s .audio.speakerPin 55 +cli -s .video0.codec h264 + +exit 0 diff --git a/devices/gk7205v300_lite_vixand-ivg-g6s-w/general/scripts/excludes/gk7205v300_lite.list b/devices/gk7205v300_lite_vixand-ivg-g6s-w/general/scripts/excludes/gk7205v300_lite.list new file mode 100644 index 0000000..d586c58 --- /dev/null +++ b/devices/gk7205v300_lite_vixand-ivg-g6s-w/general/scripts/excludes/gk7205v300_lite.list @@ -0,0 +1,40 @@ +/etc/sensors/4l_sc223a_i2c_1080p.ini +/etc/sensors/60fps/720p_imx307_i2c_2l.ini +/etc/sensors/bt656_720p.ini +/etc/sensors/gc2053_i2c_1080p.ini +/etc/sensors/gc4653_i2c_4M.ini +/etc/sensors/imx307_i2c_2l_1080p.ini +/etc/sensors/imx335_i2c_4M.ini +/etc/sensors/jxf23_i2c_1080p.ini +/etc/sensors/jxf23_i2c_dc_1080p.ini +/etc/sensors/sc200ai_i2c_1080p.ini +/etc/sensors/sc2232h_i2c_1080p.ini +/etc/sensors/sc2239_i2c_1080p.ini +/etc/sensors/sc2335_i2c_1080p.ini +/etc/sensors/sc223a_i2c_1080p.ini +/etc/sensors/smtsec_imx307_i2c_4l_1080p.ini +# +/etc/sensors/iq/f23.ini +/etc/sensors/iq/gc2053.ini +/etc/sensors/iq/sc2232.ini +/etc/sensors/iq/sc2335.ini +# +/usr/lib/sensors/libsns_bt656.so +/usr/lib/sensors/libsns_f23.so +/usr/lib/sensors/libsns_f37.so +/usr/lib/sensors/libsns_gc2053.so +/usr/lib/sensors/libsns_gc4653_2l.so +/usr/lib/sensors/libsns_imx307.so +/usr/lib/sensors/libsns_imx307_2l.so +/usr/lib/sensors/libsns_sc200ai.so +/usr/lib/sensors/libsns_sc223a.so +/usr/lib/sensors/libsns_sc223a_4l.so +/usr/lib/sensors/libsns_sc2239.so +/usr/lib/sensors/libsns_sc2335.so +/usr/lib/sensors/libsns_sc2232h.so +/usr/lib/sensors/libsns_sc3235.so +/usr/lib/sensors/libsns_sc3335.so +# +/lib/modules/4.9.37/kernel/drivers/i2c/*/*.ko +/lib/modules/4.9.37/kernel/drivers/scsi/*.ko +/lib/modules/4.9.37/kernel/fs/f2fs/*.ko