<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Integrating Sony IMX586 Camera on IMX8MP platform in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1860813#M223420</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hi, I have followed the standard porting proceedure for the IMX586 sensor.&amp;nbsp; It seems like for the most part "all systems go" except for the error at the end when the the adapter-0 cannot be opened.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Start the ISP media server&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;-----------------------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8mp:~# /opt/imx8-isp/bin/start_isp.sh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Starting isp_media_server for IMX586&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RUN_SCRIPT=/opt/imx8-isp/bin/run.sh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RUN_SCRIPT_PATH=/opt/imx8-isp/bin&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Trying configuration "imx586_4k_60"...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing vvcam-video...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing vvcam-isp...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing vvcam-dwe...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing imx8-media-dev...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing ov2775...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing os08a20...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing imx586 basler-camera-driver-vvcam...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module imx586 ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;imx586&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/extra/imx586.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module imx8-media-dev ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;imx8_media_dev&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/kernel/drivers/staging/media/imx/imx8-media-dev.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module vvcam-dwe ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vvcam_dwe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/extra/vvcam-dwe.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module vvcam-isp ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vvcam_isp&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/extra/vvcam-isp.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module vvcam-video ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vvcam_video&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/extra/vvcam-video.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Starting isp_media_server with configuration file CAMERA0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Kernel output during the above&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;---------------------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[ 142.618951] enter isp_hw_remove&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.622407] vvcam isp driver removed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.626234] enter isp_hw_remove&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.629903] vvcam isp driver removed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.678850] enter viv_dwe_exit_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.682740] enter dwe_hw_remove&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.686024] enter fake_pdev_release&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.689957] vvcam dewarp driver removed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.742167] : Unregistered all entities&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.818522] Enter imx586_remove&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.821677] imx586_power_off is bypassed, power fixed on for now&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.827719] imx586 4-001a: imx586_regulator_disable todo&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.966247] Enter imx586_probe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.969347] Setting mclk to 25 MHz&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.974656] camera sensor chip id reported as 0x586&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.979584] media_entity_pads_init()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.983180] v4l2_async_register_subdev_sensor()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.009429] imx586_probe camera mipi imx586, is found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.053308] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.064125] mx8-img-md: Registered sensor subdevice: imx586 4-001a (1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.070692] mx8-img-md: created link [imx586 4-001a] =&amp;gt; [mxc-mipi-csi2.0]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.077497] mxc-md 32c00000.bus:camera: mxc_md_create_links&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.096969] Enter imx586_priv_ioctl, command 2154321408 (0x80685600)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.097687] Entering mipi_csis_imx8mp_phy_reset&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.103634] Enter imx586_query_capability&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.112371] imx586_query_capability, adapter 30ad0000.i2c (4) is found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.126133] enter viv_dwe_init_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.130124] enter dwe_hw_probe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.133621] vvcam dewarp driver probed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.177634] enter viv_isp_init_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.181614] enter isp_hw_probe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.185075] vvcam isp driver registered&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.189129] enter isp_hw_probe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.192676] vvcam isp driver registered&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.242058] enter viv_video_init_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.282512] enter isp_mi_stop&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.286685] enter isp_mi_stop&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8mp:~# v4l2-ctl --list-devices&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;():&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;():&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev5&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;(csi0):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;FSL Capture Media Device (platform:32c00000.bus:camera):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/media0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VIV (platform:viv0):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/video2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VIV (platform:viv1):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/video3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;vsi_v4l2dec (platform:vsi_v4l2dec):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/video1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;vsi_v4l2enc (platform:vsi_v4l2enc):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/video0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;viv_media (platform:vvcam-video.0):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/media1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Then try something&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8mp:~# v4l2-ctl --device=/dev/video2 --all&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Output from media server:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ADAPTER: AdaptOpen:open sensor failed in v4l2 mode! check sensor driver, cfg is imx586-vvcam&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HAL-ALTERA: HalOpen: open adapter-0 failed in HAL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[CITF][ERR]: CitfApi create error!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[CITF][ERR]: initHardware new CitfApi 0 fail!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [NativeSensor] mDriver.initHardware failed, id 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [MediaPipeline] NativeSensor open error!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [V4l2Event] initialize MediaPipeline error!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I assume the following is incomplete because it isn't calling my driver properly.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8mp:~# v4l2-ctl --device=/dev/video2 --all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Driver Info:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Driver name : viv_v4l2_device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Card type : VIV&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Bus info : platform:viv0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Driver version : 6.1.36&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Capabilities : 0x84201001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Video Capture&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Video Capture Multiplanar&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Streaming&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Extended Pix Format&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Device Capabilities&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Device Caps : 0x04200001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Video Capture&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Streaming&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Extended Pix Format&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Priority: 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Video input : 0 (camera: ok)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Format Video Capture:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Width/Height : 0/0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Pixel Format : ''&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Field : None&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Bytes per Line : 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Size Image : 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Colorspace : SMPTE 170M&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Transfer Function : Default (maps to Rec. 709)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;YCbCr/HSV Encoding: Default (maps to ITU-R 601)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Quantization : Default (maps to Full Range)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Flags :&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Crop Capability Video Capture:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Bounds : Left 0, Top 0, Width 0, Height 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Default : Left 0, Top 0, Width 0, Height 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Pixel Aspect: 1/1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: crop, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: crop_default, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: crop_bounds, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: compose, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: compose_default, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: compose_bounds, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Streaming Parameters Video Capture:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Capabilities : timeperframe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Frames per second: invalid (0/0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Read buffers : 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;User Controls&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;viv_ext_ctrl 0x0098f901 (str) : min=0 max=65535 step=1 value='' flags=has-payload&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The driver output during the above query shows&amp;nbsp; the following.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.535532] Enter imx586_priv_ioctl, command 0x80685600&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.546583] Enter imx586_query_capability&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.550606] imx586_query_capability, adapter 30ad0000.i2c (4) is found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.565855] enter isp_mi_stop&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.645776] enter isp_mi_stop&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Seems like the only private ioctl that gets called in my driver is VIDIOC_QUERYCAP.&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;Seems like this should be something basic I am missing.&amp;nbsp; I noticed mention in HAL-ALTERA of adapter-0 and my adapter is reported as 4, if they are the same thing.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 20:37:35 GMT</pubDate>
    <dc:creator>BillR1</dc:creator>
    <dc:date>2024-05-07T20:37:35Z</dc:date>
    <item>
      <title>Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1860813#M223420</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hi, I have followed the standard porting proceedure for the IMX586 sensor.&amp;nbsp; It seems like for the most part "all systems go" except for the error at the end when the the adapter-0 cannot be opened.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Start the ISP media server&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;-----------------------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8mp:~# /opt/imx8-isp/bin/start_isp.sh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Starting isp_media_server for IMX586&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RUN_SCRIPT=/opt/imx8-isp/bin/run.sh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RUN_SCRIPT_PATH=/opt/imx8-isp/bin&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Trying configuration "imx586_4k_60"...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing vvcam-video...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing vvcam-isp...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing vvcam-dwe...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing imx8-media-dev...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing ov2775...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing os08a20...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Removing imx586 basler-camera-driver-vvcam...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module imx586 ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;imx586&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/extra/imx586.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module imx8-media-dev ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;imx8_media_dev&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/kernel/drivers/staging/media/imx/imx8-media-dev.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module vvcam-dwe ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vvcam_dwe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/extra/vvcam-dwe.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module vvcam-isp ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vvcam_isp&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/extra/vvcam-isp.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loading module vvcam-video ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;vvcam_video&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Loaded /lib/modules/6.1.36+/extra/vvcam-video.ko&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Starting isp_media_server with configuration file CAMERA0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Kernel output during the above&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;---------------------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[ 142.618951] enter isp_hw_remove&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.622407] vvcam isp driver removed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.626234] enter isp_hw_remove&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.629903] vvcam isp driver removed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.678850] enter viv_dwe_exit_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.682740] enter dwe_hw_remove&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.686024] enter fake_pdev_release&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.689957] vvcam dewarp driver removed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.742167] : Unregistered all entities&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.818522] Enter imx586_remove&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.821677] imx586_power_off is bypassed, power fixed on for now&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.827719] imx586 4-001a: imx586_regulator_disable todo&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.966247] Enter imx586_probe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.969347] Setting mclk to 25 MHz&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.974656] camera sensor chip id reported as 0x586&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.979584] media_entity_pads_init()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 142.983180] v4l2_async_register_subdev_sensor()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.009429] imx586_probe camera mipi imx586, is found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.053308] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.064125] mx8-img-md: Registered sensor subdevice: imx586 4-001a (1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.070692] mx8-img-md: created link [imx586 4-001a] =&amp;gt; [mxc-mipi-csi2.0]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.077497] mxc-md 32c00000.bus:camera: mxc_md_create_links&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.096969] Enter imx586_priv_ioctl, command 2154321408 (0x80685600)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.097687] Entering mipi_csis_imx8mp_phy_reset&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.103634] Enter imx586_query_capability&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.112371] imx586_query_capability, adapter 30ad0000.i2c (4) is found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.126133] enter viv_dwe_init_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.130124] enter dwe_hw_probe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.133621] vvcam dewarp driver probed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.177634] enter viv_isp_init_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.181614] enter isp_hw_probe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.185075] vvcam isp driver registered&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.189129] enter isp_hw_probe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.192676] vvcam isp driver registered&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.242058] enter viv_video_init_module&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.282512] enter isp_mi_stop&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 143.286685] enter isp_mi_stop&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8mp:~# v4l2-ctl --list-devices&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;():&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;():&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev5&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;(csi0):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/v4l-subdev1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;FSL Capture Media Device (platform:32c00000.bus:camera):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/media0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VIV (platform:viv0):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/video2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VIV (platform:viv1):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/video3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;vsi_v4l2dec (platform:vsi_v4l2dec):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/video1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;vsi_v4l2enc (platform:vsi_v4l2enc):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/video0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;viv_media (platform:vvcam-video.0):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/dev/media1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Then try something&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8mp:~# v4l2-ctl --device=/dev/video2 --all&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Output from media server:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ADAPTER: AdaptOpen:open sensor failed in v4l2 mode! check sensor driver, cfg is imx586-vvcam&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HAL-ALTERA: HalOpen: open adapter-0 failed in HAL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[CITF][ERR]: CitfApi create error!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[CITF][ERR]: initHardware new CitfApi 0 fail!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [NativeSensor] mDriver.initHardware failed, id 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [MediaPipeline] NativeSensor open error!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [V4l2Event] initialize MediaPipeline error!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I assume the following is incomplete because it isn't calling my driver properly.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;root@imx8mp:~# v4l2-ctl --device=/dev/video2 --all&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Driver Info:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Driver name : viv_v4l2_device&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Card type : VIV&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Bus info : platform:viv0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Driver version : 6.1.36&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Capabilities : 0x84201001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Video Capture&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Video Capture Multiplanar&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Streaming&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Extended Pix Format&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Device Capabilities&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Device Caps : 0x04200001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Video Capture&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Streaming&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Extended Pix Format&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Priority: 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Video input : 0 (camera: ok)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Format Video Capture:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Width/Height : 0/0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Pixel Format : ''&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Field : None&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Bytes per Line : 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Size Image : 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Colorspace : SMPTE 170M&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Transfer Function : Default (maps to Rec. 709)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;YCbCr/HSV Encoding: Default (maps to ITU-R 601)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Quantization : Default (maps to Full Range)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Flags :&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Crop Capability Video Capture:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Bounds : Left 0, Top 0, Width 0, Height 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Default : Left 0, Top 0, Width 0, Height 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Pixel Aspect: 1/1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: crop, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: crop_default, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: crop_bounds, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: compose, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: compose_default, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Selection Video Capture: compose_bounds, Left 0, Top 0, Width 0, Height 0, Flags:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Streaming Parameters Video Capture:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Capabilities : timeperframe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Frames per second: invalid (0/0)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Read buffers : 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;User Controls&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;viv_ext_ctrl 0x0098f901 (str) : min=0 max=65535 step=1 value='' flags=has-payload&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The driver output during the above query shows&amp;nbsp; the following.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.535532] Enter imx586_priv_ioctl, command 0x80685600&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.546583] Enter imx586_query_capability&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.550606] imx586_query_capability, adapter 30ad0000.i2c (4) is found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.565855] enter isp_mi_stop&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[ 966.645776] enter isp_mi_stop&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Seems like the only private ioctl that gets called in my driver is VIDIOC_QUERYCAP.&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;Seems like this should be something basic I am missing.&amp;nbsp; I noticed mention in HAL-ALTERA of adapter-0 and my adapter is reported as 4, if they are the same thing.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 20:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1860813#M223420</guid>
      <dc:creator>BillR1</dc:creator>
      <dc:date>2024-05-07T20:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1860932#M223425</link>
      <description>&lt;P&gt;refer to your logfile, &lt;FONT face="courier new,courier"&gt;open sensor failed in v4l2 mode! check sensor driver,it seems this error is related to your camera driver &lt;/FONT&gt;you need check your camera driver firstly&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 01:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1860932#M223425</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2024-05-08T01:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1861504#M223463</link>
      <description>&lt;P&gt;Well I did check the driver originally first.&amp;nbsp; Then I decided to print out the v4l2 capabilities and got the following so I think I am on to something here.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[63477.135304] Enter imx586_query_capability&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[63477.143351] Driver: imx586&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;[63477.146058] Card:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;[63477.148082] Bus Info: csi0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;[63477.150800] Version: 0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;[63477.153160] Capabilities: 0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;[63477.155961] Device Caps: 0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[63477.158678] imx586_query_capability, adapter 30ad0000.i2c (4) is found&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 13:37:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1861504#M223463</guid>
      <dc:creator>BillR1</dc:creator>
      <dc:date>2024-05-08T13:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1861551#M223467</link>
      <description>&lt;P&gt;Unfortunately missing capabilities was not the problem. (Also the other drivers do not do it either).&amp;nbsp; Also it appears that the error message is coming from the proprietary libcam_engine.so driver so I can not look to the source to find out what its not happy about. This is the point just before it should load imx586.drv.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.927912] Entering mipi_csis_imx8mp_phy_reset&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.928038] Enter imx586_priv_ioctl, command -2140645888&amp;nbsp; &amp;nbsp;#query caps&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.938077] imx586_query_capability, adapter 30ad0000.i2c (4) is found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.944634] Driver: imx586&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.947379] Card: IMX586 Card&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.950369] Bus Info: csi0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.953169] Version: 65536&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.955904] Capabilities: 67108865&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65062.959345] Device Caps: 67108865&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[65063.037301] enter isp_mi_stop&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ADAPTER: AdaptOpen:open sensor fa&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;iled in v4l2 mode! check sensor driver, cfg is imx586-vvcam&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;HAL-ALTERA: HalOpen: open adapter-0 failed in HAL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[CITF][ERR]: CitfApi create error!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[CITF][ERR]: initHardware new CitfApi 0 fail!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [NativeSensor] mDriver.initHardware failed, id 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [MediaPipeline] NativeSensor open error!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ERROR : [V4l2Event] initialize MediaPipeline error!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 14:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1861551#M223467</guid>
      <dc:creator>BillR1</dc:creator>
      <dc:date>2024-05-08T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1863791#M223588</link>
      <description>&lt;P&gt;you should focus on the v4l2 mode in the sensor driver of ISP, you can refer to the chapter 6.2 Camera Sensor Porting Setup in V4L2 Mode of enclosed file, you also can refer to the IMX219 package as reference&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/voxelbotics/imx8mp-imx219-sensor-enablement" target="_blank"&gt;https://github.com/voxelbotics/imx8mp-imx219-sensor-enablement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 05:41:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1863791#M223588</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2024-05-11T05:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1863873#M223594</link>
      <description>&lt;P&gt;I made a regular v4l2 style driver on ISI. Its revealed some issues but now its not just black box of the isp_media_server proprietary libs telling me to check my driver. I have gotten a little further with it for now.&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 17:07:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/1863873#M223594</guid>
      <dc:creator>BillR1</dc:creator>
      <dc:date>2024-05-11T17:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/2068129#M235485</link>
      <description>&lt;P&gt;Hi Bill!&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232615"&gt;@bily&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering have you managed the error you've mentioned here?&lt;/P&gt;&lt;P&gt;I've faced the same error message and have no ideas where to dig...&lt;/P&gt;&lt;P&gt;Any hint would be highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 23:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/2068129#M235485</guid>
      <dc:creator>AndrejsVasiljevs</dc:creator>
      <dc:date>2025-03-25T23:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/2068699#M235519</link>
      <description>&lt;P&gt;Hi, if I understand your issue correctly:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ADAPTER: AdaptOpen:open sensor failed in v4l2 mode! check sensor driver, cfg is imx586-vvcam
