0

I am writing regarding a technical issue with the IMX477-160 12.3MP Camera Module (SKU: 19211) when used with a Raspberry Pi Compute Module 4 (CM4). I hope you can provide guidance on proper configuration for this setup.

Hardware Configuration

  • Camera Module: Waveshare IMX477-160 12.3MP Camera (SKU: 19211)
  • Sensor: Sony IMX477
  • Resolution: 4056 × 3040 pixels (12.3MP)
  • Field of View: 160° diagonal
  • Cable: 15-pin FPC flexible cable (included with camera)

Compute Module: Raspberry Pi Compute Module 4 Rev 1.1

Carrier Board: Waveshare CM4-NANO-B

Operating System: Raspberry Pi OS (Debian 64-bit) Kernel: 6.12.47

Ribbon Cable: 15-pin FPC cable (from camera package)


I made the changes in config.txt. changed camera_auto_detect=0 dtoverlay=imx477,cam0

and also tried with imx708 camera sensor along with config dtoverlay=imx477,cam0

and tested with the following commands:

rpicam-hello --list cameras,
rpicam-hello -t 0,  
rpicam-hello --width 640 --height 480 -t 5000,
v4l2-ctl -d /dev/video0 --log-status

and many more from the camera software documentation from official raspberrypie documentation, but getting the same timeout error.

i even changed --> "camera_timeout_value_ms": 6000, in /usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml

here are the logs for :

  1. imx477,cam0

    1st command

aksh@raspberrypi:~ $ rpicam-hello --list-cameras
Available cameras
-----------------
0 : imx477 [4056x3040 12-bit RGGB] (/base/soc/i2c0mux/i2c@0/imx477@1a)
    Modes: 'SRGGB10_CSI2P' : 1332x990 [120.05 fps - (696, 528)/2664x1980 crop]
           'SRGGB12_CSI2P' : 2028x1080 [50.03 fps - (0, 440)/4056x2160 crop]
                             2028x1520 [40.01 fps - (0, 0)/4056x3040 crop]
                             4056x3040 [10.00 fps - (0, 0)/4056x3040 crop

2nd command

aksh@raspberrypi:~ $ rpicam-hello -t 0
[0:23:25.707118037] [1578]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
[0:23:25.746501397] [1581]  INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/vc4/imx708.json
[0:23:25.752494782] [1581]  INFO Camera camera_manager.cpp:220 Adding camera '/base/soc/i2c0mux/i2c@0/imx708@1a' for pipeline handler rpi/vc4
[0:23:25.752591060] [1581]  INFO RPI vc4.cpp:440 Registered camera /base/soc/i2c0mux/i2c@0/imx708@1a to Unicam device /dev/media3 and ISP device /dev/media1
[0:23:25.752651338] [1581]  INFO RPI pipeline_base.cpp:1107 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Made X/EGL preview window
Made DRM preview window
Preview window unavailable
Mode selection for 2304:1296:12:P
    SRGGB10_CSI2P,1536x864/0 - Score: 3400
    SRGGB10_CSI2P,2304x1296/0 - Score: 1000
    SRGGB10_CSI2P,4608x2592/0 - Score: 1900
[0:23:26.049621581] [1578]  INFO Camera camera.cpp:1215 configuring streams: (0) 2304x1296-YUV420/sYCC (1) 2304x1296-SBGGR10_CSI2P/RAW
[0:23:26.050059878] [1581]  INFO RPI vc4.cpp:615 Sensor: /base/soc/i2c0mux/i2c@0/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10/RAW - Selected unicam format: 2304x1296-pBAA/RAW
[0:23:32.209807810] [1581]  WARN V4L2 v4l2_videodevice.cpp:2155 /dev/video0[11:cap]: Dequeue timer of 6000000.00us has expired!
[0:23:32.210018644] [1581] ERROR RPI pipeline_base.cpp:1346 Camera frontend has timed out!
[0:23:32.210098552] [1581] ERROR RPI pipeline_base.cpp:1347 Please check that your camera sensor connector is attached securely.
[0:23:32.210173718] [1581] ERROR RPI pipeline_base.cpp:1348 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
[0:23:38.368795184] [1581]  WARN V4L2 v4l2_videodevice.cpp:2155 /dev/video0[11:cap]: Dequeue timer of 6000000.00us has expired!
[0:23:38.368937351] [1581] ERROR RPI pipeline_base.cpp:1346 Camera frontend has timed out!
[0:23:38.368970703] [1581] ERROR RPI pipeline_base.cpp:1347 Please check that your camera sensor connector is attached securely.
[0:23:38.369000944] [1581] ERROR RPI pipeline_base.cpp:1348 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!

  1. imx708,cam0

    1st command:

aksh@raspberrypi:~ $ rpicam-hello --list-cameras
Available cameras
-----------------
0 : imx708 [4608x2592 10-bit RGGB] (/base/soc/i2c0mux/i2c@0/imx708@1a)
    Modes: 'SRGGB10_CSI2P' : 1536x864 [120.13 fps - (768, 432)/3072x1728 crop]
                             2304x1296 [56.03 fps - (0, 0)/4608x2592 crop]
                             4608x2592 [14.35 fps - (0, 0)/4608x2592 crop]

2nd command

aksh@raspberrypi:~ $ rpicam-hello -t 0
[0:46:13.697868148] [1627]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
[0:46:13.757285432] [1630]  INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/vc4/imx708.json
[0:46:13.763255773] [1630]  INFO Camera camera_manager.cpp:220 Adding camera '/base/soc/i2c0mux/i2c@0/imx708@1a' for pipeline handler rpi/vc4
[0:46:13.763357232] [1630]  INFO RPI vc4.cpp:440 Registered camera /base/soc/i2c0mux/i2c@0/imx708@1a to Unicam device /dev/media3 and ISP device /dev/media1
[0:46:13.763415193] [1630]  INFO RPI pipeline_base.cpp:1107 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Made X/EGL preview window
Made DRM preview window
Preview window unavailable
Mode selection for 2304:1296:12:P
    SRGGB10_CSI2P,1536x864/0 - Score: 3400
    SRGGB10_CSI2P,2304x1296/0 - Score: 1000
    SRGGB10_CSI2P,4608x2592/0 - Score: 1900
[0:46:13.805856022] [1627]  INFO Camera camera.cpp:1215 configuring streams: (0) 2304x1296-YUV420/sYCC (1) 2304x1296-SBGGR10_CSI2P/RAW
[0:46:13.806276320] [1630]  INFO RPI vc4.cpp:615 Sensor: /base/soc/i2c0mux/i2c@0/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10/RAW - Selected unicam format: 2304x1296-pBAA/RAW
[0:46:19.921317515] [1630]  WARN V4L2 v4l2_videodevice.cpp:2155 /dev/video0[11:cap]: Dequeue timer of 6000000.00us has expired!
[0:46:19.921520599] [1630] ERROR RPI pipeline_base.cpp:1346 Camera frontend has timed out!
[0:46:19.921599429] [1630] ERROR RPI pipeline_base.cpp:1347 Please check that your camera sensor connector is attached securely.
[0:46:19.921674056] [1630] ERROR RPI pipeline_base.cpp:1348 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!

i have changed these parts

  1. 15 pin flat wire connector
  2. imx477, imx708

only part i have not changed and tested yet is waveshore nano board b, and cm4

really appreciate any help, tahnk you in advance

1
  • Is the FPC cable correctly inserted and secured on both ends, especially is it the right way around? Commented Nov 11 at 11:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.