Skip to main content

Camera Not Detected

Solutions for camera detection and image quality issues.

Camera Not in /dev/video*

Symptoms

ls /dev/video*
# No output or missing device

Solutions

  1. Check Physical Connection

    • MIPI cable firmly seated
    • Correct orientation
    • No bent pins
  2. Verify Camera Setup Script

    # Run appropriate setup
    /usr/bin/setup_imx678_sdr.sh
    # or
    /usr/bin/setup_imx334.sh
  3. Check Kernel Messages

    dmesg | grep -i camera
    dmesg | grep -i imx
  4. Reload Driver

    rmmod imx678 # or your sensor driver
    modprobe imx678

Sensor Initialization Errors

Symptoms

imx678 1-001a: failed to read chip revision

Solutions

  1. Check Compatible Sensor

    • Verify sensor model
    • Check driver support
  2. Power Cycle

    • Full power off
    • Wait 10 seconds
    • Power on
  3. Check I2C Bus

    i2cdetect -y 1
    # Should show sensor at address 0x1a

Image Corruption/Artifacts

Symptoms

  • Image tearing
  • Color artifacts
  • Random noise

Solutions

  1. Check MIPI Signal

    • Shorter cable if possible
    • Higher quality cable
    • Check for interference
  2. Verify Clock Settings

    v4l2-ctl -d /dev/video0 -l | grep clock
  3. Reduce Resolution

    • Try lower resolution first
    • Check sensor limits

Dark Image / Poor Exposure

Symptoms

  • Image too dark
  • Washed out colors
  • Motion blur

Solutions

  1. Remove Lens Cap

    • Check lens cover is off
  2. Verify AE is Enabled

    v4l2-ctl -d /dev/video0 -C exposure
    v4l2-ctl -d /dev/video0 -c exposure_auto=1
  3. Check Exposure Windows

    # Set full frame exposure
    v4l2-ctl -d /dev/video0 -c exposure_absolute=1000

HDR Mode Not Working

Symptoms

  • HDR enabled but no effect
  • Image still has blown highlights
  • Sensor errors in dmesg

Solutions

  1. Verify Sensor Supports HDR

    • IMX678 supports 2-DOL/3-DOL
    • Check sensor datasheet
  2. Enable HDR in Pipeline

    # Check frontend config
    cat /usr/bin/frontend_config.json | grep -i hdr

Quick Diagnostic Commands

# List video devices
ls -la /dev/video*

# Check camera info
v4l2-ctl -d /dev/video0 --list-formats-ext

# Check controls
v4l2-ctl -d /dev/video0 -l

# Test capture
v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=1 --stream-to=test.raw

# Check kernel messages
dmesg | grep -i imx