Repository navigation
ingenic-osdrv-t23: add gc1084 tuning - #2997
Conversation
gc1084-t23.bin is the GC1084 ISP tuning from Ingenic's T23 SDK 1.3.0, in the same 2.20 format as the other T23 files here. The Vstarcam C8622 (T23N) carries this sensor (OpenIPC/openingenic#57); its driver, sensor_gc1084_t23, comes from openingenic.
PR Summary by QodoAdd GC1084 sensor assets for Ingenic T23
AI Description
Merge Risk
|
Code Review by Qodo
1. Sensor tuning ships untested on hardware
|
OpenIPC/openingenic#58 adds sensor_gc1084_t23 and its sinfo entry, and OpenIPC/firmware#2997 adds gc1084.yaml with the SDK's gc1084-t23.bin. Once openingenic has them, the board's ingenic-opensdk patch no longer applies: it creates kernel/sensors/t23/gc1084 and adds the same sinfo line. The yaml is the same as firmware's. The board keeps its gc1084-t23.bin. That is the camera's stock tune, the same bytes as Vstarcam's own T23 firmware ships, and it overrides the SDK file through the device overlay.
|
On the hardware-evidence finding: correct, this file has not run on a camera, and the description says so. What it can change: libimp loads The one board build for this sensor, OpenIPC/builder#278 (Vstarcam C8622), replaces this file with the camera's stock tune through its device overlay. Its author reports video working with that tune. This file stays the generic default because it traces to an Ingenic SDK release (T23 SDK 1.3.0), as |
|
A correction to my reply above: since OpenIPC/builder@a0d9e31, builder#278 no longer overrides this file. The C8622 now runs this SDK 1.3.0 tune. I've asked there for a video check on that head, which would be this file's first evidence from a real camera. |
Problem
T23 has no GalaxyCore GC1084 support. The Vstarcam C8622 (T23N, GC1084 at I2C0 0x37, MIPI 1 lane, 1280x720) cannot start its ISP on OpenIPC, because
ingenic-osdrv-t23ships nogc1084-t23.binfor libimp to load (OpenIPC/openingenic#57).The driver,
sensor_gc1084_t23.ko, and itssinfodetection are in OpenIPC/openingenic#58.ingenic-opensdkbuilds openingenic atHEAD, so this needs no version bump once that is merged.Change
files/sensor/params/gc1084-t23.bin: the GC1084 tuning from Ingenic's T23 SDK 1.3.0. It is the generic SDK file, not a tune made for one camera. It uses the2.20header and 176288-byte size of every other T23 file here. Twelve of the existing fourteen are byte-identical to the SDK 1.1.x files in the same collection (themactep/ingenic-sdksensor-iq/t23/), where this one isgc1084-sdk130.bin(blob4493fa12).files/sensor/gc1084.yaml: name, address 0x37, 1280x720, i2c, like the other sensors.INGENIC_OSDRV_T23_INSTALL_TARGET_CMDSinstalls every*.binand*.yamlfor a generic build, and only$(OPENIPC_SNS_MODEL)'s for a board build, so a board with another sensor is unaffected.Hardware tested on
Not by me, and not this file. OpenIPC/builder#278 (Vstarcam C8622) reports video working with the same driver settings. It ships the camera's own stock tune as a board file, which overrides this one through builder's device overlay. That tune is byte-identical to the one in Vstarcam's stock T23 firmware (owner dump
r-3qy8n67z) and to thingino'sgc1084-okam_qc3.bin. This PR ships the SDK file because it is the generic one; a camera tune belongs in builder.Evidence
make BOARD=t23_litefrom mastere8db0422with this commit, andINGENIC_OPENSDK_OVERRIDE_SRCDIRpointing at OpenIPC/openingenic#58 (665b4f33):Together the module and the tuning are about 23 KB after xz.
Emulated, not a camera: qemu-bench's
t23machine (master7d695a6) with the GC1084 model from OpenIPC/qemu-bench#396. The entry gives chip ID 0x1084 at 0x03f0 and the GC2083 shutter, frame-length and MIPI-enable registers, which the GC1084 shares. The image boots andqemu-boot/test-ingenic-isp.sh --soc t23 --sensor gc1084runs the rootfs's ownload_ingenicand a libimp FrameSource client:The model reads the shutter, frame length and column gain the driver writes, but it renders a synthetic test pattern. So this shows that detection, the module, libimp and the tuning file work together. It does not show image quality.
The same image with
--sensor gc2053still detects and streams a gc2053:Scope
general/package/all-patches/linux/(those go to OpenIPC/linux)general/overlay/or in a sharedload_<vendor>script hardcodes a value specific to my boardLD_PRELOAD, and no binaries that cannot be rebuilt from sourceThe two unticked boxes: no package source or pin changes here. The
.binis Ingenic SDK tuning data, which cannot be rebuilt from source, like every other file inparams/.