intel / intel/ipu6-drivers

Camera IPU6 (OVTI01AF) Not Working: Black Screen and Errors in Logs (intel nuc m15 lapbc710)

Open
#323 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
251
Forks
75
PR merge metrics
No merged PRs in 30d

Description

### **Description:**

After installing and configuring all necessary drivers and libraries for the IPU6 camera, the camera does not work. When attempting to use the camera via GStreamer (`gst-launch-1.0`) or other applications, a black screen is displayed. Logs indicate several errors, particularly related to `aiqb` files and media format issues. My sensor INT3480 (OVTI01AF).

---

### **Steps to Reproduce:**

1. Installed `akmod-intel-ipu6` from RPM Fusion.
2. Install [intel/ipu6-camera-bins](https://github.com/intel/ipu6-camera-bins)
3. Installed required dependencies for `ipu6-camera-hal`:
```bash
sudo dnf install expat-devel automake libtool libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libdrm-dev
```
3. Cloned the `ipu6-camera-hal` repository and built the project:
```bash
git clone https://github.com/intel/ipu6-camera-hal.git
cd ipu6-camera-hal
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_CAMHAL_ADAPTOR=ON \
-DBUILD_CAMHAL_PLUGIN=ON \
-DIPU_VERSIONS="ipu6;ipu6ep;ipu6epmtl" \
-DUSE_PG_LITE_PIPE=ON \
..
make -j$(nproc)
sudo make install
```
4. Attempted to run the camera using GStreamer:
```bash
sudo -E gst-launch-1.0 icamerasrc buffer-count=7 ! video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! ximagesink
```

5. Observed a black screen in applications like `guvcview`.

---

### **Relevant Logs:**

#### **1. Journalctl Logs:**
The journalctl logs contain several errors related to `aiqb` files and media format issues:
```plaintext
[01-31 00:17:00.257] CamHAL[INF] aiqb file name hm11b1.aiqb
[01-31 00:17:00.261] CamHAL[ERR] invalid media format, default value used.
[01-31 00:17:00.261] CamHAL[INF] aiqb file name ov01a1s.aiqb
[01-31 00:17:00.262] CamHAL[ERR] invalid media format, default value used.
[01-31 00:17:00.263] CamHAL[INF] aiqb file name hm11b1.aiqb
[01-31 00:17:00.263] CamHAL[ERR] invalid media format, default value used.
[01-31 00:17:00.263] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-31 00:17:00.264] CamHAL[ERR] invalid media format, default value used.
[01-31 00:17:00.264] CamHAL[INF] aiqb file name IMX390_HDR_TGL_2.aiqb
[01-31 00:17:00.265] CamHAL[ERR] invalid media format, default value used.
[01-31 00:17:00.265] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-31 00:17:00.266] CamHAL[INF] updateMediaFormat, media format in tuning: 0, media format for aic 0.
```

#### **2. GStreamer Logs:**
When running the GStreamer pipeline, the following errors occur:
```plaintext
[01-31 01:51:16.171] CamHAL[ERR] Get entity fail for calling getEntityById
[01-31 01:51:16.171] CamHAL[ERR] setup Link hm11b1 [-1:0] ==> Intel IPU6 CSI-2 [-1x0] enable 1 failed.
[01-31 01:51:16.171] CamHAL[ERR] set MediaCtlConf McLink failed: ret = -1
[01-31 01:51:16.171] CamHAL[ERR] set up mediaCtl failed
[01-31 01:51:16.171] CamHAL[ERR] @configure Device Configure failed
[01-31 01:51:16.171] CamHAL[ERR] failed to config streams.
ERROR: from element /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0: src pad: Internal data flow error.
```

#### **3. Kernel Configuration:**
The kernel configuration file shows that all necessary options for IPU6 are enabled:
```plaintext
CONFIG_VIDEO_INTEL_IPU6=m
CONFIG_IPU_ISYS_BRIDGE=y
CONFIG_IPU_BRIDGE=m
CONFIG_VIDEO_OV01A1S=m
CONFIG_VIDEO_OV01A10=m
CONFIG_VIDEO_HM11B1=m
CONFIG_VIDEO_OV02C10=m
CONFIG_VIDEO_OV02E10=m
CONFIG_VIDEO_HM2170=m
CONFIG_VIDEO_HM2172=m
CONFIG_VIDEO_HI556=m
```

---

### **Expected Behavior:**

The camera should be operational and display video feed in applications like `guvcview` or `gst-launch-1.0`. There should be no errors in the logs, and the camera should be properly configured with the correct media format.

---

### **Actual Behavior:**

- The camera displays a black screen in applications.
- Multiple errors related to `aiqb` files and media format issues are present in the logs.

---

### **Environment:**

- **Operating System:** Fedora 41
- **Kernel Version:** 6.12.10-200.fc41.x86_64
- **GStreamer Version:** 1.22.11
- **IPU6 Driver Version:** master branch
- **IPU6 Camera Binaries Version:** master branch

Journalctl Logs
Kernel Configuration
GStreamer Error

[journalctl.txt](https://github.com/user-attachments/files/18614656/journalctl.txt)
[config-6.12.10-200.fc41.x86_64.txt](https://github.com/user-attachments/files/18614658/config-6.12.10-200.fc41.x86_64.txt)
[error_icamera.txt](https://github.com/user-attachments/files/18614657/error_icamera.txt)

---

![Image](https://github.com/user-attachments/assets/8731e05a-f192-460e-b004-5a7027d57830)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.