ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    HAL not detecting any cameras in SDK version 1.0.0 but does under 0.9.5

    VOXL 2
    1
    1
    79
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DaniHive
      last edited by DaniHive

      Hello!
      I am using a Voxl2 that got shipped with version 0.9.5 of the SDK. I verified that my cameras (one M0061 imx412 and two M0072 ov7251 image sensors) are working before upgrading the SDK. Under version 0.9.5, running voxl-camera-server -l listed all my cameras, but after upgrading to 1.0.0 and running this command again, I am prompted with:

      DEBUG:   Attempting to open the hal module
      DEBUG:   SUCCESS: Camera module opened on attempt 0
      DEBUG:   ----------- Number of cameras: 0
      
      DEBUG:   Note: This list comes from the HAL module and may not be indicative
      DEBUG:   	of configurations that have full pipelines
      
      DEBUG:   Number of cameras: 0
      

      If I downgrade again, the cameras show up, so I'm sure that they didn't die. Even if I don't configure anything voxl-camera-server -l shows my connected cameras under 0.9.5, so I don't think camera configurations are at fault here, I have still tried to use the exact same configs and ran voxl-configure-sku and voxl-configure-mpa, but to no avail.

      Following instructions to read from hi-res sensors I took a look at the dmesg output and found this:

      [    1.908280] cam_cc-kona ad00000.qcom,camcc: Registered CAM CC clocks
      [    2.118543] CAM_INFO: CAM-SMMU: cam_smmu_get_memory_regions_info: 3730 [icp] : Discard region specified [0xdff00000 0xe0200000] in [0x10c00000 0xfef00000]
      [    2.124113] CAM_INFO: CAM-ISP: cam_vfe_bus_ver3_init_hw: 3659 Overriding clock gating at bus input
      [    2.124118] CAM_INFO: CAM-ISP: cam_vfe_top_ver3_init_hw: 246 Disable clock gating at IFE top
      [    2.125415] CAM_INFO: CAM-ISP: cam_vfe_bus_ver3_init_hw: 3659 Overriding clock gating at bus input
      [    2.125420] CAM_INFO: CAM-ISP: cam_vfe_top_ver3_init_hw: 246 Disable clock gating at IFE top
      [    2.125873] CAM_INFO: CAM-UTIL: cam_soc_util_get_option_clk_by_name: 559 No clk data for ife_dsp_clk
      [    2.125882] CAM_WARN: CAM-ISP: cam_vfe_init_soc_resources: 154 Option clk get failed with rc -22
      [    2.126427] CAM_INFO: CAM-ISP: cam_vfe_bus_ver3_init_hw: 3659 Overriding clock gating at bus input
      [    2.126433] CAM_INFO: CAM-ISP: cam_vfe_top_ver3_init_hw: 246 Disable clock gating at IFE top
      [    2.126819] CAM_INFO: CAM-UTIL: cam_soc_util_get_option_clk_by_name: 559 No clk data for ife_dsp_clk
      [    2.126823] CAM_WARN: CAM-ISP: cam_vfe_init_soc_resources: 154 Option clk get failed with rc -22
      [    2.127334] CAM_INFO: CAM-ISP: cam_vfe_bus_ver3_init_hw: 3659 Overriding clock gating at bus input
      [    2.127339] CAM_INFO: CAM-ISP: cam_vfe_top_ver3_init_hw: 246 Disable clock gating at IFE top
      [    2.127765] CAM_INFO: CAM-UTIL: cam_soc_util_get_option_clk_by_name: 559 No clk data for ife_dsp_clk
      [    2.127768] CAM_WARN: CAM-ISP: cam_vfe_init_soc_resources: 154 Option clk get failed with rc -22
      [    2.128271] CAM_INFO: CAM-ISP: cam_vfe_bus_ver3_init_hw: 3659 Overriding clock gating at bus input
      [    2.128276] CAM_INFO: CAM-ISP: cam_vfe_top_ver3_init_hw: 246 Disable clock gating at IFE top
      [    2.128656] CAM_INFO: CAM-UTIL: cam_soc_util_get_option_clk_by_name: 559 No clk data for ife_dsp_clk
      [    2.128658] CAM_WARN: CAM-ISP: cam_vfe_init_soc_resources: 154 Option clk get failed with rc -22
      [    2.129158] CAM_INFO: CAM-ISP: cam_vfe_bus_ver3_init_hw: 3659 Overriding clock gating at bus input
      [    2.129162] CAM_INFO: CAM-ISP: cam_vfe_top_ver3_init_hw: 246 Disable clock gating at IFE top
      [    2.129557] CAM_INFO: CAM-UTIL: cam_soc_util_get_option_clk_by_name: 559 No clk data for ife_dsp_clk
      [    2.129560] CAM_WARN: CAM-ISP: cam_vfe_init_soc_resources: 154 Option clk get failed with rc -22
      [    2.130062] CAM_INFO: CAM-ISP: cam_vfe_bus_ver3_init_hw: 3659 Overriding clock gating at bus input
      [    2.130066] CAM_INFO: CAM-ISP: cam_vfe_top_ver3_init_hw: 246 Disable clock gating at IFE top
      [    2.130543] CAM_ERR: CAM-ISP: cam_ife_hw_mgr_init: 8806 Offline IFE thresholds max 720000000 nom 560000000  min360000000
      [    2.130547] CAM_ERR: CAM-ISP: cam_ife_hw_mgr_init: 8806 Offline IFE thresholds max 720000000 nom 560000000  min360000000
      [    2.130633] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130646] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130659] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130671] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130684] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130697] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130709] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130721] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130733] CAM_ERR: CAM-ISP: cam_isp_context_debug_register: 5406 failed to create dentry
      [    2.130736] CAM_INFO: CAM-ISP: cam_isp_dev_probe: 163 Camera ISP probe complete
      [    2.131032] CAM_INFO: CAM: cam_res_mgr_probe: 685 Enable shared gpio support.
      [    2.131600] CAM_INFO: CAM-CCI: cam_cci_platform_probe: 454 Device Type :0
      [    2.131995] CAM_INFO: CAM-CCI: cam_cci_platform_probe: 454 Device Type :1
      [    2.133150] CAM_WARN: CAM-ICP: cam_a5_get_dt_properties: 46 QoS need not be set
      [    2.134670] CAM_INFO: CAM-JPEG: cam_jpeg_dev_probe: 162 Camera JPEG probe complete
      [    2.415770] CAM_ERR: CAM-CCI: cam_cci_assign_fops: 528 Invalid dev node:000000004a8e8296 offset: 0
      [    5.438602] CAM_INFO: CAM-HFI: cam_hfi_init: 878 Init IO1 : [0x10c00000 0xcf300000] IO2 [0xe0200000 0x1ed00000]
      [    5.448912] CAM_INFO: CAM-ICP: cam_icp_mgr_hw_open: 3879 FW download done successfully
      [    5.449114] CAM_INFO: CAM-ICP: cam_icp_mgr_process_dbg_buf: 2572 FW_DBG:CICP_FW_E : HFI  :QC_IMAGE_VERSION_STRING=CICP.FW.1.0-00079,OEM_IMAGE_VERSION_STRING=CRM,BUILD_TIME: Oct 17 2019 05:49:19,CACHE_ENABLED at icphostinterface.c:636 QC_IMAGE_VERSION_STRING=CICP.FW.1.0-00079 OEM_IMAGE_VERSION_STRING=CRM
      [    5.449116] CAM_INFO: CAM-ICP: cam_icp_mgr_process_dbg_buf: 2572 FW_DBG:CICP_FW_E : HFI  :ELF variant: CACHE-ENABLED:T480:API_V2:USE_CDM_1_1: , API version: 0x2000049 at icphostinterface.c:637 QC_IMAGE_VERSION_STRING=CICP.FW.1.0-00079 OEM_IMAGE_VERSION_STRING=CRM
      [    5.555516] CAM_ERR: CAM-CCI: cam_cci_irq: 264 Base:        pK-error, M1_Q1 NACK ERROR: 0x40000000
      [    5.555538] CAM_ERR: CAM-CCI: cam_cci_read: 1329 ERROR with Slave 0x34:
      [    5.555540] CAM_ERR: CAM-CCI: cam_cci_read_bytes: 1613 failed to read rc:-22
      [    5.555542] CAM_ERR: CAM-SENSOR: cam_cci_i2c_read: 35 rc = -22
      [    5.555543] CAM_WARN: CAM-SENSOR: cam_sensor_match_id: 707 read id: 0x0 expected id 0x577:
      [    5.683988] CAM_ERR: CAM-CCI: cam_cci_irq: 258 Base:        pK-error, M1_Q0 NACK ERROR: 0x20000000
      [    5.684050] CAM_ERR: CAM-CCI: cam_cci_wait: 270 failed rc -22
      [    5.684054] CAM_ERR: CAM-CCI: cam_cci_transfer_end: 345 failed rc -22
      [    5.684057] CAM_ERR: CAM-CCI: cam_cci_data_queue: 870 Slave: 0x34 failed rc -22
      [    5.684059] CAM_ERR: CAM-CCI: cam_cci_i2c_write: 1450 failed rc: -22
      [    5.684063] CAM_ERR: CAM-SENSOR: cam_cci_i2c_write_table_cmd: 123 Failed rc = -22
      [    5.768082] CAM_ERR: CAM-SENSOR: cam_sensor_imx678_disable_standby: 816 [Setting register to standby] camera_io_dev_write failed: rc=-22
      [    5.768221] CAM_ERR: CAM-CCI: cam_cci_irq: 264 Base:        pK-error, M1_Q1 NACK ERROR: 0x40000000
      [    5.768249] CAM_ERR: CAM-CCI: cam_cci_read: 1329 ERROR with Slave 0x34:
      [    5.768254] CAM_ERR: CAM-CCI: cam_cci_read_bytes: 1613 failed to read rc:-22
      [    5.768258] CAM_ERR: CAM-SENSOR: cam_cci_i2c_read: 35 rc = -22
      [    5.768266] CAM_WARN: CAM-SENSOR: cam_sensor_match_id: 707 read id: 0x0 expected id 0xa602:
      [    5.813458] CAM_WARN: CAM-CRM: cam_req_mgr_close: 160 release invoked associated userspace process has died
      

      I don't know why it seems to fail the important read..

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors