Skip to main content
Collect camera logs using one of the following commands:
Or:
This command collects both KMD and UMD logs. To collect only KMD logs, use the following command:

Capture user mode logs

A variety of log levels available in the camera software. Based on need, developers can enable these log levels to debug issues efficiently. Log levels are controlled through the following override settings. To enable logging:
  1. On first use, create a text filename camxoverridesettings.txt.
  2. Add the required log mask to this text file. For example, LogVerboseMask=0XFF11 and LogInfoMask=0x1C09811.
  3. Push the modified file to /var/cache/camera/camxoverridesettings.txt. A device reboot may be required after changing override settings.
Example 1 Controlled debug log messages determine which groups of the camera system output logs for each log level. To enable verbose and entry or exit log settings, add the following to the /var/cache/camera/camxoverridesettings.txt file:
Example 2 To enable verbose logs for HAL CSL groups only, enable warnings from sensor, HAL, and CSL and disable system logging:

Camera UMD logs

The camera driver is implemented with debug log messages. The log messages can be filtered to limit what’s displayed according to user interest (verbosity level and group). Each log comes from a specified group and has a verbosity level ranging from verbose to error. All camera debug logs follow the same format:
For example:
The following verbosity levels are supported by the driver to gain insight into problems when debugging camera applications.

Camera user mode logging groups

The driver is split into various logical components known as groups. Using a specific group allows you to reduce the amount of log messages sent to the component(s) you are interested in obtaining information from. This is accomplished with a bitmask to selectively choose which logs to enable from different components of the camera system. The following table lists the UMD logging groups.

Capture kernel mode logs

KMD log messages are enabled by default and appear in the kernel logs. Camera KMD logs all start with the CAM prefix. Additional debugging logs are available in the KMD and are controlled through groups. The following table lists the KMD logging groups.

Enable camera kernel mode driver logs

  1. To enable CAM_SENSOR and CAM_ICP debug logs in the KMD, run the following commands in an SSH shell:
  • QCS6490
  • IQ-9075-EVK/IQ-8275-EVK
  • QCS615
  1. To enable CSID IRQ logs dynamically, use the appropriate mask value(s) with the following commands.
    • QCS6490
    • IQ-9075-EVK/IQ-8275-EVK/QCS615
    The following table lists the CSID debug groups.
    • To enable SOF, EOF, SOT, and EOT IRQs:
    • To set only short packet and long packet capture IRQs:
    Information is logged to kmsg and can be obtained using the following command:
    The captured logs can help provide details about the SOF and EOF and indicate which sensor is streaming. The following is an example log:

Enable CSIPHY log dumps

To enable CSIPHY log dumps:
  1. Use the following command to get log dumps from CSIPHY:
The information is logged to kmsg.
  1. Use the following command to obtain the log dump file:
Note In these logs, <chipset name> corresponds to the following:
  • qcm6490 - RB3gen2
  • qcs9100 - IQ-9075-EVK/IQ-8275-EVK
  • qcs615 - IQ-615-EVK

Enable CSID SOF/EOF IRQ logs

To enable CSID SOF/EOF IRQ logs, run the following commands for trace logs:
Note In these logs, <chipset name> corresponds to the following:
  • qcm6490 - RB3gen2
  • qcs9100 - IQ-9075-EVK/IQ-8275-EVK
  • qcs615 - IQ-615-EVK

Collect CPAS logs

To collect clock voting information in the camera log:
  1. Run the following command using camxoverridesettings.txt for core, HAL, IFE, and power:
  1. After rebooting, enable the KMD CAM_CPAS|CAM_PERF|CAM_REQ mask:
  1. Collect the log, and run the use case:
Note In these logs, <chipset name> corresponds to the following:
  • qcm6490 - RB3gen2
  • qcs9100 - IQ-9075-EVK/IQ-8275-EVK
  • qcs615 - IQ-615-EVK

Enable kernel run-time log mask

Run the following command to enable CRM logs:
For example, to enable CRM, ISP, and CPAS logs:
Note In these logs, <chipset name> corresponds to the following:
  • qcm6490 - RB3gen2
  • qcs9100 - IQ-9075-EVK/IQ-8275-EVK
  • qcs615 - IQ-615-EVK
No device reboot is required. If you reboot, run this command again before opening the camera application. The following list provides the debug bitmask for each driver.