firmware
firmware copied to clipboard
GK7201V200: board exists but ships no working streamer
Summary
gk7201v200_lite is already a board in the tree and the nightly publishes openipc.gk7201v200-nor-lite.tgz, but the image cannot stream — it boots with no RTSP and no ONVIF. This issue tracks turning the existing hollow board into a working camera, separately from #1896 (which is titled for the different GK7201V300 die).
Split out of #1896 at a maintainer's suggestion.
Current state
- Defconfig:
br-ext-chip-goke/configs/gk7201v200_lite_defconfig, familygk7205v500, 8 MB NOR. - In the CI matrix (
ALL_BOARDS), so nightlies are published. # BR2_PACKAGE_MAJESTIC is not set— and unpacking the released rootfs confirms no streamer binary is present, only the WebUI'smajestic.shshim. So the published image is hollow.- openipc.org/cameras/vendors/goke still lists the SoC as "no ready solution yet", which matches the real outcome even though the asset exists.
Why it doesn't work
Two blockers, the second decisive:
- Flash headroom. The released squashfs is ~4436 KB of the 5120 KB cap (~684 KB free). Majestic is ~1275 KB uncompressed (≈480 KB compressed at this image's ratio) — it fits, but tightly.
- Vendor MPP mismatch. Per the hardware work in #2234, the
goke-osdrv-gk7205v500vendor MPP we ship (built Apr 2023, matching the Apr-2023libxmedia_*.so) brings the V200 die up only as far as the ISP beforeVEDU CreateChnfails withF008FFFF; the VI→VPSS online link never starts. The factory firmware on these cameras carries a Sep-2023 build of the same vendor stack for chip idxm72010200. Samevermagic(4.9.37 ARMv7 thumb2 p2v8) — one vendor stack, five months apart.
What would unblock it
- A buildable vendor MPP / userspace for
xm72010200(a documented source, not blobs extracted from a vendor image — that path was tried in #2234 and closed). - The hardware in the OpenIPC lab. Reported dies in the wild: XiongMai
IPC_GK7201V200_G3-WQ-G_S38andxm72010200boards with SC2336 / SC223A sensors.
Not in scope
- Stock-firmware RTSP/ONVIF loss after XM firmware updates (a vendor-firmware behaviour) — see the discussion in #1896.
- GK7201V300 (#1896) — a different die with no board in the tree at all.
Related
- #1896 — original request (titled GK7201V300)
- #2234 — prior hardware bring-up attempt, closed (extracted-blob approach)
Working on hardware now: OpenIPC/firmware#2478 makes gk7201v200_lite stream -- H.264 1920x1080 25 fps over RTSP from majestic, correct image, on an IPC_GK7201V200_G3H_S38 (MIS2008) moved over from stock without UART (coupler).
What it took, briefly:
- Kernel ABI: the vendor modules are built against the SDK's tiny defconfig, so CONFIG_MODULE_UNLOAD and CONFIG_PM must be off (PM shifts struct device; xm_osal oopses in get_device_parent), plus the devfreq userspace governor (xm_vgs needs it).
- Right module set: GK7201V200 (chip id 0x72010200) is a V200-class die; the prebuilt set we shipped is the SDK's V500 one -- that is the VEDU/VENC CreateChn F008FFFF above. openhisilicon now builds the XMedia family from the SDK (source modules compiled, closed objects relinked; OpenIPC/openhisilicon#229), with the V200 set for this die and the matching V200 userspace libs.
- Die newer than the SDK: sys_config did no pinmux for it (no sensor on i2c -- fixed in source), and the V200 blobs gate on the efuse SKU byte (0xD4 here, unknown to SPC020); a shim in sys serves them a known code.
- Sensor: the SDK has no MIS2008 driver; the V4 drivers now build for this family from their one source (OpenIPC/openhisilicon#230), which also fixed a Dgain table overrun in the MIS2008 driver.