Repository navigation
t23_lite_vstarcam-c8622: add the Vstarcam C8622 board - #278
PeterBeklemishev wants to merge 5 commits into
Conversation
PR Summary by QodoAdd OpenIPC support for the Vstarcam C8622 camera
AI Description
Merge Risk
|
ed7381f to
5f5ccfd
Compare
Code Review by Qodo
1.
|
5f5ccfd to
fe97655
Compare
|
ai agent reply about sensor issues:
|
|
The GC1084 driver and its tuning are now going upstream, so this board no longer needs to carry them:
I pushed bd999de to this branch. It removes So the merge order is openingenic#58, then firmware#2997, then this PR. Until #58 merges, this branch won't build the sensor module. I checked that the three build together by doing what I also booted that image in qemu-bench's |
|
Everything this board needed from upstream is now merged:
With these merged, this PR needs nothing beyond its own device files and the |
f763347 to
050f127
Compare
The driver loads its firmware with plain file opens (the repo builds with CONFIG_USE_FW_REQUEST=n) from aic_fw_path, /lib/firmware by default, but the package installed only the modules. A board that selects it therefore gets a wlan driver that cannot probe: rwnx_load_firmware fails to open fmacfw_patch_8800dc_h_u02.bin and the USB probe errors out. Install the blobs for a chip variant the board picks in a new Kconfig choice, as atbm-wifi does for its models. fw/ carries four variants totalling 5.5 MB, more than an 8 MB NOR board can spare, so one is shipped; only the aic8800DC entry exists for now, the chip on the one board that selects this package (Vstarcam C8622, OpenIPC/builder#278), and further variants join as sibling entries when a board needs them. Tested on the C8622 through the identical hook carried as a device override in OpenIPC/builder#278: with the blobs in /lib/firmware the chip probes, loads fmacfw_patch_8800dc_h_u02.bin and associates. The stock-package build here selects DC by default and installs the same 19 files.
The driver loads its firmware with plain file opens (the repo builds with CONFIG_USE_FW_REQUEST=n) from aic_fw_path, /lib/firmware by default, but the package installed only the modules. A board that selects it therefore gets a wlan driver that cannot probe: rwnx_load_firmware fails to open fmacfw_patch_8800dc_h_u02.bin and the USB probe errors out. Install the blobs for a chip variant the board picks in a new Kconfig choice, as atbm-wifi does for its models. fw/ carries four variants totalling 5.5 MB, more than an 8 MB NOR board can spare, so one is shipped; only the aic8800DC entry exists for now, the chip on the one board that selects this package (Vstarcam C8622, OpenIPC/builder#278), and further variants join as sibling entries when a board needs them. Tested on the C8622 through the identical hook carried as a device override in OpenIPC/builder#278: with the blobs in /lib/firmware the chip probes, loads fmacfw_patch_8800dc_h_u02.bin and associates. The stock-package build here selects DC by default and installs the same 19 files.
050f127 to
a0d9e31
Compare
The driver loads its firmware with plain file opens (the repo builds with CONFIG_USE_FW_REQUEST=n) from aic_fw_path, /lib/firmware by default, appending the variant directory itself, but the package installed only the modules. A board that selects it therefore gets a wlan driver that cannot probe: rwnx_load_firmware fails to open fmacfw_patch_8800dc_h_u02.bin and the USB probe errors out. Install the blobs for a chip variant the board picks in a new Kconfig choice, as atbm-wifi does for its models; fw/ carries four variants totalling 5.5 MB, more than an 8 MB NOR board can spare, so one is shipped. The aic8800DC path is hardware-tested on the Vstarcam C8622 (OpenIPC/builder#278, through the identical hook carried as a device override there): the chip probes, loads fmacfw_patch_8800dc_h_u02.bin and associates. The other three entries install the fw/ directory the driver asks for but have no board to test on yet.
openipc-ai
left a comment
There was a problem hiding this comment.
Reviewed a0d9e31 together with OpenIPC/firmware#3003. It is much tidier than before: the driver and the tuning come from upstream, the PTZ work has its own branch, and the defconfig is t23_lite plus four lines.
First, a correction to my comment above. It says this board replaces the generic gc1084-t23.bin with the camera's stock tune, and since this push it doesn't.
- Video with the SDK tune. The board now ships the generic
gc1084-t23.binfrom firmware#2997 (Ingenic SDK 1.3.0). The "video-ok" in the README was seen with the stock tune. Please re-check video, day and night, on this head and say so here. If it holds, that is the first camera evidence for firmware#2997's file. general/overlay/etc/wireless/usbreplaces the shared script with a 476-line copy that is already stale.- Firmware master has since added
rt2800usb-genericand the XM232 ATBM arm, and changed the Xiongmai V200 arm. The builder'scp -afdrops all of that for this board, along with every later change. - Better to add the arm to the firmware's shared file, for instance in #3003, under a generic name like
aic8800-usb. Then remove the copy here. modprobe mac80211can also go: the driver is FullMAC and needs onlycfg80211.
- Firmware master has since added
resetd.shand therc.localthat starts it duplicate the firmware'sreset-buttonpackage, which reads the samebutton=58fromgpio.conf.BR2_PACKAGE_RESET_BUTTON=yreplaces both files. Its timing is the shared one: 5–15 s reboots, 15–30 s runs firstboot.aic8800-openipc.mkoverride: drop it once #3003 merges, as the commit says. Until then it has the same unpinnedHEADas the stock package.- Excludes list: the 22 commented
#/etc/sensor/...lines can go. A board build installs onlygc1084's yaml and bin, so they could never match anything.
The selector skips drafts, so CI hasn't built this board yet. It will once the PR is marked ready.
Suggested order: #3003 first (pinned, ideally with the Wi-Fi arm), then this PR without the aic8800 override and the wireless/usb copy.
openipc-ai
left a comment
There was a problem hiding this comment.
Requesting changes, as detailed in my review above (#278 (review)). Blocking: confirm video, day and night, with the generic SDK gc1084-t23.bin this head ships, and drop the stale full copy of /etc/wireless/usb (move the arm to the firmware's shared file instead).
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.
a0d9e31 to
25b50bf
Compare
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.
|
current state:
|
Ingenic T23 + GC1084, AIC8800DC USB wifi, 8MB NOR.
Pan/tilt and the IR-cut filter hang off a GC6153F 5-channel driver (dual SPI/I2C chip, wired in i2c mode at 0x10, bit-banged on PB21/PB20 from userspace): the new gc6153 package initialises the chip at boot, and a majestic-af patch adds the gc6153 actuator, which also swings the ircut by watching the nightMode lamp pin. The board pins majestic-af ahead of the firmware's pin (3852baf, needs the ptzpos position hook) via a package .mk override; drop it once the firmware pin catches up. IR lamp on GPIO61, white lamp on GPIO50, both gated by the shared PB17 brightness line; speaker amp on GPIO63.
WiFi builds from openipc/aic8800 (pinned 0e218ed6) through an aic8800-openipc .mk override that also installs 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 only when it appears, so a unit without the radio falls back to the wired port.