cancel
Showing results for 
Search instead for 
Did you mean: 

VD55G0 not detected on Raspberry Pi 5

asdfasdf
Associate III

Dear all,

I'm trying to get a VD55G0 sensor (promodule connected via P-board) working on a Raspberry Pi 5. I followed the Linux Start Guide for the driver. The only difference with respect to the guide were the name of the device tree file (guide says pcb4189.dts which the repository does not contain, so I used pcb4189_vd55g0.dts), and the names of the libcamera packages (the filenames seem to have changed, I have installed both .deb packages from the STSW-IMG505_RPI download). However, the camera sensor is not detected at all:

$ rpicam-hello –-list-cameras
[0:12:15.584143721] [1262]  INFO Camera camera_manager.cpp:340 libcamera v0.0.0+5981-73aeb895-dirty (2025-12-09T14:49:21UTC)
Made DRM preview window
Preview window unavailable
ERROR: *** no cameras available ***

$ ls /sys/bus/i2c/drivers
dummy  stmpe-i2c

$ uname -r
6.12.62+rpt-rpi-2712

There is some output in the system log regarding the sensor, but I'm not sure what to make of that:

$ sudo dmesg | grep vd55g0
[    0.938491] /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
[    0.949784] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10
[    0.961174] /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
[    0.972464] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10
[    2.263483] /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
[    2.275063] /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
[    2.286350] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10
[    5.257501] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10
[    5.257526] /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
[    5.357883] rp1-cfe 1f00128000.csi: found subdevice /axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10

Here is a photo of the physical setup, I think I have matched what is written in the Guide:

Groß (IMG_5235).jpeg

I know that the camera sensor and P-board are working (have already used it on a STM32N6-DK board), so this is very likely a software issue.

Any ideas what the problem could be, or how I could debug this?

Thanks a lot!

Michael

1 ACCEPTED SOLUTION

Accepted Solutions
asdfasdf
Associate III

Thanks @CyrilTechPro , I got it to work! There were two problems. First, the Guide recommends installing the driver with `sudo cp *.ko /lib/modules/$(uname -r)`. However, apparently my kernel version changed afterwards (maybe due to `apt update` - not sure here, could also be some auto-upgrade of the Raspi running in the background). Of course the result is that the driver simply was not there anymore... After I fixed that (by re-installing the driver), there was still an issue, this was solved by adding `,cam0` when configuring the device tree overlay, as you recommended.

Thanks again!

Michael

View solution in original post

3 REPLIES 3
CyrilTechPro
ST Employee

Hello Michael, 

Your device tree seems not well apply, could you change de device tree to pcb4280 to match with board pcb number.

This should not solve the issue,

 

Can you  add ,cam0  in config.txt  like this "dtoverlay=youroverlay,cam0"

 

 

I will change the guide.

 

Cyril

 

 

asdfasdf
Associate III

Thanks @CyrilTechPro , I got it to work! There were two problems. First, the Guide recommends installing the driver with `sudo cp *.ko /lib/modules/$(uname -r)`. However, apparently my kernel version changed afterwards (maybe due to `apt update` - not sure here, could also be some auto-upgrade of the Raspi running in the background). Of course the result is that the driver simply was not there anymore... After I fixed that (by re-installing the driver), there was still an issue, this was solved by adding `,cam0` when configuring the device tree overlay, as you recommended.

Thanks again!

Michael

WuFeng
Associate

Dear all,

I also use vd55g0 and raspberry pi5, and currently, I can detect the camera. However, when I start the camera capture, an error occurs.

aaa@XWC:~ $ rpicam-hello --list
Available cameras
-----------------
0 : vd55g0 [644x604 10-bit MONO] (/base/axi/pcie@1000120000/rp1/i2c@80000/vd55g0@10)
    Modes: 'R8' : 320x240 [189.93 fps - (2, 62)/640x480 crop]
                  640x480 [122.99 fps - (2, 62)/640x480 crop]
                  640x600 [122.99 fps - (2, 2)/640x600 crop]
                  644x604 [122.99 fps - (0, 0)/644x604 crop]
           'R10_CSI2P' : 320x240 [189.93 fps - (2, 62)/640x480 crop]
                         640x480 [122.99 fps - (2, 62)/640x480 crop]
                         640x600 [122.99 fps - (2, 2)/640x600 crop]
                         644x604 [122.99 fps - (0, 0)/644x604 crop]
[0:45:44.348286032] [14881]  WARN IPARPI ipa_base.cpp:1294 Could not set SHARPNESS - no sharpen algorithm
[0:45:44.352073337] [14585] ERROR V4L2 v4l2_videodevice.cpp:1789 /dev/video4[13:cap]: Failed to queue buffer 0: Invalid argument
[0:45:44.352468205] [14585] ERROR RPISTREAM rpi_stream.cpp:267 Failed to queue buffer for CFE Image
ERROR: Device timeout detected, attempting a restart!!!
[0:45:44.354943093] [14585] ERROR V4L2 v4l2_videodevice.cpp:1789 /dev/video4[13:cap]: Failed to queue buffer 1: Invalid argument
[0:45:44.354969408] [14585] ERROR RPISTREAM rpi_stream.cpp:267 Failed to queue buffer for CFE Image
[0:45:44.357185984] [14585] ERROR V4L2 v4l2_videodevice.cpp:1789 /dev/video4[13:cap]: Failed to queue buffer 2: Invalid argument
[0:45:44.357201077] [14585] ERROR RPISTREAM rpi_stream.cpp:267 Failed to queue buffer for CFE Image
[0:45:44.359397042] [14585] ERROR V4L2 v4l2_videodevice.cpp:1789 /dev/video4[13:cap]: Failed to queue buffer 3: Invalid argument
[0:45:44.359415690] [14585] ERROR RPISTREAM rpi_stream.cpp:267 Failed to queue buffer for CFE Image
[0:45:44.360726032] [14883]  WARN IPARPI ipa_base.cpp:1294 Could not set SHARPNESS - no sharpen algorithm

 Thanks a lot!

Wu