HAL-ALTERA: HalOpen: open adapter-0 failed in HAL
[CITF][ERR]: CitfApi create error!
[CITF][ERR]: initHardware new CitfApi 0 fail!
ERROR  : [NativeSensor] mDriver.initHardware failed, id 0
ERROR  : [MediaPipeline] NativeSensor open error!
ERROR  : [V4l2Event] initialize MediaPipeline error!&lt;/LI-CODE&gt;&lt;P&gt;my problem was that the camera sensor name in Sensor0_Entry.cfg didn't match the vvcam driver, in my case imx586_mipi_v3.c the imx586_query_capability() function.&lt;/P&gt;&lt;P&gt;Regards, Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 12:47:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/2068699#M235519</guid>
      <dc:creator>BillR1</dc:creator>
      <dc:date>2025-03-26T12:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Sony IMX586 Camera on IMX8MP platform</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/2068714#M235520</link>
      <description>&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;Just for historical purposes my error was:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ADAPTER: AdaptOpen:open sensor failed in v4l2 mode! check sensor driver, cfg is os08a20
HAL-ALTERA: HalOpen: open adapter-1 failed in HAL
[CITF][ERR]: CitfApi create error!
[CITF][ERR]: initHardware new CitfApi 1 fail!&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The main difference from basic scenarios is that it is dual camera scenario where CAM0 connected via ISI and CAM1 via ISP. Linux version 6.1 with imx8-isp from version 6.6 (version 6.1 has a bug in such scenarious)&lt;/P&gt;&lt;P&gt;The issue was solved by reordering driver modules load sequence.&lt;BR /&gt;Upon restart some of modules automatically loaded and thus I've removed them from imx8-isp start script. But, actually, everything works when all related modules (imx8-media-dev, sensors modules, vvcam-*) unloaded and reloaded again from imx8-isp start script.&lt;/P&gt;&lt;P&gt;IMHO, something wrong in kernel driver logic with modules linkage. So far I've left it as it is.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 13:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Integrating-Sony-IMX586-Camera-on-IMX8MP-platform/m-p/2068714#M235520</guid>
      <dc:creator>AndrejsVasiljevs</dc:creator>
      <dc:date>2025-03-26T13:14:59Z</dc:date>
    </item>
  </channel>
</rss>

