Cannot start Starvis IMX462 camera in Rpi5 with Bookworms

  1. Where did you get the camera module(s)?
  2. Model number of the product(s)?
    IMX462 Starvis
  3. What hardware/platform were you working on?
    Raspberry Pi5 Bookworm
  4. Instructions you have followed. (link/manual/etc.)
    Quick start guide
    Add dtoverlay=imx462 in config.txt file
  5. Problems you were having?
    Cannot start the camera with Picamera2 or with libcamera-still command
  6. The dmesg log from your hardware?
dmesg | grep imx
[    0.635075] platform 1f00128000.csi: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/i2c@80000/imx290@1a
[    3.387287] rp1-cfe 1f00128000.csi: found subdevice /axi/pcie@120000/rp1/i2c@80000/imx290@1a
[    3.964089] imx290 4-001a: Error writing reg 0x301c: -121
[    3.964251] imx290 4-001a: Error writing reg 0x3020: -121
[    3.964651] imx290 4-001a: Error writing reg 0x3018: -121
[    3.964799] imx290 4-001a: Error writing reg 0x3020: -121
[    3.964814] rp1-cfe 1f00128000.csi: Using sensor imx290 4-001a for capture

pi@rpi5:~ $ dpkg -l | grep libcamera
ii  libcamera-dev:armhf                  0.2.0+rpt20240424-1              armhf        complex camera support library (development files)
ii  libcamera-ipa:armhf                  0.2.0+rpt20240424-1              armhf        complex camera support library (IPA modules)
ii  libcamera-tools                      0.2.0+rpt20240418-1              armhf        complex camera support library (tools)
ii  libcamera0.2:armhf                   0.2.0+rpt20240424-1              armhf        complex camera support library
ii  pipewire-libcamera:armhf             0.3.65-3+rpt6+deb12u1            armhf        PipeWire libcamera plugin
ii  python3-libcamera:armhf              0.2.0+rpt20240418-1              armhf        complex camera support library (Python bindings)
  1. Troubleshooting attempts you’ve made?
    installing arducam script stated in Quick Start Guide.
    Trying dtoverlay=arducam-pivariety
  2. What help do you need?
    How can I start the IMX462 and run properly libcamera-still command ?

Could you post the link where you purchased this camera module?

I have also tried the solution you post here Running B0423 - IMX462 on Pi5 bookworm - #4 by Dion

libcamera-still -t 0 --tuning-file ./new_imx290.json

I have following errors :

[0:00:50.034138016] [1848]  INFO Camera camera_manager.cpp:284 libcamera v0.1.0+320-5b2af7e6-dirty (2024-04-24T08:36:19+01:00)
[0:00:50.047054897] [1853]  INFO RPI pisp.cpp:695 libpisp version v1.0.5 999da5acb4f4 17-04-2024 (14:33:53)
[0:00:50.071405583] [1853]  INFO RPI pisp.cpp:1155 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/imx290@1a to CFE device /dev/media1 and ISP device /dev/media2 using PiSP variant BCM2712_C0
Made X/EGL preview window
[0:00:50.402089767] [1848]  WARN V4L2 v4l2_pixelformat.cpp:344 Unsupported V4L2 pixel format RPBP
Mode selection for 960:540:12:P
    SRGGB10_CSI2P,1280x720/0 - Score: 1125
    SRGGB10_CSI2P,1920x1080/0 - Score: 1375
    SRGGB12_CSI2P,1280x720/0 - Score: 125
    SRGGB12_CSI2P,1920x1080/0 - Score: 375
Stream configuration adjusted
[0:00:50.402400033] [1848]  INFO Camera camera.cpp:1183 configuring streams: (0) 960x540-YUV420 (1) 1280x720-RGGB_PISP_COMP1
[0:00:50.402538491] [1853]  INFO RPI pisp.cpp:1451 Sensor: /base/axi/pcie@120000/rp1/i2c@80000/imx290@1a - Selected sensor format: 1280x720-SRGGB12_1X12 - Selected CFE format: 1280x720-PC1R
[0:00:50.449053946] [1853] ERROR V4L2 v4l2_videodevice.cpp:1906 /dev/video6[18:cap]: Failed to start streaming: Remote I/O error
ERROR: *** failed to start camera ***

Hi guy any idea what is the issue. Does the arducam IMX462 work on last release of Bookworm, because your installation script still point to /boot/config.txt which is not used anymore by the OS, it is now /boot/firmware/config.txt

It seems that you did not follow the correct guide before. Please follow the steps below to configure your Raspberry Pi to access this camera module.

:ok_hand: It works, thanks for your help.