Skip to content

xm530_lite_misecu-xm-63-ai-50w: add Misecu XM-63-AI-50W (XM550, SC5332, ATBM6032 USB) - #247

Merged
openipc-ai merged 1 commit into
masterfrom
misecu-xm-63-ai-50w
Nov 15, 2026
Merged

openipc-ai merged 1 commit into
masterfrom
misecu-xm-63-ai-50w

Conversation

@openipc-ai

Copy link
Copy Markdown
Contributor

Adds a device image for the Misecu XM-63-AI-50W 5MP, reported in OpenIPC/firmware#2853.

The camera

From the reporter's ipcinfo, sysinfo and /proc/mtd in firmware#2853:

  • SoC XM550, which the firmware builds as xm530 (BR2_OPENIPC_SOC_ALIASES="xm550")
  • SmartSens SC5332, already handled by load_xiongmai
  • AltoBeam ATBM6032i USB Wi-Fi (007a:8888), powered through wifi_pdn value=96 (the factory firmware's load chain)
  • 8 MB NOR with the standard 256k/64k/2048k/5120k layout

What this adds

A copy of xm530_lite_anbiux-a8b-3mp (builder#130), which has the same SoC family and radio:

  • defconfig: the same as the anbiux device, with ATBM60XX (603x, USB) on and MT7601U firmware off.
  • excludes: drops xm711.ko and compat.ko, the vendor Wi-Fi stack this radio does not use.
  • customizer: sets wlandev=atbm603x-xm530 (the profile from firmware#2316) and wifipdn=96, plus the upgrade URL. The reporter's night-mode pins are included but commented out (IR LEDs 39, white LEDs 41, IR-cut coils 1 and 2): the board has no light sensor, and the IR-cut coil polarity for majestic is not confirmed yet.
  • README: a new row, "in progress".

Testing

CI builds the image; check the size line in its log. Not yet run on this camera. The same profile and driver passed on the qemu-bench XM550 twin (WPA2 join, DHCP, ping) when firmware#2316 landed. The reporter's board would be the first real hardware.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Add Misecu XM-63-AI-50W 8 MB NOR image

✨ Enhancement 🕐 10-20 Minutes

Grey Divider

AI Description

• Add an XM550-compatible image for the Misecu XM-63-AI-50W with ATBM603X USB Wi-Fi.
• Configure Wi-Fi power and upgrades while excluding unused modules to fit the 8 MB flash.
• Mark hardware support in progress; night-mode pins remain inactive pending validation.
Diagram

graph TD
  Defconfig["Device defconfig"] --> Builder["Image builder"] --> Image["NOR image"] --> Camera["Misecu camera"]
  Excludes["Module excludes"] --> Builder
  Customizer["Boot customizer"] --> Builder
Loading
High-Level Assessment

A separate device profile based on the existing anbiux XM530-family profile fits the repository's device layout and keeps board-specific upgrade settings isolated. Sharing those small files through a new abstraction would add indirection without a clear benefit; hardware validation remains the important next step.

Files changed (4) +103 / -0

Enhancement (1) +72 / -0
xm530_lite_misecu-xm-63-ai-50w_defconfigDefine the XM550-compatible Misecu firmware build +72/-0

Define the XM550-compatible Misecu firmware build

• Adds an XM530-family lite configuration with an XM550 alias, 8 MB flash target, and ATBM603X USB driver. It omits MT7601U firmware and includes the standard Xiongmai and Majestic packages.

devices/xm530_lite_misecu-xm-63-ai-50w/br-ext-chip-xiongmai/configs/xm530_lite_misecu-xm-63-ai-50w_defconfig

Documentation (1) +1 / -0
README.mdList the Misecu camera as in progress +1/-0

List the Misecu camera as in progress

• Adds the XM550, SC5332, ATBM603X USB, and 8 MB NOR device to the supported-device list. Its status remains in progress.

README.md

Other (2) +30 / -0
customizer.shSet Misecu upgrade and Wi-Fi boot settings +26/-0

Set Misecu upgrade and Wi-Fi boot settings

• Sets the device-specific upgrade URL, ATBM603X Wi-Fi profile, and power-down GPIO 96. Documents reported night-mode GPIOs without enabling unverified IR-cut behavior.

devices/xm530_lite_misecu-xm-63-ai-50w/general/overlay/usr/share/openipc/customizer.sh

xm530_lite.listExclude unused Xiongmai Wi-Fi modules +4/-0

Exclude unused Xiongmai Wi-Fi modules

• Removes xm711.ko and compat.ko from the device image to leave room for the ATBM60XX driver on 8 MB flash.

devices/xm530_lite_misecu-xm-63-ai-50w/general/scripts/excludes/xm530_lite.list

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (1) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Wi-Fi factory module chain is not packaged for the camera 📎 Requirement gap ≡ Correctness
Description
The new defconfig and exclude list rely only on the OpenIPC ATBM60XX driver and delete xm711.ko
and compat.ko, but the diff adds no factory modules (dwc2/xm_usb0/cfg80211/xm713g), no
/usr/bin/wifi script, and no calibration files. The ticket identifies that factory load chain as
the workaround needed to initialize the ATBM6032i, so the built rootfs would not contain the files
the ticket requires. The PR description says the radio does not use the vendor stack, which departs
from the ticket without evidence; if the ticket's premise still holds, Wi-Fi may fail to initialize
on the first real board, and the author should either package the files or validate the departure on
hardware.
Code

devices/xm530_lite_misecu-xm-63-ai-50w/general/scripts/excludes/xm530_lite.list[R1-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
Evidence
The exclude list removes xm711.ko and compat.ko and the diff adds no factory Wi-Fi modules,
scripts, or calibration files, so the packaging that rules 2 and 5 require is absent from the
rootfs. The PR's own description says the radio is untested on hardware, so the departure from the
ticket's workaround is unverified.

Package the working ATBM6032i Wi-Fi module chain
Include factory Wi-Fi files in the built rootfs and verify upgrades
devices/xm530_lite_misecu-xm-63-ai-50w/general/scripts/excludes/xm530_lite.list[1-4]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
Issue description
The PR adds a Misecu XM-63-AI-50W device that relies only on the OpenIPC ATBM60XX driver. It removes xm711.ko and compat.ko via the exclude list and ships no factory Wi-Fi modules, scripts, or calibration files, though the linked ticket (OpenIPC/firmware#2853) says that factory load chain is needed to initialize the ATBM6032i.
Fix Focus Areas
- devices/xm530_lite_misecu-xm-63-ai-50w/general/scripts/excludes/xm530_lite.list[1-4]
- devices/xm530_lite_misecu-xm-63-ai-50w/general/overlay/usr/share/openipc/customizer.sh[12-13]
Recommended Fix
Either place the required factory modules, /usr/bin/wifi, and calibration files under general/overlay/ (not via an overridden BR2_ROOTFS_OVERLAY), confirm them in the built rootfs with unsquashfs, and keep xm711.ko/compat.ko if the chain needs them. Or, if the OpenIPC driver path is intentionally used, state in the README/PR that the factory chain is superseded and cite the evidence. Either way, do not claim Wi-Fi works until the build is verified on hardware.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Tip of the day
💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@openipc-ai

Copy link
Copy Markdown
Contributor Author

On Qodo's "factory module chain is not packaged" finding: this is intentional, and I'm not changing it.

  • The factory modules can't ship here. dwc2.ko, xm_usb0.ko, xm713g.ko, the factory cfg80211.ko and the calibration files were taken from the camera's stock image, and there is no source to rebuild them. OpenIPC does not ship binaries it can't rebuild from source.
  • The reporter's reason for using them no longer holds. In firmware#2853 they used the factory chain because atbm60xx "does not build against kernel 3.10". It does now: this PR's CI built atbm603x_wifi_usb.ko from source against the xm530 kernel, using the same pinned atbm_60xx revision as builder#130.
  • The factory cfg80211.ko is what firmware#2316 removed. It overwrites the kernel's own cfg80211, which breaks mac80211. The open driver loads against the kernel's cfg80211, through dwc_otg and wifi_pdn value=$wifipdn in the atbm603x-xm530 profile.
  • xm711.ko and compat.ko are a different vendor stack, for the XM711 radio. The ATBM chain never loads them.
  • It is tested on the twin, not on hardware. The image passed on the qemu-bench XM550 twin (WPA2 join, DHCP, ping). It has not run on this camera yet, and the README row says "in progress". I've asked the reporter in firmware#2853 for dmesg and ip addr from their board.

The CI build fits: uImage 1180/2048 KB, rootfs 4096/5120 KB.

@openipc-ai
openipc-ai merged commit 8cb96a1 into master Nov 15, 2026
7 checks passed
@openipc-ai
openipc-ai deleted the misecu-xm-63-ai-50w branch November 15, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant