Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ ZTE K545 T31X SC4336 ATBM6012B_USB NOR_16M done
XM IPG-G3-WR GK7202V300 JXH63 ATBM60321S_USB NOR_8M done
XM G2-WR-V (TFT robot) GK7201V300 JXH63P SSV6020_SDIO NOR_8M in progress, untested on hardware: LCD via openipc-spilcd, pan/tilt and IR-cut via mx2208a (motors)
XM IPC-RM1-BLK7202V3 GK7202V300 SC223A SV6115C/8188EUS NOR_8M video-yes, wifi-yes (ssv6x5x#1), pan/tilt-yes, ir+audio untested
XM IPC-RM1-BLK562 NT98566 SC501AI ATBM6062_USB NOR_16M testing: video-ok, ircut+lamps+photocell pins confirmed on generic nt98566_lite, wifi+pan/tilt untested, this image untested
```


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# atbm606x-openipc builds its own cfg80211.ko and mac80211.ko, with the same
# names and exports as the kernel's, so the kernel's are off.
# CONFIG_CFG80211 is not set
# CONFIG_MAC80211 is not set
# That cfg80211 still calls the kernel's wireless-extensions core
# (wireless_send_event), and WIRELESS_EXT is a hidden symbol only a driver
# can select. R8712U is the one on this kernel that needs nothing but WLAN and
# USB (ZD1201 needs CFG80211); it lives in staging, which the generic config
# leaves off. Its module is dropped from the image by the excludes list.
CONFIG_STAGING=y
CONFIG_R8712U=m
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Architecture
BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_NEON=y
BR2_ARM_ENABLE_VFP=y
BR2_ARM_FPU_VFPV3=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_19=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)/nt98566.generic.config"
# The generic NT98566 kernel (USB host since OpenIPC/firmware#3038) without its
# own cfg80211/mac80211, which atbm606x-openipc brings itself.
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(EXTERNAL_VENDOR)/board/$(OPENIPC_SOC_FAMILY)/nt98566-xm-rm1.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_WIREGUARD_LINUX_COMPAT=y
BR2_PACKAGE_WIREGUARD_TOOLS=y
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_ROOTFS_SQUASHFS=y
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y

# OpenIPC
BR2_OPENIPC_SOC_VENDOR="novatek"
BR2_OPENIPC_SOC_MODEL="nt98566"
BR2_OPENIPC_SOC_FAMILY="nt9856x"
BR2_OPENIPC_VARIANT="ultimate"
# 16 MB NOR (XM FM25Q128A). Ultimate, since the flash leaves room for it: majestic
# ultimate with the NPU's object detector (nvtnpu-models), LAME,
# exFAT and ZeroTier, on the split NOR layout.
BR2_OPENIPC_FLASH_SIZE="16"
BR2_OPENIPC_MAJESTIC="ultimate"

# Packages
# Wi-Fi: the on-board AltoBeam ATBM6062 on USB, which the stock firmware drives
# with atbm6062u.ko (insmod atbm6062u.ko wifi_bt_comb=1 in its loadpublic).
BR2_PACKAGE_ATBM606X_OPENIPC=y
BR2_PACKAGE_DROPBEAR_OPENIPC=y
BR2_PACKAGE_EXFAT_OPENIPC=y
BR2_PACKAGE_IPCTOOL=y
BR2_PACKAGE_LAME_OPENIPC=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_NOVATEK_OSDRV_NT9856X=y
BR2_PACKAGE_NOVATEK_OPENSDK=y
BR2_PACKAGE_NVTNPU_MODELS=y
BR2_PACKAGE_OPUS_OPENIPC=y
BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
BR2_PACKAGE_VTUND_OPENIPC=y
BR2_PACKAGE_YAML_CLI=y
BR2_PACKAGE_ZEROTIER_ONE=y
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_GENERAL_PATH)/scripts/post-image-split.sh"
# OpenIPC's Novatek U-Boot reads the kernel for the size its layout scan
# finds (the uImage up to the squashfs), not a fixed 2 MiB slot. Its
# published builds scan only up to 0x400000, so the squashfs, and with it
# the uImage's end, has to start below that for them to boot the image.
BR2_OPENIPC_NOR_KERNEL_READ_SIZE=0x3B0000
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/sh
#
# Perform basic settings on a known IP camera
#
# XM board IPC-RM1-BLK562-M335-MINI-ETH V1.02 (NT98566 + SC501AI, 16 MB NOR,
# AltoBeam ATBM6062 Wi-Fi 6 on USB), pan/tilt dome sold as Loosafe. Stock
# firmware General_IPC_NT98566_N8-WQ_S38 (product IPG-N8-WQ-BL).
#
# GPIO numbers are the kernel's (gpio-nvt-na51089, base 0): C_GPIO 0x00,
# P 0x20, S 0x40, L 0x60, D 0x80, H 0xA0, A 0xC0, DSI 0xE0, plus the pin.
#
#
# Set custom upgrade url
#
fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/nt98566_ultimate_xm-rm1-nor.tgz'
#
#
# Set wlan device and credentials if need
#
fw_setenv wlandev atbm606x-generic-usb
#fw_setenv wlanssid Router
#fw_setenv wlanpass 12345678
#
# Pan/tilt: two unipolar steppers straight from GPIO, pan coils first, then
# tilt. Stock loadpublic: XmMotor gpio_pin=0x76,0x75,0x74,0x73,0x22,0x23,0x7A,0x70
# x_stepmax=8388 y_stepmax=1438, packed as XM's group << 4 | pin with group 7
# the DSI pads and group 2 the S pads.
#
fw_setenv ptz_control gpio
fw_setenv ptz_gpio '230 229 228 227 66 67 234 224'
fw_setenv ptz_caps 'pan tilt'
#
# Set majestic settings
#
# Night mode, confirmed on this board with the Day / Night pin map: the IR-cut
# filter is a single pad (DSI 1, LOW at night), the IR lamp DSI 8 and the white
# lamp DSI 9 (both lit HIGH), the photocell DSI 7 (HIGH when dark). The XM
# IVG-N8S table in the wiki has the photocell and white lamp the other way
# round.
#
cli -s .nightMode.irCutPin1 225
cli -s .nightMode.irCutSingleInvert true
cli -s .nightMode.backlightPin 232
cli -s .nightMode.whiteLightPin 233
cli -s .nightMode.lightMonitor true
cli -s .nightMode.lightSensorPin 231

exit 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# The board's sensor is the SC501AI: every other sensor's files go.
/etc/sensors/imx415.yaml
/etc/sensors/os05a10.yaml
/etc/sensors/sc401ai.yaml
/etc/sensors/sc430ai.yaml
/etc/sensors/sen_imx415.cfg
/etc/sensors/sen_os05a10.cfg
/etc/sensors/sen_sc200ai.cfg
/etc/sensors/sen_sc2232h.cfg
/etc/sensors/sen_sc2239.cfg
/etc/sensors/sen_sc2335.cfg
/etc/sensors/sen_sc3335.cfg
/etc/sensors/sen_sc401ai.cfg
/etc/sensors/sen_sc4210.cfg
/etc/sensors/sen_sc4238.cfg
/etc/sensors/sen_sc430ai.cfg
/etc/sensors/sen_sc4335p.cfg
/etc/sensors/sen_sc450ai.cfg
/etc/sensors/sen_sc500ai.cfg
/etc/sensors/sen_sc8238.cfg
#
/etc/sensors/profiles/isp_imx415_0.cfg
/etc/sensors/profiles/isp_imx415_1.cfg
/etc/sensors/profiles/isp_sc2239_0.cfg
/etc/sensors/profiles/isp_sc2239_1.cfg
/etc/sensors/profiles/isp_sc401ai_0.cfg
/etc/sensors/profiles/isp_sc401ai_1.cfg
/etc/sensors/profiles/isp_sc430ai_0.cfg
/etc/sensors/profiles/isp_sc430ai_1.cfg
/etc/sensors/profiles/isp_sc4335p_0.cfg
/etc/sensors/profiles/isp_sc4335p_1.cfg
#
/lib/modules/4.19.91/novatek/nvt_sen_imx415.ko
/lib/modules/4.19.91/novatek/nvt_sen_sc401ai.ko
/lib/modules/4.19.91/novatek/nvt_sen_sc430ai.ko
/lib/modules/4.19.91/novatek/nvt_sen_sc500ai.ko
#
# Built only so its Kconfig selects WIRELESS_EXT for atbm606x-openipc's
# cfg80211 (see the kernel config fragment); nothing loads it.
/lib/modules/4.19.91/kernel/drivers/staging/rtl8712/r8712u.ko
Loading