Repository navigation
Conversation
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.
PR Summary by QodoAdd seven camera profiles, fix Yoton WS03 boot and Movols speaker pin
AI Description
Merge Risk
|
Code Review by Qodo
1. NAND camera may not build by device name
|
openipc-ai
left a comment
There was a problem hiding this comment.
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:
- The release package won't contain the file you flash. You need
rootfs.ubifs.t40(UBIFS with the kernel at/boot/uImage). Without aubinize-nand.cfgfor the t40 family, firmware's Makefile falls through to the generic NAND branch, which packages onlyuImage+rootfs.ubi. The branch that shipsuImage,rootfs.ubifsandrootfs.ubi(REPACK_NAND_UBIFS) is chosen whenbr-ext-chip-ingenic/board/t40/ubinize-nand.cfgexists. Please add one underdevices/t40_lite_movols-mo-805p-nand/br-ext-chip-ingenic/board/t40/and pointBR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILEat it. Its volumes must match what the stock U-Boot on this camera expects (volume names, and where it reads/boot/uImagefrom). You have the board, so you're the one who can get that right. Please paste the U-Bootprintenv(bootcmd/bootargs) in the PR so we can check it against the layout. - 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 asultimate: lite is a size compromise, and on NAND there's no size pressure to justify dropping features. That meanst40_ultimate_movols-mo-805p-nand, based on firmware'st40_ultimate_defconfig, withexcludes/t40_ultimate.list. Your memory split (osmem 48M,rmem 80M) and the customizer can stay as they are. - 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.
… 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.
…ate URL, add to readme
|
Updated in [49e21f5]:
Other commits from current builder repository. |
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.