Repository navigation
ak3918ev300l_lite_appix-sc03w: add the APPIX SC03-W - #269
Conversation
88bb48f to
997309d
Compare
|
build-one on this branch (997309d), built with a majestic that has the plugin support and the exposure reader: success, kernel headroom 366 KB, rootfs headroom 200 KB. https://github.com/OpenIPC/builder/actions/runs/45182489462 → release nightly-bisect-997309d-20261123131746. I've asked the owner to flash this exact image (OpenIPC/majestic#380); this stays a draft until the camera confirms it. |
AK3918EV300L with two SmartSens SC1346 behind one MIPI switch (separate lenses, the lower one on a pan/tilt head), 8 MB NOR, AltoBeam ATBM603x USB Wi-Fi, two GPIO steppers, IR and white lights, reset button (OpenIPC/majestic#380). Its stock firmware is GZhongshi's. - Kernel: the generic EV300L config with the ak3918ev300l-switch-sc1346 device tree (OpenIPC/linux#305): switch select on GPIO 17, PWM0 on pad 16. - /etc/modprobe.d/anyka.conf: ak_isp in switch mode and sensor_sc1346 at 0x32/0x31, as the stock vg_boot.sh loads them (OpenIPC/firmware#2935). - Pan/tilt: gpiostep on the stock tree's motor0/motor1 pins, pan 25,24,56,55 and tilt 68,58,26,27, from /etc/modules (the two-parameter line needs OpenIPC/firmware#2937). /etc/gpiostep.conf has the travel, direction and speed measured on the camera: 1030 pan and 130 tilt steps, +pan left, +tilt up, 1 ms a pan step and 3 ms a tilt step (sub-tick delays need OpenIPC/linux#317). majestic-af drives it, which also turns on the WebUI's pan/tilt pad. - Wi-Fi: its own wlandev, powering the module from GPIO 70 (low is on) and loading the ATBM603x driver; the generic image's other USB Wi-Fi drivers and firmware are left out. - customizer.sh: night mode on the stock factory_cfg.ini pins (IR-cut 65/66, IR LEDs 10, white light 9, confirmed on the camera), PTZ on. - gpio.conf: the stock pin map, with the reset button on 50. Built against OpenIPC/firmware master with #2937's S35modules: 6656K of 7616K. On qemu-bench ak3918ev300l it boots on the two-sensor tree, the customizer runs and gpiostep loads with its pins. Published as #380's test build 4; not yet run on the camera.
997309d to
b7190da
Compare
|
OpenIPC/linux#317 is merged. build-one on this branch (b7190da): success, kernel headroom 366 KB, rootfs headroom 200 KB: https://github.com/OpenIPC/builder/actions/runs/45202832632 → release nightly-bisect-b7190da-20261123151344. The kernel in it has the timer fix: the old 120000-cycle minimum is no longer next to the 12 MHz rate in the decompressed image. Sent to the owner for a final check (OpenIPC/majestic#380). |
PR Summary by QodoAdd APPIX SC03-W AK3918EV300L device profile
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
…load reports failure Review of #269: - README.md lists the APPIX SC03-W. - /etc/wireless/usb exits with the module load's own status. S40network runs usb || sdio, then the modem, and only then falls back to DHCP on the wired port; an exit 0 after both ATBM603x loads failed sent it to ifup a wlan0 that does not exist.
|
On the Qodo review:
|
APPIX SC03-W (AK3918EV300L)
This adds the APPIX SC03-W: an AK3918EV300L camera with two SmartSens SC1346 behind one MIPI switch (separate lenses, the lower one on a pan/tilt head), 8 MB NOR, AltoBeam ATBM603x USB Wi-Fi, two GPIO steppers, IR and white lights, and a reset button. Its stock firmware is GZhongshi's. Everything below was worked out with the owner in OpenIPC/majestic#380.
What the profile sets
ak3918ev300l-switch-sc1346device tree (anyka: ak3918ev300l-switch-sc1346, two SC1346 behind one MIPI switch linux#305). That tree has the MIPI switch select on GPIO 17 and PWM0 on pad 16./etc/modprobe.d/anyka.conf:ak_ispin switch mode, andsensor_sc1346with the two sensors at 0x32/0x31, as the stockvg_boot.shloads them (anyka: majestic on the AK3918EV300L, and two sensors behind a MIPI switch firmware#2935).gpiostepon the stock tree's motor pins: pan 25, 24, 56, 55 and tilt 68, 58, 26, 27. It loads from/etc/modules; that two-parameter line needs overlay: S35modules passes each /etc/modules parameter as its own argument firmware#2937, which is merged./etc/gpiostep.confholds what was measured on the camera: 1030 pan and 130 tilt steps,+pan left,+tilt up, 1 ms per pan step and 3 ms per tilt step.majestic-afdrives the head, and having it in the image also turns on the WebUI's pan/tilt pad.wlandev, which powers the module from GPIO 70 (low is on) and loads the ATBM603x driver. The generic image's other USB Wi-Fi drivers and their firmware are left out.customizer.sh: night mode on the pins from the stockfactory_cfg.ini(IR-cut 65/66, IR LEDs 10, white light 9), and PTZ on.gpio.conf: the stock pin map, with the reset button on 50.Tested
ak3918ev300l: the image boots on the two-sensor tree, the customizer runs, andgpiosteploads with all eight pins.majestic
PTZ and automatic day/night on this camera also need a majestic for the AV100 family that loads the
majestic-afplugin and reads the image processor's exposure state. The second one also shows up asisp_again,isp_avelumandisp_exposureismaxon/metrics.That majestic is merged, and the next nightly carries it. On the owner's camera, with the test builds in OpenIPC/majestic#380:
Kernel
The sub-millisecond step delays need OpenIPC/linux#317. On the AK3918AV100-family kernel, every sleep shorter than 10 ms used to wait a whole 10 ms tick. That made 200 pan steps take 16 s at any delay, and homing take four minutes. With that kernel fix, on the owner's camera, 200 steps take 1.78 s at 1 ms, and homing finishes in 50 s.
A
build-oneof this branch (nightly-bisect-997309d) already has the majestic it needs: the head homes, the arrows move it, and day/night switches. This stays a draft until OpenIPC/linux#317 is merged, then gets one morebuild-one.