Skip to content

t40_lite_movols-mo-805p add support speaker/nand profile - #276

Open
igorssv wants to merge 20 commits into
OpenIPC:masterfrom
igorssv:new_cam
Open

igorssv wants to merge 20 commits into
OpenIPC:masterfrom
igorssv:new_cam

Conversation

@igorssv

@igorssv igorssv commented Nov 28, 2026

Copy link
Copy Markdown

Defile speaker pin for t40_lite_movols-mo-805p

And add nand support for the same camera Movols MO-805P (initially is has nand flash)

Can not add nand flash support to t40_lite_movols-mo-805p with nor flash because kernel options CONFIG_MTD_INGENIC_SFC_V2_NORFLASH and CONFIG_MTD_INGENIC_SFC_V2_NANDFLASH can not be use together. So I created additional profile only for nand flash.

Need firmware as rootfs.ubifs.t40 file with embedded kernel as /boot/uImage.

Tested functionlaity: network, video, mic, speaker, ir light, white light.

igorssv added 2 commits November 28, 2026 20:20
Can not add nand flash support to t40_lite_movols-mo-805p with nor flash
because kernel options CONFIG_MTD_INGENIC_SFC_V2_NORFLASH and
CONFIG_MTD_INGENIC_SFC_V2_NANDFLASH can not be use together.
@qodo-free-for-open-source-projects

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

Copy link
Copy Markdown

PR Summary by Qodo

Add seven camera profiles, fix Yoton WS03 boot and Movols speaker pin

✨ Enhancement 🐞 Bug fix ⚙️ Configuration changes 🕐 40+ Minutes

Grey Divider

AI Description

• Adds seven new device profiles: Tuya F1602-D2, XM G2-WR-V, Escam QF002, Yeskamo NK02, XM IVG-N8S,
 VStarcam C8622, and Movols MO-805P NAND.
• Fixes Yoton WS03 uImage entry point and env config; sets the Movols MO-805P speaker pin to GPIO
 68.
• Updates README device status, CI matrix, and firmware drift records to match the new and changed
 profiles.
Merge Risk 🔴 High

Blast radius 🔴 High 💥 5 capabilities

  • 5 affected capabilities span independent functional scopes: Automatic LED control integration, Heimvision PE3020W firmware integration, Movols MO-805P T40 NAND integration, Movols MO-805P audio integration, Yoton WS03 firmware integration.
  • The changed DTB selection, uImage load address, and fw_env mapping jointly determine boot and environment access for this one board image; no other device consumes these board files.
  • The changed package selection and exclude list affect the contents and wireless support of one board image; they do not alter other device profiles.
  • All three changed scripts implement the same helper behavior invoked by the corresponding automatic LED service; the user outcome is status LED control, not three separate technical capabilities.
  • The kernel configuration, UBI volume layout, boot image placement, and runtime overlays jointly implement this NAND board's bootable camera firmware.
  • They are one bounded device integration.
  • The customizer and GPIO map jointly configure one speaker amplifier control path on the existing T40 NOR camera.
Sources

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/board/t40/ubinize-nand.cfg[11-26]

[rootfs]
mode=ubi
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_alignment=1
image=BR2_ROOTFS_UBIFS_PATH

[rootfs_data]
mode=ubi
vol_id=1
vol_type=dynamic
vol_name=rootfs_data
vol_alignment=1
vol_size=2MiB
vol_flags=autoresize
Behavioral complexity 🔴 High 🧩 Multiple interactions

  • Before, this NAND board profile was absent.
  • After, U-Boot loading, UBI volume IDs and names, PEB/LEB geometry, rootfs image placement, autoresize behavior, kernel options, and overlay preservation must agree across first-write and upgrade states.
  • New correctness conditions include booting from /boot/uImage inside rootfs while preserving rootfs_data across upgrades.
Sources

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/board/t40/ubinize-nand.cfg[11-26]

[rootfs]
mode=ubi
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_alignment=1
image=BR2_ROOTFS_UBIFS_PATH

[rootfs_data]
mode=ubi
vol_id=1
vol_type=dynamic
vol_name=rootfs_data
vol_alignment=1
vol_size=2MiB
vol_flags=autoresize
Potential damage 🔴 High 🩹 Critical loss

  • A mismatch among UBI volume IDs, UBIFS geometry, U-Boot loading path, kernel configuration, or rootfs layout can make the NAND image unbootable or leave the camera without its writable runtime.
  • Reverting code does not repair a malformed flashed NAND image automatically.
  • A corrected image and reflashing are required for boot/layout failures.
  • Existing overlay state may require volume recreation or migration; the autoresize design supports future image growth only when the layout is valid.
Sources

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/board/t40/ubinize-nand.cfg[11-26]

[rootfs]
mode=ubi
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_alignment=1
image=BR2_ROOTFS_UBIFS_PATH

[rootfs_data]
mode=ubi
vol_id=1
vol_type=dynamic
vol_name=rootfs_data
vol_alignment=1
vol_size=2MiB
vol_flags=autoresize
Assessed commit 49e21f5
Diagram

