Hi3516CV610 (cv6xx): os04d10 detected but never streams — V5 sensor reg-init not triggered (mipi_rx "no data input at phy")
Hardware
- SoC: Hi3516CV610, DDR2-64M binning (bdinfo DRAM = 0x04000000 = 64 MB)
- Board: H4-50POM-S/W/BT
- Sensor: OmniVision OS04D10 (4MP, MIPI 2-lane 720Mbps, 10-bit linear, Bayer BGGR)
- NOR flash 16 MB
Firmware flashed (release "latest")
- boot-hi3516cv610-10b-nor.bin (10b = ddr2-64m per image.yml)
- firmware.bin.hi3516cv6xx (from openipc.hi3516cv6xx-nor-ultimate.tgz)
Boots fine, persists. ipcinfo -s = os04d10, driver libsns_os04d10.so present.
Problem
No /etc/sensors config ships for cv6xx, so majestic segfaults on No matches for 'os04d10'.
I wrote a V4-style INI and majestic V5 parses it fine: MIPI attr set, VI/VPSS online, SDK started, RTSP up.
But the sensor never streams:
- Its reg_init ("== os04d10 ... Init OK! ==") is never printed at runtime, while other driver
[puts]do print → the sensor init callback is never invoked. /proc/umap/mipi_rx: sensor_clk=Y, mipi_clk=Y, but all data lanes 0x0, vsync_cnt=0, clk lane in LP00 → "no data input at the phy module".- VENC chn0 "Timeout" in a loop, no frames.
This is not an INI issue. Working INI + full report available. Happy to test builds.
This was closed by mistake earlier today during a bulk triage and has been reopened. It stays tracked here. Sorry for the noise.
Don't mean to hijack this issue, but I'm trying to install onto hi3516cv610 w/imx622 sensor and can't get a u-boot prompt to proceed. FiIed https://github.com/OpenIPC/u-boot/issues/71 but maybe not the right place, as have had no responses. Also, there seems to be a build available, but no auto-generated instructions (yet?) for that SoC.. Any detailed instructions how to get OpenIPC on this board/SoC/sensor would be appreciated... TIA.
Related, but a different root cause: OpenIPC/openhisilicon#275 covers hi3516cv6xx with CONFIG_CMA=y where open_mmz.ko fails to load and the entire MPP never comes up — as a side effect ipcinfo --short-sensor comes back empty too.
Here the SDK starts and the sensor is detected (ipcinfo -s = os04d10), and the failure is in sensor reg-init / mipi-rx phy — so the two are separate. Leaving the link for anyone hitting "cv6xx: no picture" to tell which case they have.
This now looks fixed in majestic, and the symptoms point to a single cause.
Cause. The cv6xx sensor drivers, libsns_os04d10.so included, start with no I2C bus set: the driver's per-pipe bus is 0xff (-1) until someone calls pfn_set_bus_info(). When an I2C sensor's bus is -1, the SDK's isp_sensor_init() skips the sensor's init callback. The driver gets registered and loaded but is never programmed. So "Init OK" is never printed, the MIPI receiver sees no data on any lane (vsync 0), and the encoder times out. The vendor sample calls pfn_set_bus_info() before registering the sensor; majestic did not.
Fix. majestic now puts the sensor on an I2C bus before registering it. It uses bus 0 by default; a sensor profile can choose another with I2cDev=<n> in its [sensor] section. Tested on a Hi3516CV608 with an SP2308, whose driver has the same -1 default: no frames before, a working stream after. It has not been tested on an OS04D10.
Trying it. The current cv6xx majestic build has the fix; both cv6xx images use the lite build. The firmware images in the latest release were built before the fix and don't include it, so either wait for the next release or swap in just the binary. From a PC:
curl -O https://openipc.s3-eu-west-1.amazonaws.com/majestic.hi3516cv6xx.lite.master.tar.bz2
tar xjf majestic.hi3516cv6xx.lite.master.tar.bz2
scp -O majestic-hi3516cv6xx/majestic root@<camera>:/usr/bin/majestic.new
ssh root@<camera> '/etc/init.d/S95majestic stop; mv /usr/bin/majestic.new /usr/bin/majestic; /etc/init.d/S95majestic start'
Stop majestic before replacing the file. Overwriting the binary while it runs can crash it.
Keep your INI: the firmware doesn't ship an OS04D10 profile for cv6xx yet. If the sensor on your board isn't on I2C bus 0, add I2cDev= with its bus number.
If it streams, please post the INI here (or open a PR adding it under general/package/hisilicon-osdrv-hi3516cv6xx/files/sensor/config/) and we'll ship it. If it still doesn't stream, please attach majestic's log from startup and /proc/umap/mipi_rx.