From 64ecfa76ac05bd3fb0c3718a59f99603d7a398ec Mon Sep 17 00:00:00 2001 From: AI Dev Date: Sun, 15 Nov 2026 05:56:54 +0000 Subject: [PATCH] xm530_lite_misecu-xm-63-ai-50w: add Misecu XM-63-AI-50W (XM550, SC5332, ATBM6032 USB) --- README.md | 1 + .../xm530_lite_misecu-xm-63-ai-50w_defconfig | 72 +++++++++++++++++++ .../overlay/usr/share/openipc/customizer.sh | 26 +++++++ .../general/scripts/excludes/xm530_lite.list | 4 ++ 4 files changed, 103 insertions(+) create mode 100644 devices/xm530_lite_misecu-xm-63-ai-50w/br-ext-chip-xiongmai/configs/xm530_lite_misecu-xm-63-ai-50w_defconfig create mode 100644 devices/xm530_lite_misecu-xm-63-ai-50w/general/overlay/usr/share/openipc/customizer.sh create mode 100644 devices/xm530_lite_misecu-xm-63-ai-50w/general/scripts/excludes/xm530_lite.list diff --git a/README.md b/README.md index 9c23b1f31..04a01bef8 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ JVS INGT10 GQS60EP T10A OV9750 - NOR_8M done Lenovo Snowman 1080P HI3518EV200 SC2035 RTL8188EUS_USB NOR_16M in progress, LightSensor-no LSC 3215672 T23N SC2331 ATBM6012B_USB NOR_8M **INIT** - progress Meari Speed 6S SSC333 JXF37 RTL8188FU_USB NOR_16M video-yes, wifi-yes, motors-no +Misecu XM-63-AI-50W XM550 SC5332 ATBM603X_USB NOR_8M in progress Night Owl WCM-PWNVR20W-BU HI3518EV200 SC2135 RTL8188EUS_USB NOR_8M testing, video-ok, wifi-ok, ircut-ok, irled-ok, audio-ok, lightsensor-ok OpenIPC AIO Mario SSC338Q IMX335 RTL8812AU_USB NOR_16M done OpenIPC AIO Thinker SSC338Q IMX335 NOR_16M done diff --git a/devices/xm530_lite_misecu-xm-63-ai-50w/br-ext-chip-xiongmai/configs/xm530_lite_misecu-xm-63-ai-50w_defconfig b/devices/xm530_lite_misecu-xm-63-ai-50w/br-ext-chip-xiongmai/configs/xm530_lite_misecu-xm-63-ai-50w_defconfig new file mode 100644 index 000000000..26ec5d278 --- /dev/null +++ b/devices/xm530_lite_misecu-xm-63-ai-50w/br-ext-chip-xiongmai/configs/xm530_lite_misecu-xm-63-ai-50w_defconfig @@ -0,0 +1,72 @@ +# Architecture +BR2_arm=y +BR2_cortex_a5=y +BR2_ARM_INSTRUCTIONS_THUMB2=y + +# Toolchain +BR2_TOOLCHAIN_EXTERNAL=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-musleabi" +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)/xm530.generic.config" +BR2_LINUX_KERNEL_UIMAGE=y +BR2_LINUX_KERNEL_XZ=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_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="xiongmai" +BR2_OPENIPC_SOC_MODEL="xm530" +BR2_OPENIPC_SOC_FAMILY="xm530" +# xm550 is firmware-identical to xm530 (same SOC_FAMILY, kernel, osdrv); it is +# built only as xm530 now and routed here for cameras still reporting xm550. +BR2_OPENIPC_SOC_ALIASES="xm550" +BR2_OPENIPC_VARIANT="lite" +BR2_OPENIPC_FLASH_SIZE="8" + +# Packages +# ATBM60XX WiFi: AltoBeam ATBM6032 USB chip (007a:8888), PDN on gpio 96 (factory wifi_pdn value=96) +BR2_PACKAGE_ATBM60XX=y +BR2_PACKAGE_ATBM60XX_MODEL_603X=y +BR2_PACKAGE_ATBM60XX_INTERFACE_USB=y +BR2_PACKAGE_DROPBEAR_OPENIPC=y +BR2_PACKAGE_IPCTOOL=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_FIRMWARE_OPENIPC=y +# BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MEDIATEK_MT7601U is not set +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_VTUND_OPENIPC=y +BR2_PACKAGE_XIONGMAI_OPENSDK=y +BR2_PACKAGE_XIONGMAI_OSDRV_XM530=y +BR2_PACKAGE_YAML_CLI=y diff --git a/devices/xm530_lite_misecu-xm-63-ai-50w/general/overlay/usr/share/openipc/customizer.sh b/devices/xm530_lite_misecu-xm-63-ai-50w/general/overlay/usr/share/openipc/customizer.sh new file mode 100644 index 000000000..556a30f37 --- /dev/null +++ b/devices/xm530_lite_misecu-xm-63-ai-50w/general/overlay/usr/share/openipc/customizer.sh @@ -0,0 +1,26 @@ +#!/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/xm530_lite_misecu-xm-63-ai-50w-nor.tgz' +# +# Set wlan device, its PDN gpio and credentials if need +# +fw_setenv wlandev atbm603x-xm530 +fw_setenv wifipdn 96 +#fw_setenv wlanssid Router +#fw_setenv wlanpass 12345678 +# +# Night mode, as reported in OpenIPC/firmware#2853: IR LEDs on gpio 39, white +# LEDs on gpio 41, IR-cut coils on gpio 1 and 2. The board has no light +# sensor, and which coil majestic should call irCutPin1 is not confirmed yet. +#cli -s .nightMode.backlightPin 39 +#cli -s .nightMode.irCutPin1 1 +#cli -s .nightMode.irCutPin2 2 +# +(sleep 3 ; reboot -f) & + +exit 0 diff --git a/devices/xm530_lite_misecu-xm-63-ai-50w/general/scripts/excludes/xm530_lite.list b/devices/xm530_lite_misecu-xm-63-ai-50w/general/scripts/excludes/xm530_lite.list new file mode 100644 index 000000000..81c5e5bd5 --- /dev/null +++ b/devices/xm530_lite_misecu-xm-63-ai-50w/general/scripts/excludes/xm530_lite.list @@ -0,0 +1,4 @@ +# This device carries the AltoBeam ATBM6032 (USB) radio; prune the +# wifi stacks it does not use to leave room for the atbm60xx module. +/lib/modules/3.10.103+/xiongmai/xm711.ko +/lib/modules/3.10.103+/xiongmai/compat.ko