graph TD
  A["Device defconfig"] --> B["Kernel config"] --> C["Rootfs build"] --> E["Firmware image"]
  A --> D["Overlay scripts"] --> C
  D --> F["customizer.sh and gpio.conf"]
  F --> G["Majestic runtime"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Split into one PR per device profile
  • ➕ Each board can be reviewed and reverted on its own
  • ➕ Titles and descriptions match the diff
  • ➕ Hardware test notes stay with the device they apply to
  • ➖ More PRs for maintainers to review
  • ➖ Shared files like README and ci-matrix.py would conflict across PRs
2. Keep one bundled PR, grouped by commit
  • ➕ One review cycle and one merge
  • ➕ Shared CI and README edits land together
  • ➖ Hard to bisect or revert a single board
  • ➖ Large diff hides regressions in unrelated profiles

Recommendation: The PR bundles seven unrelated device profiles, two fixes, and doc/CI updates. Each profile is independently testable and revertable, so the best path is one PR per device (or one per logical group, such as the Movols NAND profile with its speaker fix). Splitting would also make the title and description match the diff. The PR's own scope, the Movols speaker pin and NAND profile, is coherent, but it is only a small part of the diff.

Files changed (52) +3742 / -10

Bug fix (7) +22 / -5
ak3918av130_lite_yoton-ws03_defconfigSet uImage load address past header to 0x80008040 +3/-1

Set uImage load address past header to 0x80008040

• Changes the uImage load address to 0x80008040 because the stock U-Boot runs the image in place. Booting with the header at 0x80008000 hung, so the entry point must skip the 64-byte header.

devices/ak3918av130_lite_yoton-ws03/br-ext-chip-anyka/configs/ak3918av130_lite_yoton-ws03_defconfig

muxes.shSet stepper pads to GPIO function at boot +12/-0

Set stepper pads to GPIO function at boot

• Writes zero to five pinmux registers so the pan/tilt pads are GPIO and gpio-motors can drive them.

devices/hi3518ev100_lite_escam-qf002/general/overlay/usr/share/openipc/muxes.sh

autoled.shFix autoled getopts flags to match cases +1/-1

Fix autoled getopts flags to match cases

• Changes the getopts string from H:L:i:h to p:s:i:h so the -p and -s options parse.

devices/hi3518ev300_lite_xiaomi-mjsxj02hl/general/overlay/usr/sbin/autoled.sh

autoled.shFix autoled getopts flags to match cases +1/-1

Fix autoled getopts flags to match cases

• Changes the getopts string from H:L:i:h to p:s:i:h so the -p and -s options parse.

devices/t31_lite_xiaomi-mjsxj03hl-jxq03/general/overlay/usr/sbin/autoled.sh

autoled.shFix autoled getopts flags to match cases +1/-1

Fix autoled getopts flags to match cases

• Changes the getopts string from H:L:i:h to p:s:i:h so the -p and -s options parse.

devices/t31_lite_xiaomi-mjsxj03hl/general/overlay/usr/sbin/autoled.sh

customizer.shEnable speaker output on pin 68 for MO-805P +3/-0

Enable speaker output on pin 68 for MO-805P

• Enables audio output and sets speaker pin 68 with the inverted polarity.

devices/t40_lite_movols-mo-805p/general/overlay/usr/share/openipc/customizer.sh

gpio.confSet speaker GPIO to 68 for MO-805P +1/-1

Set speaker GPIO to 68 for MO-805P

• Changes the speaker entry from -1 to 68 so the speaker pin is known to majestic.

devices/t40_lite_movols-mo-805p/general/overlay/usr/share/openipc/gpio.conf

Documentation (2) +41 / -3
README.mdAdd new devices and update statuses in device table +10/-3

Add new devices and update statuses in device table

• Adds rows for the new boards and the Movols NAND variant, and updates status notes for XiongMai 7201V2_02M10, VStarcam C23S, and VStarcam C8622 with the issue references.

README.md

NOTES.mdAdd release notes for Tuya F1602-D2 board +31/-0

Add release notes for Tuya F1602-D2 board

• Documents the MIS4001 sensor library source, the flip/mirror and Bayer-table fixes, and how to set pan/tilt orientation when the camera is hung upside down.

devices/fh8852v200_lite_tuya-f1602-d2/NOTES.md

Other (43) +3679 / -2
firmware-drift.jsonRecord reconciled overlay for Tuya F1602-D2 modules +7/-0

Record reconciled overlay for Tuya F1602-D2 modules

• Adds one drift entry for the fh8852v200 Tuya F1602-D2 overlay modules file, with its blob hash and reconciliation date.

.github/firmware-drift.json

ci-matrix.pyAdd Novatek and Fullhan boards to CI matrix +2/-0

Add Novatek and Fullhan boards to CI matrix

• Adds nt98566_lite_xm-ivg-n8s and fh8852v200_lite_tuya-f1602-d2 to the CI build list.

.github/scripts/ci-matrix.py

ak3918av130-yoton-ws03.configSelect WS03 device tree for kernel build +3/-0

Select WS03 device tree for kernel build

• Sets CONFIG_AK_OPENIPC_DTB to ak3918av130-ws03 so the WS03 board tree is appended instead of the EVB tree.

devices/ak3918av130_lite_yoton-ws03/br-ext-chip-anyka/board/ak3918ev300/ak3918av130-yoton-ws03.config

fw_env.configPoint fw_printenv at a file-backed environment +6/-0

Point fw_printenv at a file-backed environment

• Points fw_env.config at /etc/ws03.env (4 KiB at offset 0) so fw_printenv and fw_setenv work without writing flash, since the vendor U-Boot environment sits at an unexpected offset.

devices/ak3918av130_lite_yoton-ws03/general/overlay/etc/fw_env.config

ws03.envAdd empty U-Boot environment image for WS03 +0/-0

Add empty U-Boot environment image for WS03

• Adds the 4 KiB environment image referenced by fw_env.config. The diff shows no content, so it is probably a binary or placeholder.

devices/ak3918av130_lite_yoton-ws03/general/overlay/etc/ws03.env

ak3918ev300_lite_heimvision-pe3020w_defconfigDrop libv4l packages from PE3020W defconfig +0/-2

Drop libv4l packages from PE3020W defconfig

• Removes BR2_PACKAGE_LIBV4L and LIBV4L_UTILS from the defconfig. The diff does not give a reason.

devices/ak3918ev300_lite_heimvision-pe3020w/br-ext-chip-anyka/configs/ak3918ev300_lite_heimvision-pe3020w_defconfig

ak3918ev300_lite.listExclude unused staging RTL8188EU and mac80211 modules +6/-0

Exclude unused staging RTL8188EU and mac80211 modules

• Excludes r8188eu.ko and mac80211.ko because the RTL8188FU driver (8188fu) needs only cfg80211 and has no alias in r8188eu.

devices/ak3918ev300_lite_heimvision-pe3020w/general/scripts/excludes/ak3918ev300_lite.list

fh8852v200_lite_tuya-f1602-d2_defconfigNew defconfig for Tuya F1602-D2 (FH8852V200) +81/-0

New defconfig for Tuya F1602-D2 (FH8852V200)

• Defines the FH8852V200 lite build with RTL8733BU Wi-Fi, QR-code Wi-Fi setup, MIS4001 sensor, motors, and majestic with WebUI.

devices/fh8852v200_lite_tuya-f1602-d2/br-ext-chip-fullhan/configs/fh8852v200_lite_tuya-f1602-d2_defconfig

gpiostep.confPan/tilt travel, directions, and delays for F1602-D2 +31/-0

Pan/tilt travel, directions, and delays for F1602-D2

• Sets measured pan and tilt travel, direction signs, homing delay, and frame-step counts for the stepper head.

devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/gpiostep.conf

S96resetbtnAdd 10-second hold reset button watcher +59/-0

Add 10-second hold reset button watcher

• Adds an init script that polls GPIO27 and runs firstboot after a 10-second hold. It ignores short presses and only arms after a release, so a stuck button cannot loop resets.

devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/init.d/S96resetbtn

modulesLoad gpiostep with board pan/tilt pins +3/-0

Load gpiostep with board pan/tilt pins

• Loads vfat and exfat, and gpiostep with the F1602-D2 pan and tilt GPIO lists.

devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/modules

customizer.shSet sensor, Wi-Fi, day/night, audio, PTZ, and SD bus width +86/-0

Set sensor, Wi-Fi, day/night, audio, PTZ, and SD bus width

• Sets MIS4001 sensor, RTL8733BU driver, IR-cut and light pins, photocell thresholds, speaker pin, two-way audio, gpiostep PTZ, and fh_mci.buswidth=1 for the 1-bit SD slot.

devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/usr/share/openipc/customizer.sh

fh8852v200_lite.listExclude unused sensors, drivers, and a qrscan sound +60/-0

Exclude unused sensors, drivers, and a qrscan sound

• Excludes unused sensor libraries and tuning files, other USB Wi-Fi drivers, and the qrscan joined sound to save space.

devices/fh8852v200_lite_tuya-f1602-d2/general/scripts/excludes/fh8852v200_lite.list

gk7201v300_lite_xm-g2-wr-v_defconfigNew defconfig for XM G2-WR-V (GK7201V300) +90/-0

New defconfig for XM G2-WR-V (GK7201V300)

• Defines the GK7201V300 build with SSV6020 Wi-Fi, SPI TFT LCD, MX2208A motors, and QR-code Wi-Fi setup.

devices/gk7201v300_lite_xm-g2-wr-v/br-ext-chip-goke/configs/gk7201v300_lite_xm-g2-wr-v_defconfig

S96mx2208aStart MX2208A pan/tilt follower at boot +29/-0

Start MX2208A pan/tilt follower at boot

• Releases the coils, homes the head, and starts the follower daemon that moves the IR-cut with day/night. Stop releases the coils.

devices/gk7201v300_lite_xm-g2-wr-v/general/overlay/etc/init.d/S96mx2208a

mx2208a.confAdd MX2208A clock, data, latch, and travel config +13/-0

Add MX2208A clock, data, latch, and travel config

• Sets the GPIO pins, pan and tilt travel limits, inversions, step delay, and IR-cut day drive for the MX2208A.

devices/gk7201v300_lite_xm-g2-wr-v/general/overlay/etc/mx2208a.conf

sdioBring up SSV6020 Wi-Fi on SDIO slot +53/-0

Bring up SSV6020 Wi-Fi on SDIO slot

• Powers the radio via GPIO8, sets SDIO pads, rebinds mmc1 once per boot, then loads ssv6x5x and waits for wlan0.

devices/gk7201v300_lite_xm-g2-wr-v/general/overlay/etc/wireless/sdio

gpio-motorsLink gpio-motors to mx2208a +1/-0

Link gpio-motors to mx2208a

• Adds a one-line file so the WebUI's gpio-motors call resolves to mx2208a.

devices/gk7201v300_lite_xm-g2-wr-v/general/overlay/usr/bin/gpio-motors

customizer.shSet sensor, night mode, audio, and PTZ for G2-WR-V +44/-0

Set sensor, night mode, audio, and PTZ for G2-WR-V

• Sets the JX-H63P sensor, memory split, light-sensor and LED pins, speaker amplifier pin, and gpio-motors PTZ control.

devices/gk7201v300_lite_xm-g2-wr-v/general/overlay/usr/share/openipc/customizer.sh

gpio.confMap G2-WR-V GPIO roles for majestic +13/-0

Map G2-WR-V GPIO roles for majestic

• Assigns IR and white light, light sensor, speaker, SD power, and reset button GPIOs.

devices/gk7201v300_lite_xm-g2-wr-v/general/overlay/usr/share/openipc/gpio.conf

muxes.shSet pad muxes for LCD, motors, and sensors at boot +62/-0

Set pad muxes for LCD, motors, and sensors at boot

• Writes pinmux registers for SPI LCD, MX2208A, IR, light, speaker, Wi-Fi power, and reset pads, then powers the SD slot.

devices/gk7201v300_lite_xm-g2-wr-v/general/overlay/usr/share/openipc/muxes.sh

gk7201v300_lite.listExclude unused sensor libraries and SCSI modules +29/-0

Exclude unused sensor libraries and SCSI modules

• Removes unused sensor tuning files, sensor libraries, and SCSI kernel modules from the image.

devices/gk7201v300_lite_xm-g2-wr-v/general/scripts/excludes/gk7201v300_lite.list

hi3518ev100_lite_escam-qf002_defconfigNew defconfig for Escam QF002 (HI3518EV100) +68/-0

New defconfig for Escam QF002 (HI3518EV100)

• Defines the HI3518EV100 lite build with RTL8188EUS Wi-Fi, GPIO motors, and Mosquitto.

devices/hi3518ev100_lite_escam-qf002/br-ext-chip-hisilicon/configs/hi3518ev100_lite_escam-qf002_defconfig

customizer.shSet pan/tilt GPIO list and Ethernet PHY addresses +46/-0

Set pan/tilt GPIO list and Ethernet PHY addresses

• Sets the 8-pin stepper GPIO list, the PHY addresses for both ports, and reboots after 3 seconds so the kernel command line takes effect.

devices/hi3518ev100_lite_escam-qf002/general/overlay/usr/share/openipc/customizer.sh

hi3518ev100_lite.listExclude unused HI3518EV100 sensor libraries +51/-0

Exclude unused HI3518EV100 sensor libraries

• Removes unused sensor libraries and tuning files from the image.

devices/hi3518ev100_lite_escam-qf002/general/scripts/excludes/hi3518ev100_lite.list

hi3518ev200_lite_yeskamo-nk02_defconfigNew defconfig for Yeskamo NK02 (HI3518EV200) +67/-0

New defconfig for Yeskamo NK02 (HI3518EV200)

• Defines the HI3518EV200 lite build with RTL8188EUS Wi-Fi and majestic with WebUI.

devices/hi3518ev200_lite_yeskamo-nk02/br-ext-chip-hisilicon/configs/hi3518ev200_lite_yeskamo-nk02_defconfig

customizer.shSet light sensor, IR-cut, Wi-Fi, and disable MCI +35/-0

Set light sensor, IR-cut, Wi-Fi, and disable MCI

• Sets light sensor and IR-cut pins, backlight pin, H.264 at 30 fps, rtl8188eu-generic Wi-Fi, and disables hisi_mci.

devices/hi3518ev200_lite_yeskamo-nk02/general/overlay/usr/share/openipc/customizer.sh

hi3518ev200_lite.listExclude unused HI3518EV200 sensor libraries +64/-0

Exclude unused HI3518EV200 sensor libraries

• Removes unused sensor libraries and tuning files, and the staging RTL8188EU module.

devices/hi3518ev200_lite_yeskamo-nk02/general/scripts/excludes/hi3518ev200_lite.list

nt98566_lite_xm-ivg-n8s_defconfigNew defconfig for XM IVG-N8S (NT98566) +76/-0

New defconfig for XM IVG-N8S (NT98566)

• Defines the NT98566 lite build on the 8 MB NOR layout, with the NOR kernel read size set for the U-Boot scan.

devices/nt98566_lite_xm-ivg-n8s/br-ext-chip-novatek/configs/nt98566_lite_xm-ivg-n8s_defconfig

customizer.shSet custom upgrade URL for IVG-N8S +8/-0

Set custom upgrade URL for IVG-N8S

• Sets the firmware upgrade URL to this board's NOR tarball.

devices/nt98566_lite_xm-ivg-n8s/general/overlay/usr/share/openipc/customizer.sh

imx415.yamlAdd IMX415 sensor descriptor for 4-lane 4K +11/-0

Add IMX415 sensor descriptor for 4-lane 4K

• Adds an IMX415 sensor YAML with 3840x2160 input, 2560x1440 stream, 4 lanes, and stop registers.

devices/nt98566_lite_xm-ivg-n8s/general/package/novatek-osdrv-nt9856x/files/sensor/imx415.yaml

nt98566_lite.listExclude unused Novatek sensor and driver modules +33/-0

Exclude unused Novatek sensor and driver modules

• Removes unused SC-series sensor configs, profiles, and kernel modules from the image.

devices/nt98566_lite_xm-ivg-n8s/general/scripts/excludes/nt98566_lite.list

t23_lite_vstarcam-c8622_defconfigNew defconfig for VStarcam C8622 (T23N) +72/-0

New defconfig for VStarcam C8622 (T23N)

• Defines the T23 lite build with AIC8800DC USB Wi-Fi, GC1084 sensor, reset button, and quirc.

devices/t23_lite_vstarcam-c8622/br-ext-chip-ingenic/configs/t23_lite_vstarcam-c8622_defconfig

customizer.shSet night mode, OSD, audio, and memory split +53/-0

Set night mode, OSD, audio, and memory split

• Sets lamp pins, light thresholds, OSD template, AAC audio with speaker pin 63, GC1084 sensor, and osmem/rmem sizes.

devices/t23_lite_vstarcam-c8622/general/overlay/usr/share/openipc/customizer.sh

gpio.confDocument C8622 GPIO roles for the reset button +19/-0

Document C8622 GPIO roles for the reset button

• Maps the reset button, lamps, speaker, and USB power GPIO roles, with comments on the GC6153F-driven IR-cut.

devices/t23_lite_vstarcam-c8622/general/overlay/usr/share/openipc/gpio.conf

muxes.shPark C8622 lamps off and enable Wi-Fi power +19/-0

Park C8622 lamps off and enable Wi-Fi power

• Exports and configures GPIOs 49, 61, 62, and 50, holds the shared brightness line high, and parks the lamps off at boot.

devices/t23_lite_vstarcam-c8622/general/overlay/usr/share/openipc/muxes.sh

t23_lite.listExclude unused T23 USB and filesystem modules +9/-0

Exclude unused T23 USB and filesystem modules

• Removes unused I2C, USB serial, USB network, and f2fs kernel modules from the image.

devices/t23_lite_vstarcam-c8622/general/scripts/excludes/t23_lite.list

t40.generic.configAdd T40 kernel config with NAND MTD and UBIFS +2209/-0

Add T40 kernel config with NAND MTD and UBIFS

• Adds a full MIPS T40 kernel config with the SFC V2 NAND driver selected, UBI and UBIFS on, and the NOR driver off.

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/board/t40/t40.generic.config

ubinize-nand.cfgDefine UBI volumes for 128 MiB SPI NAND +26/-0

Define UBI volumes for 128 MiB SPI NAND

• Defines rootfs and rootfs_data UBI volumes with 2 KiB pages and 128 KiB PEBs, and sizes rootfs_data at 2 MiB with autoresize.

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/board/t40/ubinize-nand.cfg

t40_ultimate_lite_movols-mo-805p-nand_defconfigNew defconfig for Movols MO-805P NAND (T40N) +71/-0

New defconfig for Movols MO-805P NAND (T40N)

• Defines the T40 build with the UBI rootfs, motors, and Zerotier, and a 16 MB flash size.

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig

customizer.shSet H.265 main and sub streams and audio for NAND +48/-0

Set H.265 main and sub streams and audio for NAND

• Sets 2560x1440 H.265 main stream and 640x360 H.264 sub stream, ulaw audio, speaker pin 68, and IR-cut and LED pins.

devices/t40_lite_movols-mo-805p-nand/general/overlay/usr/share/openipc/customizer.sh

gpio.confMap Movols NAND GPIO roles +13/-0

Map Movols NAND GPIO roles

• Assigns IR-cut, IR and white light, and speaker GPIOs. Button, LED, and USB are unused.

devices/t40_lite_movols-mo-805p-nand/general/overlay/usr/share/openipc/gpio.conf

t40_ultimate.listAdd placeholder exclude list for Movols NAND +3/-0

Add placeholder exclude list for Movols NAND

• Adds a commented-out exclude list with placeholder entries and no active rules.

devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_ultimate.list

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

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

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (7) 📜 Skill insights (0)

Grey Divider


Action required

1. NAND camera may not build by device name 📘 Rule violation ≡ Correctness ⭐ New
Description
The defconfig is named t40_ultimate_lite_movols-mo-805p-nand_defconfig inside a device directory
named t40_lite_movols-mo-805p-nand, so the stem does not equal the directory name. Build and CI
discovery keyed on the directory name will not find this configuration, so the device can be absent
from the BOARD build and the CI matrix.
Code

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[R1-3]

+# Architecture
+BR2_mipsel=y
+BR2_mips_xburst=y
Evidence
The new defconfig path embeds t40_ultimate_lite_... while the device directory uses
t40_lite_movols-mo-805p-nand. The defconfig stem must equal the device directory name.

CLAUDE.md: Use Valid Device Names and Matching Defconfig Paths
devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[1-3]

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

## Issue description
The NAND Movols MO-805P defconfig is named `t40_ultimate_lite_movols-mo-805p-nand_defconfig` but its device directory is `t40_lite_movols-mo-805p-nand`. The defconfig stem must exactly match the directory name for discovery.

## Fix Focus Areas
- devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[1-3]

## Recommended Fix
Rename the file to `t40_lite_movols-mo-805p-nand_defconfig` in the same `configs/` directory. Update any references to the old name in the repo (CI, docs, workflows) to match.

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


2. NAND self-update targets wrong archive 📘 Rule violation ≡ Correctness ⭐ New
Description
fw_setenv upgrade in the NAND customizer points to t40_ultimate_movols-mo-805p-nand-nand.tgz,
omitting the _lite_ segment in the defconfig base name used to name the published artifact. Every
NAND camera receives this URL on first boot, so sysupgrade and WebUI self-updates request an archive
that CI does not publish under that name.
Code

devices/t40_lite_movols-mo-805p-nand/general/overlay/usr/share/openipc/customizer.sh[5]

+fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/t40_ultimate_movols-mo-805p-nand-nand.tgz'
Evidence
The device directory contains t40_ultimate_lite_movols-mo-805p-nand_defconfig. The builder selects
the defconfig, the CI matrix uses its base name as NAME, and the release step names the NAND
package ${NAME}-nand.tgz; together, those steps yield
t40_ultimate_lite_movols-mo-805p-nand-nand.tgz. The customizer URL instead names
t40_ultimate_movols-mo-805p-nand-nand.tgz, without _lite_. The doubled -nand suffix is
consistent with the release naming rule; the missing segment is the mismatch.

CLAUDE.md: Configure First-Boot Settings for the Device
devices/t40_lite_movols-mo-805p-nand/general/overlay/usr/share/openipc/customizer.sh[5-5]
.github/workflows/master.yml[332-385]
builder.sh[121-122]
.github/scripts/ci-matrix.py[152-157]
devices/t40_lite_movols-mo-805p-nand/general/overlay/usr/share/openipc/customizer.sh[1-6]

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

## Issue description
The NAND customizer sets an upgrade URL whose filename omits `_lite_` from the defconfig base name. CI publishes the NAND archive as `${NAME}-nand.tgz`, so the configured URL does not name the published artifact.

## Fix Focus Areas
- devices/t40_lite_movols-mo-805p-nand/general/overlay/usr/share/openipc/customizer.sh[5-5]
- devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[1-1]

## Recommended Fix
Change the upgrade URL to `https://github.com/OpenIPC/builder/releases/download/latest/t40_ultimate_lite_movols-mo-805p-nand-nand.tgz`, and confirm that filename against the release output before merging. If the intended published name is instead `t40_ultimate_movols-mo-805p-nand-nand.tgz`, rename the defconfig to match that base name and consider aligning the device directory name as well.

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


3. Tuya owners cannot factory-reset cameras 🐞 Bug ≡ Correctness ⭐ New
Description
S96resetbtn configures and reads /sys/class/gpio/GPIO27, but exporting GPIO 27 creates the
lowercase gpio27 directory. On the Tuya profile, the watcher repeatedly reads a nonexistent value
file, so holding the button never reaches firstboot.
Code

devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/init.d/S96resetbtn[R12-13]

+	[ -d /sys/class/gpio/GPIO$GPIO ] || echo $GPIO > /sys/class/gpio/export
+	echo in > /sys/class/gpio/GPIO$GPIO/direction
Evidence
The new service exports GPIO 27 but then uses an uppercase directory for both setup and polling.
Existing reset services in the repository use the lowercase sysfs directory name.

devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/init.d/S96resetbtn[10-18]
devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/init.d/S96resetbtn[20-29]
devices/hi3518ev200_lite_lenovo-snowman-1080p/general/overlay/usr/sbin/resetd[12-20]

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

## Issue description
The Tuya reset-button watcher uses uppercase GPIO sysfs directory names, so it cannot read the exported button or trigger a factory reset.

## Fix Focus Areas
- devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/init.d/S96resetbtn[12-17]

## Recommended Fix
Change every `/sys/class/gpio/GPIO$GPIO` reference in `setup` and `watch` to `/sys/class/gpio/gpio$GPIO`, then verify that a held button reaches `firstboot`.

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


View action required (2)
4. Nand camera left out of device list 📘 Rule violation ⚙ Maintainability
Description
The new devices/t40_lite_movols-mo-805p-nand device is added with its defconfig, overlay and
excludes files, but the PR never adds a row for it to the README device table. A new device absent
from the documented inventory is not discoverable by users reading the README, which is the defined
place for the supported-boards list.
Code

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_lite_movols-mo-805p-nand_defconfig[R1-3]

+# Architecture
+BR2_mipsel=y
+BR2_mips_xburst=y
Evidence
The diff adds the new nand device directory and its defconfig, but no README.md hunk appears, so the
device table has no entry for it.

CLAUDE.md: Document New Devices in the README: CLAUDE.md: Document New Devices in the README: CLAUDE.md: Document New Devices in the README: CLAUDE.md: Document New Devices in the README

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

## Issue description
The new device `devices/t40_lite_movols-mo-805p-nand` is not listed in the README.md device table, so the documented device inventory is incomplete.
## Fix Focus Areas
- devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_lite_movols-mo-805p-nand_defconfig[1-3]
## Recommended Fix
Add a row to the README.md device table for `t40_lite_movols-mo-805p-nand` following the format of the existing rows (SoC, flavor, camera model, flash type nand). If the device is a rebrand of an existing board, also add it to the clones table.

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


5. The NAND flash image is not published ⊘ Outdated Bug Correctness
Description
The new defconfig generates UBI and UBIFS files but does not configure a post-image step to package
or name the required rootfs.ubifs.t40 image. The builder archives neither raw format, while the
release workflow accepts NAND firmware only as an openipc*nand* package, so a successful build
does not make the documented flash image available through those paths.


Remediation recommended

6. NAND build sized for 16 MB, not 128 MB 📘 Rule violation ≡ Correctness ⭐ New
Description
BR2_OPENIPC_FLASH_SIZE is set to 16 while the same file's comments describe a 128 MiB SPI NAND
part. Any flash-size-dependent layout or check driven by this value is computed for a 16 MB device
rather than the 128 MiB part.
Code

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[R47-48]

+BR2_OPENIPC_VARIANT="ultimate"
+BR2_OPENIPC_FLASH_SIZE="16"
Evidence
The defconfig's own NAND layout comment and ubinize config describe a 128 MiB SPI NAND, but the
flash-size selection is 16. The rule requires the defconfig to select the device's actual flash
size.

CLAUDE.md: Match Device Defconfig to Hardware
devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[34-35]
devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[47-48]

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

## Issue description
The NAND defconfig sets `BR2_OPENIPC_FLASH_SIZE="16"` but its comments describe a 128 MiB SPI NAND. The selected flash size does not match the hardware.

## Fix Focus Areas
- devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[34-35]
- devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_ultimate_lite_movols-mo-805p-nand_defconfig[47-48]

## Recommended Fix
Check which unit the `BR2_OPENIPC_FLASH_SIZE` value is interpreted in for NAND targets. If it is in MB, set it to `128`. If the value is ignored for NAND, add a comment saying so to avoid confusion.

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


7. Novatek build uses 8 MB on 16 MB chip 📘 Rule violation ≡ Correctness ⭐ New
Description
The defconfig selects BR2_OPENIPC_FLASH_SIZE="8" on a chip the comments call 16 MB, and the README
row for this camera says NOR_16M. The inventory and the build disagree on the flash size, so the
author's deliberate choice is only documented inside the defconfig.
Code

devices/nt98566_lite_xm-ivg-n8s/br-ext-chip-novatek/configs/nt98566_lite_xm-ivg-n8s_defconfig[R45-48]

+# it is firmware's nt98566_lite layout, the one the owner's camera runs
+# today, and the rest of the chip is rootfs_data. The 16 MB layout is a
+# different partition table and has not been tried on this board.
+BR2_OPENIPC_FLASH_SIZE="8"
Evidence
The comment states the chip is 16 MB (GD25Q128) while the selected flash size is 8. The rule
requires the defconfig to select the device's actual flash size, and the README row also records 16
MB.

CLAUDE.md: Match Device Defconfig to Hardware
devices/nt98566_lite_xm-ivg-n8s/br-ext-chip-novatek/configs/nt98566_lite_xm-ivg-n8s_defconfig[45-48]
README.md[118-118]

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

## Issue description
The Novatek XM IVG-N8S defconfig selects an 8 MB flash size while the chip is 16 MB and the README row says NOR_16M. The deliberate 8 MB layout choice is only explained in a comment.

## Fix Focus Areas
- devices/nt98566_lite_xm-ivg-n8s/br-ext-chip-novatek/configs/nt98566_lite_xm-ivg-n8s_defconfig[45-48]

## Recommended Fix
If the 8 MB layout is intentional, keep it, but make the README row and the comment consistent: state that the device runs the 8 MB layout on a 16 MB chip. Otherwise switch `BR2_OPENIPC_FLASH_SIZE` to `16` and verify the 16 MB layout on hardware.

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


8. Fullhan reset button logic is duplicated 📘 Rule violation ⚙ Maintainability ⭐ New
Description
S96resetbtn reimplements GPIO polling, a 10-second hold, and factory reset inside the device
overlay, while the defconfig does not select the existing reset-button package used by other
devices. Any later fix to the shared reset behaviour must be made here separately, and the copies
can drift apart.
Code

devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/init.d/S96resetbtn[R1-4]

+#!/bin/sh
+# Reset button (camera3, FH8852V200): GPIO27 on pad 60, idle=1, pressed=0.
+# Hold for 10 s -> factory reset (firstboot: wipe overlay + reboot). Short presses are ignored.
+# Arms only after the button has been seen released, so a stuck button cannot loop resets.
Evidence
The overlay adds a full reset watcher script. The sibling devices (t23, gk7201v300) select
BR2_PACKAGE_RESET_BUTTON for the same function, so this copy is reusable payload in the device
overlay. Whether the package can handle this board's pad mux is not verified from the diff.

CLAUDE.md: Keep Device Payload Minimal and Device-Specific
devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/init.d/S96resetbtn[1-4]
devices/t23_lite_vstarcam-c8622/br-ext-chip-ingenic/configs/t23_lite_vstarcam-c8622_defconfig[67-67]

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

## Issue description
The Fullhan F1602-D2 overlay carries its own reset-button watcher script (`S96resetbtn`) that duplicates the shared reset-button package used by other devices in the tree. The defconfig does not select that package.

## Fix Focus Areas
- devices/fh8852v200_lite_tuya-f1602-d2/general/overlay/etc/init.d/S96resetbtn[1-4]
- devices/fh8852v200_lite_tuya-f1602-d2/br-ext-chip-fullhan/configs/fh8852v200_lite_tuya-f1602-d2_defconfig[70-80]

## Recommended Fix
Check whether `BR2_PACKAGE_RESET_BUTTON` with a `button=` entry in `gpio.conf` can handle the GPIO27 pad setup this board needs. If it can, delete `S96resetbtn` and use the package. If it cannot, add a comment in the overlay explaining why the shared package is not used.

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


View review recommended (2)
9. Nand build's upgrade link fetches the nor image ✓ Resolved Rule violation Correctness
Description
The NAND customizer leaves fw_setenv upgrade commented out, and that line still names the NOR
archive t40_lite_movols-mo-805p-nor.tgz rather than an asset for the NAND profile that ships
rootfs.ubifs.t40. On first boot, an inherited NOR upgrade setting remains in place; uncommenting
the line would likewise direct the camera’s upgrade flow to a NOR image.

10. Nand exclusion list prunes no files 📘 Rule violation ☼ Reliability
Description
The t40_lite.list file added for the nand device contains only commented placeholder lines
(XXX), so no rootfs path is excluded and the image keeps every default file. Given the nand
profile targets a fixed flash size, the unpruned rootfs may exceed capacity, but the PR does not
show a size check to confirm this.
Code

devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list[R1-3]

+#/lib/modules/..XXX.ko
+#
+#/etc/sensor/XXX
Evidence
Every line of the new exclude list is a comment (#/lib/modules/..XXX.ko, #/etc/sensor/XXX), so
the file is an unfilled template that excludes unused rootfs files for this device's flash budget
not at all.

devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list: devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list: devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list: devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list
CLAUDE.md: Preserve Required Drivers and Sensors in Rootfs Exclusions: CLAUDE.md: Preserve Required Drivers and Sensors in Rootfs Exclusions: CLAUDE.md: Preserve Required Drivers and Sensors in Rootfs Exclusions: CLAUDE.md: Preserve Required Drivers and Sensors in Rootfs Exclusions

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

## Issue description
The nand device's exclusion list `t40_lite.list` contains only commented template placeholders (`XXX`), so it removes no unused rootfs files for the nand image.
## Fix Focus Areas
- devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list[1-3]
## Recommended Fix
Replace the placeholders with the real unused paths for this device (for example unused WiFi or sensor modules not needed by the gc4653 sensor and the nand profile), while keeping the gc4653 sensor `.so`/`.ini` files and the WiFi `.ko` modules the device needs. If the placeholder is intentional, verify the image fits the 8 MB flash budget and document that in the PR.

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


Grey Divider

Context sources
✅ Context preparation
  Commit messages: summarized; full text retained for this review
Review mode: Auto: 🧠 Deep: Large cross-cutting PR adds many independent runtime profiles and NAND behavior.

Grey Divider

Tip of the day
💡 Did you know, you can open the rule or relationship behind a finding in one click

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit 49e21f5 🧠 Deep

Results up to commit N/A


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


Action required
1. Nand camera left out of device list 📘 Rule violation ⚙ Maintainability
Description
The new devices/t40_lite_movols-mo-805p-nand device is added with its defconfig, overlay and
excludes files, but the PR never adds a row for it to the README device table. A new device absent
from the documented inventory is not discoverable by users reading the README, which is the defined
place for the supported-boards list.
Code

devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_lite_movols-mo-805p-nand_defconfig[R1-3]

+# Architecture
+BR2_mipsel=y
+BR2_mips_xburst=y
Evidence
The diff adds the new nand device directory and its defconfig, but no README.md hunk appears, so the
device table has no entry for it.

CLAUDE.md: Document New Devices in the README: CLAUDE.md: Document New Devices in the README

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

## Issue description
The new device `devices/t40_lite_movols-mo-805p-nand` is not listed in the README.md device table, so the documented device inventory is incomplete.
## Fix Focus Areas
- devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/configs/t40_lite_movols-mo-805p-nand_defconfig[1-3]
## Recommended Fix
Add a row to the README.md device table for `t40_lite_movols-mo-805p-nand` following the format of the existing rows (SoC, flavor, camera model, flash type nand). If the device is a rebrand of an existing board, also add it to the clones table.

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


2. The NAND flash image is not published ⊘ Outdated Bug Correctness
Description
The new defconfig generates UBI and UBIFS files but does not configure a post-image step to package
or name the required rootfs.ubifs.t40 image. The builder archives neither raw format, while the
release workflow accepts NAND firmware only as an openipc*nand* package, so a successful build
does not make the documented flash image available through those paths.


Remediation recommended
3. Nand build's upgrade link fetches the nor image ✓ Resolved Rule violation Correctness

Resolving commit: 49e21f5

Resolution reason
The stale commented NOR URL was replaced by an active fw_setenv upgrade line pointing to a
NAND-profile archive, so the NAND build no longer directs upgrades to the NOR image.
Description
The NAND customizer leaves fw_setenv upgrade commented out, and that line still names the NOR
archive t40_lite_movols-mo-805p-nor.tgz rather than an asset for the NAND profile that ships
rootfs.ubifs.t40. On first boot, an inherited NOR upgrade setting remains in place; uncommenting
the line would likewise direct the camera’s upgrade flow to a NOR image.

4. Nand exclusion list prunes no files 📘 Rule violation ☼ Reliability
Description
The t40_lite.list file added for the nand device contains only commented placeholder lines
(XXX), so no rootfs path is excluded and the image keeps every default file. Given the nand
profile targets a fixed flash size, the unpruned rootfs may exceed capacity, but the PR does not
show a size check to confirm this.
Code

devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list[R1-3]

+#/lib/modules/..XXX.ko
+#
+#/etc/sensor/XXX
Evidence
Every line of the new exclude list is a comment (#/lib/modules/..XXX.ko, #/etc/sensor/XXX), so
the file is an unfilled template that excludes unused rootfs files for this device's flash budget
not at all.

devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list: devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list
CLAUDE.md: Preserve Required Drivers and Sensors in Rootfs Exclusions: CLAUDE.md: Preserve Required Drivers and Sensors in Rootfs Exclusions

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

## Issue description
The nand device's exclusion list `t40_lite.list` contains only commented template placeholders (`XXX`), so it removes no unused rootfs files for the nand image.
## Fix Focus Areas
- devices/t40_lite_movols-mo-805p-nand/general/scripts/excludes/t40_lite.list[1-3]
## Recommended Fix
Replace the placeholders with the real unused paths for this device (for example unused WiFi or sensor modules not needed by the gc4653 sensor and the nand profile), while keeping the gc4653 sensor `.so`/`.ini` files and the WiFi `.ko` modules the device needs. If the placeholder is intentional, verify the image fits the 8 MB flash budget and document that in the PR.

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


Grey Divider

Qodo Logo

@openipc-ai openipc-ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The speaker pin on the existing NOR profile (first commit) is fine as it is. Separating NAND into its own profile is also the right call, since SFC_V2_NORFLASH and SFC_V2_NANDFLASH can't both be built. Its kernel config is the NOR profile's with only those two options plus MTD_UBI/UBIFS_FS changed, which is exactly what it should be. Three things on the NAND profile before it can go in:

  1. The release package won't contain the file you flash. You need rootfs.ubifs.t40 (UBIFS with the kernel at /boot/uImage). Without a ubinize-nand.cfg for the t40 family, firmware's Makefile falls through to the generic NAND branch, which packages only uImage + rootfs.ubi. The branch that ships uImage, rootfs.ubifs and rootfs.ubi (REPACK_NAND_UBIFS) is chosen when br-ext-chip-ingenic/board/t40/ubinize-nand.cfg exists. Please add one under devices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/board/t40/ and point BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE at it. Its volumes must match what the stock U-Boot on this camera expects (volume names, and where it reads /boot/uImage from). You have the board, so you're the one who can get that right. Please paste the U-Boot printenv (bootcmd/bootargs) in the PR so we can check it against the layout.
  2. Flash size and flavor. BR2_OPENIPC_FLASH_SIZE="8" is the NOR profile's value, but this one is NAND. A board with more than 8 MB of flash is built as ultimate: lite is a size compromise, and on NAND there's no size pressure to justify dropping features. That means t40_ultimate_movols-mo-805p-nand, based on firmware's t40_ultimate_defconfig, with excludes/t40_ultimate.list. Your memory split (osmem 48M, rmem 80M) and the customizer can stay as they are.
  3. Self-update URL. It's commented out, and it still names the NOR package. CI publishes this profile's image as <device>-nand.tgz, so after the rename it should read …/releases/download/latest/t40_ultimate_movols-mo-805p-nand-nand.tgz.

Also, please add a README row for the camera (Movols MO-805P T40 GC4653 …). The NOR profile doesn't have one either.

I'll approve the CI run once these are in, so the build checks the real package.

@igorssv
igorssv marked this pull request as draft December 4, 2026 08:55
openipc-ai and others added 18 commits December 5, 2026 21:23
… what was found (OpenIPC#275)

- XiongMai 7201V2_02M10 (gk7201v200_lite_xm-7201v2-02m10-sp2308-rtl8733bu-16mb):
  an owner reports Wi-Fi, sensor, microphone and IR-cut working on the
  released image (OpenIPC#248).
- VStarcam C23S: the note said the IR LEDs run off a local dusk switch. On
  the one unit checked the LEDs light from a bench supply, but covering the
  photodiode does not switch them on, and whether they ever lit under the
  stock firmware is unconfirmed (OpenIPC#255). The note now says only that no SoC
  pin switches them and the local switch did not fire.
…a file (OpenIPC#277)

* ak3918av130_lite_yoton-ws03: uImage entry 0x80008040 for the stock U-Boot

This board's U-Boot reads the uImage to 0x80008000, prints "XIP Kernel
Image" and jumps to the entry without relocating, so the entry has to be
the zImage past the 64-byte header. On the camera the same kernel hung
with the header at 0x80008000 and booted with it 64 bytes lower
(OpenIPC/firmware#2962). Buildroot writes this value as both the load and
the entry address, so mkimage now reports load and entry 0x80008040.

Nothing else in the profile changes; a board on OpenIPC's own U-Boot,
which relocates the image, is not affected.

* ak3918av130_lite_yoton-ws03: keep the environment in a file, not in flash

fw_printenv and fw_setenv find the environment by its CRC over 0x10000,
0x20000 or 0x40000 bytes. Here the environment is 0x1000 bytes at 0x3c000,
so neither ever finds it, and 0x40000 -- where OpenIPC puts its environment
-- holds the vendor U-Boot's device tree (d00dfeed there). fw_setenv
wlandev therefore fails without writing anything, S40network's
`fw_printenv -n wlandev` comes back empty, and the radio is never
configured (OpenIPC/firmware#2962).

Point fw_env.config at /etc/ws03.env instead: a 4 KiB environment image
made with mkenvimage, carrying wlandev=atbm606x-generic-usb, the value
that /etc/wireless/usb knows for this board's radio. Every OpenIPC script
that calls fw_printenv or fw_setenv then works unchanged, and the device
tree at 0x40000 is never written.
…lanes (OpenIPC#279)

* nt98566_lite_xm-ivg-n8s: add the XM IVG-N8S, its IMX415 on four MIPI lanes

NT98566 + Sony IMX415 on a 16 MB NOR (GD25Q128 id), Ethernet only. The
profile is firmware's nt98566_lite with one delta: imx415.yaml runs the
sensor in mode 0 with `lanes: 4` instead of the shared file's mode 3.

The board routes all four data lanes: the owner found the stock
firmware setting up four, and ran exactly this yaml on the camera with
majestic test-nt9856x-1-20261128 (OpenIPC/majestic#390): serial_if_pinmux
0x00000F01, lane map 0 1 2 3, sensor 0x4001 = 0x3, 25 fps and a clean
2560x1440 picture. Mode 0 is the same 3840x2160 30 fps 10-bit frame as
mode 3 at half the per-lane rate, so stream size and memory use are
unchanged.

It lives here rather than in novatek-osdrv-nt9856x because mode 3 on two
lanes works on any IMX415 board and mode 0 on four only where all four
are wired: a per-device value, which is why OpenIPC/firmware#2973 was
closed in favour of this device. The file replaces the package's own at
general/package/novatek-osdrv-nt9856x/files/sensor/imx415.yaml.

The excludes list drops the other sensors the nt9856x package ships
(sc401ai/sc430ai/sc500ai/sc501ai drivers, their yaml and ISP profiles,
and the SmartSens sen_*.cfg), which this board never loads. The image
keeps firmware's 8 MB NOR layout, the one the owner already runs.

This is the first Novatek device, so ci-matrix.py gets it as the novatek
smoke target; --self-test requires one per vendor. This image itself has
not run on the camera yet.

* nt98566_lite_xm-ivg-n8s: say why the defconfig keeps the 8 MB layout on a 16 MB chip

* nt98566_lite_xm-ivg-n8s: capture into three RAW frames, 16 fps becomes 25

With two RAW frames the capture of this 3840x2160 sensor keeps waiting
for videoproc to hand one back: vcap NEW 25 / wrn 9 / PROC 16, and the
2560x1440 stream runs at 16 fps. The owner measured a third frame
(majestic test-nt9856x-3-20261128, OpenIPC/majestic#389): NEW 25 / wrn 0 /
PROC 24-25, encoder 24/24, DDR1 Free 0x01020000, snapshots served.

That was the shipped mode 3 yaml; mode 0 on four lanes behaved the same
as mode 3 in every other run. A majestic without the key ignores it and
captures into two frames, as before.
…ops (OpenIPC#281)

Mode 2 (2x2 binned) sets 0x3020-0x3022 to 1, and nothing on this board
resets the sensor between two starts: the owner held GPIO 65 low for six
seconds while streaming and the picture never stopped, so it is not
XCLR. The registers survive into the next start, and the 4K modes then
deliver no frames until they are cleared by hand (OpenIPC/majestic#390).

majestic's sensor.stop_regs (in the majestic nightly from 2026-11-29) writes the listed
registers as the capture stops, while the sensor still answers, and
reads each back. The owner ran exactly this line on the camera with
test-nt9856x-4-20261129: mode 2, killall majestic ("3 of 3
sensor.stop_regs put back"), then mode 3 gave a picture with
0x3020-0x3022 = 0 and no i2cset; this yaml's 4-lane mode 0 still
streams after a reboot with it.
OpenIPC#286)

* gk7201v300_lite_xm-g2-wr-v: add the XM G2-WR-V robot camera with a TFT

GK7201V300, JX-H63P (I2C0 0x80, one MIPI lane, 720p), 64 MB, 8 MB NOR,
iComm SSV6020 Wi-Fi on SDIO (sold as "SSV6158M"), and a 240x320 SPI
TFT on the front.

- Wi-Fi: XmWlanDaemon powers the SSV6020 from GPIO1_0 (gpio8) and
  leaves it low when on; /etc/wireless/sdio does the same before
  loading ssv6x5x.
- Screen: muxes.sh puts SPI0, D/C, reset, TE and PWM3 on their pads
  (from the vendor's XmDemux table), and openipc-spilcd brings the panel
  up from /etc/lcd_cfg.json, which links to the NV3030B table the
  reference unit carries. Units with another panel take their own from
  the stock /mnt/mtd/Log/lcd_cfg.json.
- Not done: IR-cut (driven through an MX2208A, pins unknown) and
  pan/tilt (XmMotor's serial protocol).

Needs gk7201v300_lite and openipc-spilcd from OpenIPC/firmware.
Not yet run on the camera.

* gk7201v300_lite_xm-g2-wr-v: IR-cut, lights, speaker and pan/tilt

The rest of the board, from the vendor's own JSON (LIBXMVIDEO,
LIBXMCAP, XMSERVICES_MGR) and XmMotor:

- Pan/tilt and IR-cut: /etc/mx2208a.conf for openipc-mx2208a, with the
  MX2208A on gpio51/40/15 (clock, data, latch) and the reference unit's
  travel, 4100 x 750 half-steps. The head is homed at boot, as the stock
  firmware does. The WebUI's PTZ pad drives it (ptz_control=gpio).
- Day/night: photoresistor on gpio50 (inverted), IR LEDs on gpio13, white
  light on gpio4; no irCutPin, since the filter is behind the MX2208A.
- Speaker amplifier on gpio68.
- muxes.sh puts every one of these pads on its function, writing the
  vendor's own values where its Gpios2Env lists them.

Unknown until it runs on the camera: which IR-cut drive closes the
filter (ircut_day), the motors' directions, and whether gpio4 is the
white light or the IR dimming control.

* gk7201v300_lite_xm-g2-wr-v: mx2208a from motors, its direction and IR-cut polarity

mx2208a now comes with the motors package (OpenIPC/motors#50) rather than
a firmware package of its own, so the board carries what is board policy:

- /usr/bin/gpio-motors links to mx2208a, and BR2_PACKAGE_MAJESTIC_WEBUI_PTZ
  is set, for the WebUI's PTZ pad.
- S96mx2208a releases the coils, homes the head into both stops as the
  stock firmware does at boot, and runs the IR-cut follower.
- /etc/mx2208a.conf gains what the stock firmware says: XmMotor's
  g_xyDir=0 walks the half-step table backwards as the position rises, so
  pan_invert=1 tilt_invert=1; and day is IR-cut drive 1 on a unit carrying
  NoIRCutReverseFlag, as the reference unit does.
- The reset button is GPIO0_0 (FrontBoard "ResetGpio"), noted in muxes.sh.

* gk7201v300_lite_xm-g2-wr-v: power the SD slot, and name the white light's pad

gpio70 is the SD card's power switch, active low: the vendor's
XMSERVICES_MGR.json "TestConfig": {"SdPowerPin": [8, 6],
"SdActiveLevel": 0}, which is why its Gpios2Env muxes that pad as a GPIO.
muxes.sh now drives it low. gpio4, the white light, is PWM1's pad
("UsePWMNo": 1); with no PWM in this kernel, majestic switches it as a
plain GPIO.

* gk7201v300_lite_xm-g2-wr-v: the panel and mx2208a by firmware's options

OpenIPC/firmware#3035 merged with both opt-in: openipc-spilcd links
/etc/lcd_cfg.json to the panel BR2_PACKAGE_OPENIPC_SPILCD_PANEL names, and
motors builds mx2208a only with BR2_PACKAGE_MOTORS_MX2208A. The defconfig
is regenerated from firmware's gk7201v300_lite with this board's
differences (SSV6020 Wi-Fi, the NV3030B panel, mx2208a, the WebUI's PTZ),
and the overlay's own lcd_cfg.json link goes: the package makes it.

* gk7201v300_lite_xm-g2-wr-v: QR Wi-Fi setup, the reset button, gpio.conf

- quirc-openipc: show the camera a Wi-Fi QR code and it joins.
- reset-button on gpio0 (FrontBoard "ResetGpio", GPIO0_0, pad 0x100c0008
  put on GPIO in muxes.sh): hold to reboot or factory-reset.
- /usr/share/openipc/gpio.conf, the per-device pin map, with the pins
  already known: button 0, IR LEDs 13, white light 4, light sensor 50,
  SD power 70, speaker 68.

* gk7201v300_lite_xm-g2-wr-v: bring the SSV6020 up as the vendor driver does

The vendor's ssv6x5x.ko does the board's Wi-Fi bring-up in initWlan(),
before it registers the driver: it powers the radio from gpio8, muxes the
SDIO1 pads (nothing else does; XmDemux leaves them to the Wi-Fi driver),
and calls bsp_sdio_rescan(1). OpenIPC's build of the driver does none of
it, so mmc1 never saw a card and wlan0 never appeared: a unit flashed with
this profile booted with no SDIO card on mmc1.

Do the same in the profile: power the radio, mux the pads, and rebind
10020000.sdhci, which probes the controller and the card anew. The rebind
runs once per boot, and only with no SDIO card present, as each probe takes
the next slot of the driver's three-entry mci_host[] table and remove never
frees one.
…penIPC#291)

* fh8852v200_lite_tuya-f1602-d2: add the Tuya F1602-D2 pan/tilt camera

* README: add the Tuya F1602-D2

* firmware-drift: shadow entry for the F1602-D2's etc/modules

* S96resetbtn: don't start a second watcher

* ustomizer.sh: set fh_mci.buswidth=1 even if another value is there

* fh8852v200_lite_tuya-f1602-d2: make S96resetbtn and customizer.sh executable

rcS runs init scripts as "$i start", so S96resetbtn does not start
without the bit; the web upload dropped it.

* ci-matrix: fh8852v200_lite_tuya-f1602-d2 is the Fullhan smoke target

It is the first Fullhan device in the tree, and the selector's
self-test requires a smoke target for every SoC vendor.

* fh8852v200_lite_tuya-f1602-d2: leave out the other dongles' Wi-Fi drivers

With RTL8733BU the rootfs came to 5444 KB of its 5120 KB. The generic
image's in-kernel USB Wi-Fi drivers (r8188eu, mt7601u, rtl8192cu), the
mac80211 they sit on and the MT7601U firmware take about 450 KB of it,
and this board's 8733bu.ko needs only cfg80211, which stays.

---------

Co-authored-by: AI Dev <ai@openipc.org>
… and mirror-only (OpenIPC#292)

* fh8852v200_lite_tuya-f1602-d2: fix the MIS4001 Bayer table for normal and mirror-only

* fh8852v200_lite_tuya-f1602-d2: NOTES.md for the Bayer table fix
* fh8852v200_lite_tuya-f1602-d2: Wi-Fi setup from a QR code

* fh8852v200_lite_tuya-f1602-d2: exclude qrscan's sound file
XiongMai board HI3518E_RA50H10L_8188_S39: HI3518EV100, JXH22, RTL8188EUS
on USB, 8M NOR, GPIO stepper pan/tilt.

The generic hi3518ev100_lite image has no room for 8188eu.ko (260 KB
over its 5120 KB rootfs cap), so this image drops MT7601U and the unused
sensor libraries instead. customizer.sh sets the Wi-Fi profile, the
pan/tilt pins and the PHY addresses Ethernet needs; muxes.sh switches
the stepper pads to GPIO on every boot.
… options it documents (OpenIPC#295)

getopts was given "H:L:i:h", so -p and -s (handled by the case and listed
in the help) were rejected as illegal options and the script exited via
show_help, while -H and -L were accepted but never used.
* t23_lite_vstarcam-c8622: add the Vstarcam C8622 board

Ingenic T23 + GC1084, AIC8800DC USB wifi, 8MB NOR.

GC1084 support is entirely upstream: the sensor driver from
openingenic HEAD (added for t23 in OpenIPC/openingenic#58), and
gc1084.yaml with the ISP tuning bin from firmware#2997.

IR lamp on GPIO61, white lamp on GPIO50, both gated by the shared
PB17 brightness line that muxes.sh holds high; speaker amp on
GPIO63; reset button on GPIO58.

WiFi builds from openipc/aic8800 through an aic8800-openipc .mk
override that tracks the same HEAD as the stock package and only
adds installing the repo's fw/aic8800DC into /lib/firmware, so no
prebuilt modules or firmware blobs ship in the overlay; the
/etc/wireless/usb arm modprobes the modules and reports wlan0 once
it appears.

Pan/tilt and the IR-cut filter hang off a GC6153F stepper driver
chip this profile does not drive yet; the gc6153 userspace package
and the majestic-af actuator patch are staged on the
vstarcam-c8622-ptz branch.

* Update gpio.conf to include wifi enable pin

* Update muxes.sh to include gpio 62

* t23_lite_vstarcam-c8622: use the stock aic8800-openipc firmware install

OpenIPC/firmware#3003 taught the stock package to install the selected
variant's firmware, pinned to the same 0e218ed, so the device override
goes away and the defconfig just picks the DC variant.

* Update README.md - include that sd in progress

* t23_lite_vstarcam-c8622: use the shared aic8800-generic wireless profile

OpenIPC/firmware#3023 added an aic8800-generic arm to wireless/usb that
modprobes aic8800 (pulling aic_load_fw and cfg80211 via modules.dep) and
waits for wlan0, which is all the board override did. Point wlandev at it
and drop the profile's copy of the script.

* t23_lite_vstarcam-c8622: switch the reset button to the reset-button package

The firmware's reset-button daemon reads the same button=58 from
gpio.conf (pressed low, as wired) and adds what the resetd.sh shell
loop never had: a reboot tier at 5 s, factory reset at 15 s, and a
stuck-button guard past 30 s. rc.local existed only to launch resetd.

* t23_lite_vstarcam-c8622: drop the commented sensor lines from the excludes list

A board build installs only the defconfig sensor's yaml and bin
(gc1084 here), so those entries could never match anything.
…PC#294)

The sensor library and its tuning now come from OpenIPC/openfullhan
through the firmware's fullhan-opensdk package, in place of the stock
firmware's library this profile carried (OpenIPC/firmware#3027). Same
register values; live image.flip / image.mirror switches no longer leave
a magenta picture (OpenIPC/majestic#416).
…travel (OpenIPC#296)

* fh8852v200_lite_tuya-f1602-d2: upright by default, measured pan/tilt travel

Updated pan and tilt travel values and adjusted camera orientation settings.

* fh8852v200_lite_tuya-f1602-d2: upright by default, measured pan/tilt travel

Update camera settings to set image flip and mirror to false.

* fh8852v200_lite_tuya-f1602-d2: upright by default, measured pan/tilt travel

Clarified camera orientation settings and adjustments for upside down usage.
…ules nothing loads (OpenIPC#298)

Frees about 1.4 MB of the 5 MiB root (4.98 -> 3.58 MiB on the current nightly), so the next majestic for the EV200/EV300 fits: v4l-utils, libv4l and the libstdc++ they kept (-1140 KB), r8188eu.ko (-148 KB; no alias for this board's RTL8188FU) and mac80211.ko (-124 KB; 8188fu needs cfg80211 alone). Checked on the qemu-bench EV300 twin; Wi-Fi without mac80211 still wants the camera.
* Add build files for yeskamo nk02.

Signed-off-by: Luca <dev@luaxlab.de>

* hi3518ev200_lite_yeskamo-nk02: a defconfig, not a full .config

The defconfig was a whole Buildroot .config (4207 lines), carrying a local
BR2_EXTERNAL path and the fixed NOR package. It is now the short form the
other hi3518ev200 lite boards use, on the split NOR layout: the generic
hi3518ev200 lite set with RTL8188EUS in place of MT7601U, no motors (the
NK02 has no pan/tilt), and the sensor named.

The five files under board/hi3516cv200 were unchanged copies of the
firmware's and are dropped. The exclude list named the six iq files twice.

---------

Signed-off-by: Luca <dev@luaxlab.de>
Co-authored-by: AI Dev <ai@openipc.org>
The profile copied firmware's nt98566_lite before OpenIPC/firmware#3049
moved it to the split layout, and so still built the fixed-slot image.
It now packages with post-image-split.sh and reads the kernel for 0x3B0000,
as firmware's nt98566_lite does, so OpenIPC's Novatek U-Boot (which scans
only up to 0x400000) boots it.
@igorssv

igorssv commented Dec 5, 2026 •

Copy link
Copy Markdown
Author

Updated in [49e21f5]:

  1. Added ubinize-nand.cfg, now the release package contains the file rootfs.ubifs.t40
  2. Changed from lite to ultimate
  3. Set Self-update URL
  4. Add both NOR and NAND to readme

Other commits from current builder repository.

@igorssv
igorssv marked this pull request as ready for review December 5, 2026 16:29
@igorssv
igorssv requested a review from ystinia as a code owner December 5, 2026 16:29
@igorssv
igorssv requested a review from ZigFisher as a code owner December 5, 2026 16:29

This branch has not been deployed

No deployments
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.

9 participants