Repository navigation
nt98566_ultimate_xm-rm1: add the XM IPC-RM1-BLK562 (NT98566 + SC501AI, ATBM6062 USB Wi-Fi, pan/tilt) - #297
nt98566_ultimate_xm-rm1: add the XM IPC-RM1-BLK562 (NT98566 + SC501AI, ATBM6062 USB Wi-Fi, pan/tilt)#297Simi541 wants to merge 2 commits into
Conversation
…h ATBM6062 USB Wi-Fi XM pan/tilt dome board IPC-RM1-BLK562-M335-MINI-ETH V1.02 (sold as Loosafe), 16 MB NOR, stock firmware General_IPC_NT98566_N8-WQ_S38. Built on the IVG-N8S profile: the same 8 MB lite layout, the SC501AI kept and the IMX415 dropped. - Wi-Fi: atbm606x-openipc for the on-board ATBM6062 on USB (the stock firmware loads atbm6062u.ko), with a kernel fragment that turns off the kernel's cfg80211/mac80211 and keeps wireless extensions via R8712U, as on the Yoton WS03. USB host is in the generic config since OpenIPC/firmware#3038. - Night mode, confirmed on the board with the Day / Night pin map: single-pad IR-cut 225 (LOW at night), IR lamp 232, white lamp 233, photocell 231. - Pan/tilt: GPIO steppers 230 229 228 227 / 66 67 234 224, from the stock loadpublic XmMotor line; not yet run on hardware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LNoep3b7y4pGrqdg7ZUyks
PR Summary by Qodont98566_lite_xm-rm1: add XM IPC-RM1-BLK562 (NT98566, SC501AI, ATBM6062 Wi-Fi)
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
The flash is 16 MB, so the profile is ultimate rather than lite on the 8 MB layout: majestic ultimate with the NPU's object detector (nvtnpu-models), LAME, exFAT and ZeroTier, as firmware's nt98566 ultimate carries them, but on NOR. majestic-af is left out: the lens is fixed. The image is packaged with post-image-split.sh and the kernel read size firmware's nt98566_lite uses since the split move (OpenIPC/firmware#3049), so OpenIPC's Novatek U-Boot, which scans only up to 0x400000, boots it. The directory, defconfig, exclude list and upgrade URL follow the new name.
openipc-ai
left a comment
There was a problem hiding this comment.
Thanks, this is a careful first profile. Decoding XM's group << 4 | pin into kernel GPIO numbers, and confirming the night-mode pins on the board, is exactly the evidence a profile needs.
I pushed one change to the branch (8712c11) and renamed the PR to match. Since you haven't flashed anything from this branch yet, now was the cheapest moment for it:
nt98566_lite_xm-rm1→nt98566_ultimate_xm-rm1,BR2_OPENIPC_FLASH_SIZE="16". This repo builds boards with more than 8 MB of flash asultimate. Lite is a size compromise, and on this SoC it leaves out majestic ultimate and the NPU's object detector (nvtnpu-models). The package set is firmware'snt98566_ultimate(which is NAND-only) adapted to NOR:NVTNPU_MODELS,LAME,EXFAT,ZEROTIER. I left outMAJESTIC_AF, since this lens is fixed. The IVG-N8S profile you started from is still lite on the 8 MB layout only because it was added before that rule.- Split NOR layout. Firmware moved the NT98566 profiles to
post-image-split.shin OpenIPC/firmware#3049, together withBR2_OPENIPC_NOR_KERNEL_READ_SIZE=0x3B0000so OpenIPC's Novatek U-Boot (which scans only up to 0x400000) boots the image. Your defconfig, copied from IVG-N8S, had neither, so it would have built the old fixed layout. Both are in now. - The exclude list became
nt98566_ultimate.list, and the upgrade URL is nownt98566_ultimate_xm-rm1-nor.tgz. The rest is unchanged: the Wi-Fi fragment (the R8712U trick forWIRELESS_EXT, as on the WS03), the exclude list's contents, the pins.
This also settles the question you left open about fitting the 5 MB lite rootfs. CI will report the real size against the 16 MB layout.
I'm approving the CI run now. Once it's built, please flash it and report back, as you planned: boot, video, Wi-Fi (and whether the module needs a power GPIO), pan/tilt direction and phase order, and night mode on this image. With video, Wi-Fi and night mode confirmed on the CI image, it's ready to merge. Pan/tilt can stay "untested" in the README row if the stepper order still needs work.
|
CI fails inside the Wi-Fi driver package, not in this profile:
diff --git a/atbm606x/hal_apollo/mac80211/iface.c b/atbm606x/hal_apollo/mac80211/iface.c
index eed876b..d69b08d 100644
--- a/atbm606x/hal_apollo/mac80211/iface.c
+++ b/atbm606x/hal_apollo/mac80211/iface.c
@@ -1977,7 +1977,7 @@ static const struct net_device_ops ieee80211_monitorif_ops = {
.ndo_do_ioctl = ieee80211_netdev_ioctrl,
#endif
};
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 9))
static void ieee80211_if_free(struct net_device *dev)
{
free_percpu(dev->tstats);
@@ -1994,7 +1994,7 @@ static void ieee80211_if_setup(struct net_device *dev)
/* we will validate the address ourselves in ->open */
dev->validate_addr = NULL;
#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 9))
dev->needs_free_netdev = true;
dev->priv_destructor = ieee80211_if_free;
#elseChecked locally against the NT98566 kernel (openipc/linux
Could this go into OpenIPC/atbm_60xx, with |
Adds
nt98566_lite_xm-rm1: the XM pan/tilt dome board IPC-RM1-BLK562-M335-MINI-ETH V1.02 (sold as Loosafe). NT98566 + SmartSens SC501AI, 16 MB NOR (XM FM25Q128A), AltoBeam ATBM6062 Wi-Fi 6 on USB. Stock firmwareGeneral_IPC_NT98566_N8-WQ_S38(product IPG-N8-WQ-BL).It starts from
nt98566_lite_xm-ivg-n8s: the same 8 MB lite layout, with the SC501AI kept and the IMX415 dropped in the excludes list.What changes
Wi-Fi:
BR2_PACKAGE_ATBM606X_OPENIPC=y,wlandev atbm606x-generic-usb. The stock firmware loadsatbm6062u.ko wifi_bt_comb=1fromloadpublic. Following the Yoton WS03 profile, a kernel fragment turns off the kernel's cfg80211/mac80211 (the package brings its own) and keepsWIRELESS_EXTby building R8712U (CONFIG_STAGING=y). The excludes list then dropsr8712u.ko. USB host has been innt98566.generic.configsince nt9856x: USB host in the kernel configs firmware#3038.Night mode: confirmed on the board with the Day / Night pin map on a generic
nt98566_liteimage:irCutSingleInvert: trueThe wiki's IVG-N8S row has the photocell and white lamp the other way round.
Pan/tilt:
ptz_control gpio,ptz_gpio '230 229 228 227 66 67 234 224'. These come from the stockXmMotor gpio_pin=0x76,0x75,0x74,0x73,0x22,0x23,0x7A,0x70, which packs XM's group << 4 | pin, with group 7 = DSI and group 2 = S. In kernel numbers that isDSI_GPIO(n) = 0xE0 + nandS_GPIO(n) = 0x40 + n(gpio-nvt-na51089, base 0).README row.
Status
nt98566_liteimage.XmWlanDaemonhas one, kept in an encrypted config). The image size against the 5 MB lite rootfs is also unchecked. I'll flash the CI build and report back here.lightSensorInvertis left at its default for now; it will be set from the camera's saved config in a follow-up..github/scripts/ci-matrix.py --self-testpasses, and the change narrows the matrix to this one device.🤖 Generated with Claude Code
https://claude.ai/code/session_01LNoep3b7y4pGrqdg7ZUyks