From ff8e3a609c1e3cbe6d3dcf6412ed7741b809e033 Mon Sep 17 00:00:00 2001 From: moontwister Date: Thu, 28 May 2026 11:59:37 +0200 Subject: [PATCH] hisilicon-osdrv-hi3516cv200: fix OV2735 .ini for MIPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Four wrong fields in cv200's ov2735_i2c_1080p.ini that prevent it from working as MIPI on real hardware. Verified end-to-end against OpenIPC/majestic master+bcf6700 with its new SET_DEV_ATTR diagnostic log (see https://github.com/OpenIPC/majestic/issues/278). [mode] input_mode = 4 → 0 (INPUT_MODE_MIPI = 0; 4 is unused) [mipi] data_type = 3 → 2 (OV2735 outputs RAW10, not RAW12) [mipi] lane_id = "0|1|2|3|..." → "0|1|-1|-1|..." (2-lane, not 4) [vi_dev] Input_mod = 2 → 5 (MIPI; 2 is VI_INPUT_MODE_DIGITAL_CAMERA, rejected by majestic's new MIPI mode check) Verified on TP-Link Kasa KC110 (Hi3518EV200 + OV2735 2-lane RAW10). With these four fields fixed, /proc/driver/hi_mipi shows the expected `LaneNum=2 RAW10 MIPI` (matches the vendor firmware diagnostic snapshot), ISP IRQs climb, VENC produces frames, RTSP delivers H.264 1080p with no LD_PRELOAD shim. cv300's already- correct ov2735_i2c_1080p.ini has the same MIPI fields (input_mode, data_type, lane_id) as this patch. Co-Authored-By: Claude Opus 4.7 --- .../files/sensor/config/ov2735_i2c_1080p.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/general/package/hisilicon-osdrv-hi3516cv200/files/sensor/config/ov2735_i2c_1080p.ini b/general/package/hisilicon-osdrv-hi3516cv200/files/sensor/config/ov2735_i2c_1080p.ini index 7daf93a63a..2427cd0f0b 100644 --- a/general/package/hisilicon-osdrv-hi3516cv200/files/sensor/config/ov2735_i2c_1080p.ini +++ b/general/package/hisilicon-osdrv-hi3516cv200/files/sensor/config/ov2735_i2c_1080p.ini @@ -9,7 +9,7 @@ DllFile =/usr/lib/sensors/libsns_ov2735.so ;sensor lib path [mode] -input_mode = 4 ;INPUT_MODE_MIPI = 0 +input_mode = 0 ;INPUT_MODE_MIPI = 0 ;INPUT_MODE_SUBLVDS = 1 ;INPUT_MODE_LVDS = 2 ...etc @@ -19,12 +19,12 @@ dev_attr = 0 ;mipi_dev_attr_t = 0 [mipi] ;----------only for mipi_dev--------- -data_type = 3 ;raw data type: 8/10/12/14 bit +data_type = 2 ;raw data type: 8/10/12/14 bit ;RAW_DATA_8BIT = 1 ;RAW_DATA_10BIT = 2 ;RAW_DATA_12BIT = 3 ;RAW_DATA_14BIT = 4 -lane_id = 0|1|2|3|-1|-1|-1|-1| ;lane_id: -1 - disable +lane_id = 0|1|-1|-1|-1|-1|-1|-1| ;lane_id: -1 - disable [lvds] ;----------only for lvds_dev--------- @@ -67,7 +67,7 @@ Isp_Bayer =3 ;BAYER_RGGB=0, BAYER_GRBG=1, BAYER_GBRG=2, BAYER_BGGR=3 [vi_dev] -Input_mod =2 ;VI_INPUT_MODE_BT656 = 0 +Input_mod =5 ;VI_INPUT_MODE_BT656 = 0 ;VI_INPUT_MODE_BT601, ;VI_INPUT_MODE_DIGITAL_CAMERA Work_mod =0 ;VI_WORK_MODE_1Multiplex = 0