Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    1. Home
    2. Sheko
    3. Posts
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 13
    • Best 0
    • Groups 0

    Posts made by Sheko

    • RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries

      @alex_ai

      ~ $ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY, width=1920, height=1080,framerate=30/1 ! videoconvert ! video/x-raw,format=GRAY8 ! appsink sync=1
      Setting pipeline to PAUSED ...
      Pipeline is live and does not need PREROLL ...
      Pipeline is PREROLLED ...
      Setting pipeline to PLAYING ...
      New clock: GstSystemClock
      ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
      Additional debug info:
      ../sys/v4l2/gstv4l2src.c(976): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
      Buffer pool activation failed
      Execution ended after 0:00:00.003958838
      ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
      Setting pipeline to NULL ...
      Additional debug info:
      ../libs/gst/base/gstbasesrc.c(3132): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
      streaming stopped, reason not-negotiated (-4)
      Freeing pipeline ...
      
      
      posted in CS MIPI camera
      S
      Sheko
    • RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries

      @veye_xumm
      I got the title wrong - I meant Picamera2. I need to start working in Opencv first.

      ~ $ rpicam-hello
      [3:42:19.883111801] [3703]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
      [3:42:19.894406703] [3706]  INFO RPI pisp.cpp:720 libpisp version v1.2.1 981977ff21f3 29-04-2025 (14:13:50)
      [3:42:19.895982049] [3706]  WARN CameraSensorProperties camera_sensor_properties.cpp:499 No static properties available for 'mvcam'
      [3:42:19.896044820] [3706]  WARN CameraSensorProperties camera_sensor_properties.cpp:501 Please consider updating the camera sensor properties database
      [3:42:19.899758099] [3706] ERROR IPAProxy ipa_proxy.cpp:185 Configuration file 'mvcam_mono.json' not found for IPA module 'rpi/pisp'
      [3:42:19.899815776] [3706] ERROR IPARPI ipa_base.cpp:152 Could not create camera helper for mvcam
      [3:42:19.899835354] [3706] ERROR RPI pipeline_base.cpp:814 Failed to load a suitable IPA library
      [3:42:19.899850764] [3706] ERROR RPI pisp.cpp:947 Failed to register camera mvcam 10-003b: -22
      Made X/EGL preview window
      ERROR: *** no cameras available ***
      
      
      posted in CS MIPI camera
      S
      Sheko
    • RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries

      @alex_ai

      command not found(((

      ~ $ v4l2src device=/dev/video0 ! video/x-raw,format=UYVY, width=1920, height=1080,framerate=30/1 ! videoconvert ! video/x-raw,format=GRAY8 ! appsink sync=1
      bash: v4l2src: command not found
      
      
      posted in CS MIPI camera
      S
      Sheko
    • RE: RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries

      @alex_ai
      error:

      Setting pipeline to PAUSED ...
      [0:20:26.080213248] [4028]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
      [0:20:26.088722626] [4031]  INFO RPI pisp.cpp:720 libpisp version v1.2.1 981977ff21f3 29-04-2025 (14:13:50)
      [0:20:26.094319101] [4031]  WARN CameraSensorProperties camera_sensor_properties.cpp:499 No static properties available for 'mvcam'
      [0:20:26.094351897] [4031]  WARN CameraSensorProperties camera_sensor_properties.cpp:501 Please consider updating the camera sensor properties database
      [0:20:26.100093147] [4031] ERROR IPAProxy ipa_proxy.cpp:185 Configuration file 'mvcam_mono.json' not found for IPA module 'rpi/pisp'
      [0:20:26.100144183] [4031] ERROR IPARPI ipa_base.cpp:152 Could not create camera helper for mvcam
      [0:20:26.100157665] [4031] ERROR RPI pipeline_base.cpp:814 Failed to load a suitable IPA library
      [0:20:26.100168201] [4031] ERROR RPI pisp.cpp:947 Failed to register camera mvcam 10-003b: -22
      ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Could not find a camera named '/base/axi/pcie@120000/rp1/i2c@88000/veyemvcam@3b'.
      Additional debug info:
      ../src/gstreamer/gstlibcamerasrc.cpp(489): gst_libcamera_src_open (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:
      libcamera::CameraMananger::get() returned nullptr
      ERROR: pipeline doesn't want to preroll.
      Failed to set pipeline to PAUSED.
      Setting pipeline to NULL ...
      Freeing pipeline ...
      
      

      maybe this is the problem?

      ~ $ v4l2-ctl --list-devices
      pispbe (platform:1000880000.pisp_be):
      	/dev/video20
      	/dev/video21
      	/dev/video22
      	/dev/video23
      	/dev/video24
      	/dev/video25
      	/dev/video26
      	/dev/video27
      	/dev/video28
      	/dev/video29
      	/dev/video30
      	/dev/video31
      	/dev/video32
      	/dev/video33
      	/dev/video34
      	/dev/video35
      	/dev/media2
      	/dev/media3
      
      rp1-cfe (platform:1f00110000.csi):
      	/dev/video0
      	/dev/video1
      	/dev/video2
      	/dev/video3
      	/dev/video4
      	/dev/video5
      	/dev/video6
      	/dev/video7
      	/dev/media0
      
      rp1-cfe (platform:1f00128000.csi):
      	/dev/media1
      
      rpi-hevc-dec (platform:rpi-hevc-dec):
      	/dev/video19
      	/dev/media4
      
      
      
      ~ $ rpicam-hello
      [0:30:49.476854480] [4953]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
      [0:30:49.484323268] [4956]  INFO RPI pisp.cpp:720 libpisp version v1.2.1 981977ff21f3 29-04-2025 (14:13:50)
      [0:30:49.485435690] [4956]  WARN CameraSensorProperties camera_sensor_properties.cpp:499 No static properties available for 'mvcam'
      [0:30:49.485459578] [4956]  WARN CameraSensorProperties camera_sensor_properties.cpp:501 Please consider updating the camera sensor properties database
      [0:30:49.487403667] [4956] ERROR IPAProxy ipa_proxy.cpp:185 Configuration file 'mvcam_mono.json' not found for IPA module 'rpi/pisp'
      [0:30:49.487445315] [4956] ERROR IPARPI ipa_base.cpp:152 Could not create camera helper for mvcam
      [0:30:49.487458888] [4956] ERROR RPI pipeline_base.cpp:814 Failed to load a suitable IPA library
      [0:30:49.487468962] [4956] ERROR RPI pisp.cpp:947 Failed to register camera mvcam 10-003b: -22
      Made X/EGL preview window
      ERROR: *** no cameras available ***
      
      
      ~ $ gst-inspect-1.0 | grep libcamerasrc
      libcamera:  libcamerasrc: libcamera Source
      
      
      posted in CS MIPI camera
      S
      Sheko
    • RAW-MIPI-SC132M camera working in raspberry pi 5. Cannot be configured to work with the libcamera2 and opencv libraries

      The camera works fine in veye_viewer v1.1.4

      20260209_11h24m49s_grim.png

      When starting the sample opencv

      mport cv2
      import argparse
      import subprocess
      
      def main():
          # Set up command-line argument parser
          parser = argparse.ArgumentParser(description='Real-time display of GREY image from /dev/video0')
          parser.add_argument('--width', type=int, default=640, help='image width (default: 640)')
          parser.add_argument('--height', type=int, default=480, help='image height (default: 480)')
          parser.add_argument('--fps', type=int, default=30, help='frame rate (default: 30)')
          parser.add_argument('--ctldev', type=str, default='/dev/video0', help='For rpi5 only,subdevice for param setting')
          args = parser.parse_args()
          
          v4l2_cmd = f"v4l2-ctl -d {args.ctldev} --set-ctrl roi_x=0"
          subprocess.run(v4l2_cmd, shell=True)
          v4l2_cmd = f"v4l2-ctl -d {args.ctldev} --set-ctrl roi_y=0"
          subprocess.run(v4l2_cmd, shell=True)
          v4l2_cmd = f"v4l2-ctl -d '/dev/video0' --set-fmt-video=width={args.width},height={args.height}"
          subprocess.run(v4l2_cmd, shell=True)
          
          v4l2_cmd = f"v4l2-ctl -d {args.ctldev} --set-ctrl frame_rate={args.fps}"
          subprocess.run(v4l2_cmd, shell=True)
          
          # Open the /dev/video0 device
          cap = cv2.VideoCapture('/dev/video0')
          if not cap.isOpened():
              print("Failed to open video device")
              return
      
          # Set the image size
          cap.set(cv2.CAP_PROP_FRAME_WIDTH, args.width)
          cap.set(cv2.CAP_PROP_FRAME_HEIGHT, args.height)
      
          # Loop over frames and display them
          while True:
              # Read a frame
              ret, frame = cap.read()
      
              # Check if reading was successful
              if not ret:
                  print("Failed to read frame")
                  break
      
              # Display the frame
              cv2.imshow('VEYE MV camera GREY image preview', frame)
      
              # Exit if 'q' key is pressed
              if cv2.waitKey(1) & 0xFF == ord('q'):
                  break
      
          # Release resources
          cap.release()
          cv2.destroyAllWindows()
      
      if __name__ == '__main__':
          main()
      
      

      it returns an error

      [ WARN:0@0.135] global ./modules/videoio/src/cap_gstreamer.cpp (2401) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not read from resource.
      [ WARN:0@0.136] global ./modules/videoio/src/cap_gstreamer.cpp (1356) open OpenCV | GStreamer warning: unable to start pipeline
      [ WARN:0@0.136] global ./modules/videoio/src/cap_gstreamer.cpp (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
      Failed to read frame
      
      
      ------------------
      (program exited with code: 0)
      Press return to continue
      
      
      

      Please help me figure it out

      posted in CS MIPI camera
      S
      Sheko
    • RE: cssc132 (Raspberry pi 5). Not a video capture device. /dev/videoXX: No such device

      @veye_xumm

      That's right. It worked with the lens. Thank you very much for your technical support.

      posted in CS MIPI camera
      S
      Sheko
    • RE: cssc132 (Raspberry pi 5). Not a video capture device. /dev/videoXX: No such device

      @veye_xumm

      the program started
      white screen - no image

      sheko@raspberrypi:~ $ cd veye_viewer
      chmod +x ./*
      chmod 755 ./config/*.sh
      ./start_veye_viewer.sh
      Platform detected: raspberrypi5
      Launching veye_viewer...
      [2026-01-28 07:59:42.882][INFO ][Main.cpp:0029] Start cleaning expired logs. Keep days: 30 | Deadline date: 2025-12-29
      [2026-01-28 07:59:42.886][INFO ][Main.cpp:0056] Log clean completed. Total deleted files: 0
      Done --> /home/sheko/veye_viewer/config/auto_camera_index.json

      (veye_viewer:2119): GLib-GObject-CRITICAL **: 07:59:44.547: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
      Done --> /home/sheko/veye_viewer/config/auto_camera_index.json
      Done --> /home/sheko/veye_viewer/config/auto_camera_index.json
      [2026-01-28 08:00:53.233][WARN ][unknown_file:----] libpng warning: iCCP: known incorrect sRGB profile
      [2026-01-28 08:00:53.234][WARN ][unknown_file:----] libpng warning: iCCP: known incorrect sRGB profile
      [2026-01-28 08:00:53.235][WARN ][unknown_file:----] libpng warning: iCCP: known incorrect sRGB profile

      20260128_08h04m51s_grim.png

      posted in CS MIPI camera
      S
      Sheko
    • RE: cssc132 (Raspberry pi 5). Not a video capture device. /dev/videoXX: No such device

      @veye_xumm

      Hi,
      here is the result^

      heko@raspberrypi:~/veye_viewer_RaspberryPi_bin $ ./start_veye_viewer.sh
      bash: ./start_veye_viewer.sh: Permission denied

      sheko@raspberrypi:~/veye_viewer_RaspberryPi_bin $ chmod 755 ./config/.sh
      ./start_veye_viewer.sh
      chmod: cannot access './config/.sh': No such file or directory
      bash: ./start_veye_viewer.sh: Permission denied

      posted in CS MIPI camera
      S
      Sheko
    • RE: cssc132 (Raspberry pi 5). Not a video capture device. /dev/videoXX: No such device

      @veye_xumm './config/.sh': No such file or directory

      what am I doing wrong?

      sheko@raspberrypi:~ $ cd veye_viewer
      chmod +x ./
      chmod 755 ./config/.sh
      ./start_veye_viewer.sh
      chmod: cannot access './config/.sh': No such file or directory
      Platform detected: raspberrypi5
      veye_viewer binary not found or not executable.

      20260128_05h18m08s_grim.png

      posted in CS MIPI camera
      S
      Sheko
    • RE: cssc132 (Raspberry pi 5). Not a video capture device. /dev/videoXX: No such device

      @veye_xumm The video is not displayed in the program

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh
      Usage: ./mv_mipi_i2c_new.sh [-r/w] [function name] [param1] [param2 ] [param3] [param4] -b bus
      options:
      -r read
      -w write
      [function name] function name
      [param1] param1 of each function
      [param1] param2 of each function
      [param3] param3 of each function
      [param4] param4 of each function
      -b [i2c bus num] i2c bus number
      -d [i2c addr] i2c addr if not default 0x3b
      Please open this srcipt and read the COMMENT on top for support functions and samples
      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -r manufacturer -b 11
      ./mv_mipi_i2c_new.sh: line 453: Read i2c err -1
      -36345312: syntax error in expression (error token is "i2c err -1
      -36345312")

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -r manufacturer -b 10
      Manufacturer is VEYE

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -r version -b 10
      version is C 01.04 and L 00.00

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -r errcode -b 10
      errcode is 0x0

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -r fmtcap -b 10
      fmtcap is 0x3

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -r readmodecap -b 10
      r read mode capbility is 0x3

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -r i2caddr -b 10
      r i2c addr is 0x01

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -r minwh -b 10
      r ROI min width is -1 height is -1

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -w imgacq [0/1] -b 10
      ./mv_mipi_i2c_new.sh: line 615: printf: [0/1]: invalid number
      w image acq is 00

      sheko@raspberrypi:~/mv_tools_rpi $ ./mv_mipi_i2c_new.sh -w trgmode [0,2] -b 10
      ./mv_mipi_i2c_new.sh: line 815: printf: [0,2]: invalid number
      w trigger mode is 0

      sheko@raspberrypi:~ $ dmesg | grep mvcam
      [ 0.029049] /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.029059] /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 0.029082] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b
      [ 0.029089] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b
      [ 0.029211] /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.029221] /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 0.029246] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b
      [ 0.029254] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b
      [ 0.410283] /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.410360] /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 0.410672] /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 0.410689] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b
      [ 0.410753] /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.410767] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b
      [ 0.676352] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b
      [ 0.676383] /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.676753] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b
      [ 0.676776] /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 3.139990] rp1-cfe 1f00110000.csi: found subdevice /axi/pcie@1000120000/rp1/i2c@88000/veyemvcam@3b
      [ 3.142880] rp1-cfe 1f00128000.csi: found subdevice /axi/pcie@1000120000/rp1/i2c@80000/veyemvcam@3b
      [ 3.157307] veye_mvcam: loading out-of-tree module taints kernel.
      [ 3.198535] mvcam 11-003b: veye mv series camera driver version: 01.01.08
      [ 3.200894] mvcam 11-003b: Unable to load veye_vbyone driver,will go on
      [ 3.703320] mvcam: mvcam_read: Reading register 0x04 failed
      [ 3.703334] mvcam 11-003b: failed to read chip id
      [ 3.704032] mvcam 10-003b: veye mv series camera driver version: 01.01.08
      [ 3.709591] mvcam 10-003b: Unable to load veye_vbyone driver,will go on
      [ 4.211903] mvcam 10-003b: camera is: RAW-MIPI-SC132M
      [ 4.213695] mvcam 10-003b: firmware version: 0x1040000
      [ 4.218412] mvcam 10-003b: Success to get mvcam endpoint data lanes, dts uses 2 lanes,will set to camera
      [ 4.228280] mvcam 10-003b: mvcam_enum_controls success
      [ 4.229657] rp1-cfe 1f00110000.csi: Using sensor mvcam 10-003b for capture

      sheko@raspberrypi:~ $ v4l2-ctl --list-devices
      pispbe (platform:1000880000.pisp_be):
      /dev/video20
      /dev/video21
      /dev/video22
      /dev/video23
      /dev/video24
      /dev/video25
      /dev/video26
      /dev/video27
      /dev/video28
      /dev/video29
      /dev/video30
      /dev/video31
      /dev/video32
      /dev/video33
      /dev/video34
      /dev/video35
      /dev/media0
      /dev/media1

      rp1-cfe (platform:1f00110000.csi):
      /dev/video0
      /dev/video1
      /dev/video2
      /dev/video3
      /dev/video4
      /dev/video5
      /dev/video6
      /dev/video7
      /dev/media2

      rp1-cfe (platform:1f00128000.csi):
      /dev/media3

      rpi-hevc-dec (platform:rpi-hevc-dec):
      /dev/video19
      /dev/media4

      sheko@raspberrypi:~ $ v4l2-ctl --device=/dev/video0 --all
      Driver Info:
      Driver name : rp1-cfe
      Card type : rp1-cfe
      Bus info : platform:1f00110000.csi
      Driver version : 6.12.47
      Capabilities : 0xaca00001
      Video Capture
      Metadata Capture
      Metadata Output
      Streaming
      Extended Pix Format
      Device Capabilities
      Device Caps : 0x24a00001
      Video Capture
      Metadata Capture
      Streaming
      Extended Pix Format
      Media Driver Info:
      Driver name : rp1-cfe
      Model : rp1-cfe
      Serial :
      Bus info : platform:1f00110000.csi
      Media version : 6.12.47
      Hardware revision: 0x00114666 (1132134)
      Driver version : 6.12.47
      Interface Info:
      ID : 0x03000014
      Type : V4L Video
      Entity Info:
      ID : 0x00000012 (18)
      Name : rp1-cfe-csi2_ch0
      Function : V4L2 I/O
      Pad 0x01000013 : 0: Sink, Must Connect
      Link 0x02000034: from remote pad 0x1000006 of entity 'csi2' (Video Interface Bridge): Data
      Priority: 2
      Video input : 0 (rp1-cfe-csi2_ch0: ok)
      Format Video Capture:
      Width/Height : 1280/1080
      Pixel Format : 'YUYV' (YUYV 4:2:2)
      Field : None
      Bytes per Line : 2560
      Size Image : 2764800
      Colorspace : Raw
      Transfer Function : None
      YCbCr/HSV Encoding: ITU-R 601
      Quantization : Full Range
      Flags :
      Format Metadata Capture:
      Sample Format : 'SENS' (Sensor Ancillary Metadata)
      Buffer Size : 16384

      sheko@raspberrypi:~ $ ffplay /dev/video0
      ffplay version 5.1.8-0+deb12u1+rpt1 Copyright (c) 2003-2025 the FFmpeg developers
      built with gcc 12 (Debian 12.2.0-14+deb12u1)
      configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
      libavutil 57. 28.100 / 57. 28.100
      libavcodec 59. 37.100 / 59. 37.100
      libavformat 59. 27.100 / 59. 27.100
      libavdevice 59. 7.100 / 59. 7.100
      libavfilter 8. 44.100 / 8. 44.100
      libswscale 6. 7.100 / 6. 7.100
      libswresample 4. 7.100 / 4. 7.100
      libpostproc 56. 6.100 / 56. 6.100
      [video4linux2,v4l2 @ 0x7ffe94000c20 ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
      [video4linux2,v4l2 @ 0x7ffe94000c20 Time per frame unknown
      [video4linux2,v4l2 @ 0x7ffe94000c20] ioctl(VIDIOC_STREAMON): %(#ff0000)[Invalid argument
      /dev/video0: Invalid argument]]]
      nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0

      sheko@raspberrypi:~ $ vlc
      VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
      [000055563a0e9560] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
      [000055563a1898d0] main playlist: playlist is empty
      libpng warning: iCCP: known incorrect sRGB profile
      libpng warning: iCCP: known incorrect sRGB profile
      libpng warning: iCCP: known incorrect sRGB profile
      qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
      [00007fff8c007cd0] v4l2 demux error: cannot get streaming parameters: Inappropriate ioctl for device
      libv4l2: error turning on stream: Invalid argument
      [00007fff8c007cd0] v4l2 demux error: cannot start streaming: Invalid argument
      [00007fff8c007cd0] v4l2 demux error: not a radio tuner device
      [00007fff8c0078d0] v4l2 stream error: cannot get streaming parameters: Inappropriate ioctl for device
      libv4l2: error turning on stream: Invalid argument
      [00007fff8c0078d0 v4l2 stream error: cannot start streaming: Invalid argument
      sheko@raspberrypi:~ $]

      posted in CS MIPI camera
      S
      Sheko
    • RE: cssc132 (Raspberry pi 5). Not a video capture device. /dev/videoXX: No such device

      @veye_xumm , Where can I get the driver I need?

      posted in CS MIPI camera
      S
      Sheko
    • cssc132 (Raspberry pi 5). Not a video capture device. /dev/videoXX: No such device

      Hello. I'm having trouble getting my RAW-MIPI-SC132M camera to work. The driver installed without errors. What am I doing wrong?

      sheko@raspberrypi:~ $ uname -r
      6.12.47+rpt-rpi-2712

      sheko@raspberrypi:~ $ v4l2-ctl --list-formats-ext
      Cannot open device /dev/video0, exiting.

      sheko@raspberrypi:~ $ camera id is cs-mipi-sc132
      bash: camera: command not found

      sheko@raspberrypi:~ $ dmesg | grep -i video
      [ 3.029552] videodev: Linux video capture interface: v2.00
      [ 3.127255] rpi-hevc-dec 1000800000.codec: Device registered as /dev/video19

      sheko@raspberrypi:~ $ sudo ffmpeg -f v4l2 -i /dev/video19 output.mp4
      ffmpeg version 5.1.8-0+deb12u1+rpt1 Copyright (c) 2000-2025 the FFmpeg developers
      built with gcc 12 (Debian 12.2.0-14+deb12u1)
      configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
      libavutil 57. 28.100 / 57. 28.100
      libavcodec 59. 37.100 / 59. 37.100
      libavformat 59. 27.100 / 59. 27.100
      libavdevice 59. 7.100 / 59. 7.100
      libavfilter 8. 44.100 / 8. 44.100
      libswscale 6. 7.100 / 6. 7.100
      libswresample 4. 7.100 / 4. 7.100
      libpostproc 56. 6.100 / 56. 6.100
      [video4linux2,v4l2 @ 0x55561c74ad30] Not a video capture device.
      /dev/video19: No such device

      sheko@raspberrypi:~ $ dmesg | grep 132
      [ 0.029036] /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.029045] /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 0.029069] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b
      [ 0.029075] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b
      [ 0.029195] /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.029204] /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 0.029229] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b
      [ 0.029237] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b
      [ 0.271328] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
      [ 0.410272] /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.410331] /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 0.410643] /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 0.410657] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b
      [ 0.410722] /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.410734] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b
      [ 0.677227] /axi/pcie@1000120000/rp1/csi@128000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b
      [ 0.677255] /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@128000
      [ 0.683427] /axi/pcie@1000120000/rp1/csi@110000: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b
      [ 0.683481] /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b: Fixed dependency cycle(s) with /axi/pcie@1000120000/rp1/csi@110000
      [ 2.471132] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
      [ 3.091990] rp1-cfe 1f00110000.csi: found subdevice /axi/pcie@1000120000/rp1/i2c@88000/cssc132@3b
      [ 3.092673] rp1-cfe 1f00128000.csi: found subdevice /axi/pcie@1000120000/rp1/i2c@80000/cssc132@3b
      [ 3.127041] cssc132: loading out-of-tree module taints kernel.
      [ 3.127068] cssc132: disagrees about version of symbol v4l2_i2c_subdev_init
      [ 3.127070] cssc132: Unknown symbol v4l2_i2c_subdev_init (err -22)
      [ 3.127078] cssc132: disagrees about version of symbol v4l2_async_unregister_subdev
      [ 3.127079] cssc132: Unknown symbol v4l2_async_unregister_subdev (err -22)
      [ 3.127083] cssc132: disagrees about version of symbol gpiod_set_value_cansleep
      [ 3.127085] cssc132: Unknown symbol gpiod_set_value_cansleep (err -22)
      [ 3.127093] cssc132: disagrees about version of symbol v4l2_fwnode_endpoint_free
      [ 3.127094] cssc132: Unknown symbol v4l2_fwnode_endpoint_free (err -22)
      [ 3.127097] cssc132: disagrees about version of symbol fwnode_graph_get_next_endpoint
      [ 3.127099] cssc132: Unknown symbol fwnode_graph_get_next_endpoint (err -22)
      [ 3.127107] cssc132: disagrees about version of symbol i2c_transfer_buffer_flags
      [ 3.127109] cssc132: Unknown symbol i2c_transfer_buffer_flags (err -22)
      [ 3.127117] cssc132: disagrees about version of symbol v4l2_async_register_subdev_sensor
      [ 3.127119] cssc132: Unknown symbol v4l2_async_register_subdev_sensor (err -22)
      [ 3.127125] cssc132: disagrees about version of symbol regulator_bulk_disable
      [ 3.127127] cssc132: Unknown symbol regulator_bulk_disable (err -22)
      [ 3.127129] cssc132: disagrees about version of symbol i2c_register_driver
      [ 3.127130] cssc132: Unknown symbol i2c_register_driver (err -22)
      [ 3.127134] cssc132: disagrees about version of symbol __v4l2_subdev_state_get_format
      [ 3.127135] cssc132: Unknown symbol __v4l2_subdev_state_get_format (err -22)
      [ 3.127137] cssc132: disagrees about version of symbol _dev_err
      [ 3.127138] cssc132: Unknown symbol _dev_err (err -22)
      [ 3.127152] cssc132: disagrees about version of symbol regulator_bulk_enable
      [ 3.127154] cssc132: Unknown symbol regulator_bulk_enable (err -22)
      [ 3.127158] cssc132: disagrees about version of symbol devm_regulator_bulk_get
      [ 3.127159] cssc132: Unknown symbol devm_regulator_bulk_get (err -22)
      [ 3.127163] cssc132: disagrees about version of symbol v4l2_fwnode_endpoint_alloc_parse
      [ 3.127165] cssc132: Unknown symbol v4l2_fwnode_endpoint_alloc_parse (err -22)
      [ 3.127175] cssc132: disagrees about version of symbol i2c_del_driver
      [ 3.127176] cssc132: Unknown symbol i2c_del_driver (err -22)
      [ 3.127182] cssc132: disagrees about version of symbol __dev_fwnode
      [ 3.127183] cssc132: Unknown symbol __dev_fwnode (err -22)
      [ 3.158664] cssc132: disagrees about version of symbol v4l2_i2c_subdev_init
      [ 3.158677] cssc132: Unknown symbol v4l2_i2c_subdev_init (err -22)
      [ 3.158685] cssc132: disagrees about version of symbol v4l2_async_unregister_subdev
      [ 3.158687] cssc132: Unknown symbol v4l2_async_unregister_subdev (err -22)
      [ 3.158691] cssc132: disagrees about version of symbol gpiod_set_value_cansleep
      [ 3.158693] cssc132: Unknown symbol gpiod_set_value_cansleep (err -22)
      [ 3.158700] cssc132: disagrees about version of symbol v4l2_fwnode_endpoint_free
      [ 3.158701] cssc132: Unknown symbol v4l2_fwnode_endpoint_free (err -22)
      [ 3.158705] cssc132: disagrees about version of symbol fwnode_graph_get_next_endpoint
      [ 3.158706] cssc132: Unknown symbol fwnode_graph_get_next_endpoint (err -22)
      [ 3.158713] cssc132: disagrees about version of symbol i2c_transfer_buffer_flags
      [ 3.158715] cssc132: Unknown symbol i2c_transfer_buffer_flags (err -22)
      [ 3.158723] cssc132: disagrees about version of symbol v4l2_async_register_subdev_sensor
      [ 3.158724] cssc132: Unknown symbol v4l2_async_register_subdev_sensor (err -22)
      [ 3.158728] cssc132: disagrees about version of symbol regulator_bulk_disable
      [ 3.158729] cssc132: Unknown symbol regulator_bulk_disable (err -22)
      [ 3.158731] cssc132: disagrees about version of symbol i2c_register_driver
      [ 3.158733] cssc132: Unknown symbol i2c_register_driver (err -22)
      [ 3.158736] cssc132: disagrees about version of symbol __v4l2_subdev_state_get_format
      [ 3.158738] cssc132: Unknown symbol __v4l2_subdev_state_get_format (err -22)
      [ 3.158740] cssc132: disagrees about version of symbol _dev_err
      [ 3.158741] cssc132: Unknown symbol _dev_err (err -22)
      [ 3.158857] cssc132: disagrees about version of symbol regulator_bulk_enable
      [ 3.158862] cssc132: Unknown symbol regulator_bulk_enable (err -22)
      [ 3.158868] cssc132: disagrees about version of symbol devm_regulator_bulk_get
      [ 3.158869] cssc132: Unknown symbol devm_regulator_bulk_get (err -22)
      [ 3.158875] cssc132: disagrees about version of symbol v4l2_fwnode_endpoint_alloc_parse
      [ 3.158876] cssc132: Unknown symbol v4l2_fwnode_endpoint_alloc_parse (err -22)
      [ 3.158885] cssc132: disagrees about version of symbol i2c_del_driver
      [ 3.158886] cssc132: Unknown symbol i2c_del_driver (err -22)
      [ 3.158891] cssc132: disagrees about version of symbol __dev_fwnode
      [ 3.158892] cssc132: Unknown symbol __dev_fwnode (err -22)
      [ 3.191020] cssc132: disagrees about version of symbol v4l2_i2c_subdev_init
      [ 3.191026] cssc132: Unknown symbol v4l2_i2c_subdev_init (err -22)
      [ 3.191035] cssc132: disagrees about version of symbol v4l2_async_unregister_subdev
      [ 3.191036] cssc132: Unknown symbol v4l2_async_unregister_subdev (err -22)
      [ 3.191041] cssc132: disagrees about version of symbol gpiod_set_value_cansleep
      [ 3.191043] cssc132: Unknown symbol gpiod_set_value_cansleep (err -22)
      [ 3.191051] cssc132: disagrees about version of symbol v4l2_fwnode_endpoint_free
      [ 3.191052] cssc132: Unknown symbol v4l2_fwnode_endpoint_free (err -22)
      [ 3.191055] cssc132: disagrees about version of symbol fwnode_graph_get_next_endpoint
      [ 3.191057] cssc132: Unknown symbol fwnode_graph_get_next_endpoint (err -22)
      [ 3.191065] cssc132: disagrees about version of symbol i2c_transfer_buffer_flags
      [ 3.191067] cssc132: Unknown symbol i2c_transfer_buffer_flags (err -22)
      [ 3.191076] cssc132: disagrees about version of symbol v4l2_async_register_subdev_sensor
      [ 3.191077] cssc132: Unknown symbol v4l2_async_register_subdev_sensor (err -22)
      [ 3.191082] cssc132: disagrees about version of symbol regulator_bulk_disable
      [ 3.191083] cssc132: Unknown symbol regulator_bulk_disable (err -22)
      [ 3.191085] cssc132: disagrees about version of symbol i2c_register_driver
      [ 3.191086] cssc132: Unknown symbol i2c_register_driver (err -22)
      [ 3.191090] cssc132: disagrees about version of symbol __v4l2_subdev_state_get_format
      [ 3.191091] cssc132: Unknown symbol __v4l2_subdev_state_get_format (err -22)
      [ 3.191093] cssc132: disagrees about version of symbol _dev_err
      [ 3.191094] cssc132: Unknown symbol _dev_err (err -22)
      [ 3.191107] cssc132: disagrees about version of symbol regulator_bulk_enable
      [ 3.191108] cssc132: Unknown symbol regulator_bulk_enable (err -22)
      [ 3.191111] cssc132: disagrees about version of symbol devm_regulator_bulk_get
      [ 3.191112] cssc132: Unknown symbol devm_regulator_bulk_get (err -22)
      [ 3.191116] cssc132: disagrees about version of symbol v4l2_fwnode_endpoint_alloc_parse
      [ 3.191117] cssc132: Unknown symbol v4l2_fwnode_endpoint_alloc_parse (err -22)
      [ 3.191127] cssc132: disagrees about version of symbol i2c_del_driver
      [ 3.191128] cssc132: Unknown symbol i2c_del_driver (err -22)
      [ 3.191132] cssc132: disagrees about version of symbol __dev_fwnode
      [ 3.191134] cssc132: Unknown symbol __dev_fwnode (err -22)

      /boot/firmware/config.txt
      [all]
      dtparam=i2c_vc=on
      dtoverlay=cssc132
      dtoverlay=cssc132,cam0

      sheko@raspberrypi:~ $ ./find_entity.sh
      bash: ./find_entity.sh: No such file or directory
      sheko@raspberrypi:~ $ ls /dev/video*
      /dev/video19 /dev/video23 /dev/video27 /dev/video31 /dev/video35
      /dev/video20 /dev/video24 /dev/video28 /dev/video32
      /dev/video21 /dev/video25 /dev/video29 /dev/video33
      /dev/video22 /dev/video26 /dev/video30 /dev/video34

      sheko@raspberrypi:~ $ v4l2-ctl --list-devices
      pispbe (platform:1000880000.pisp_be):
      /dev/video20
      /dev/video21
      /dev/video22
      /dev/video23
      /dev/video24
      /dev/video25
      /dev/video26
      /dev/video27
      /dev/video28
      /dev/video29
      /dev/video30
      /dev/video31
      /dev/video32
      /dev/video33
      /dev/video34
      /dev/video35
      /dev/media2
      /dev/media4

      rp1-cfe (platform:1f00110000.csi):
      /dev/media0

      rp1-cfe (platform:1f00128000.csi):
      /dev/media1

      rpi-hevc-dec (platform:rpi-hevc-dec):
      /dev/video19
      /dev/media3

      Cannot open device /dev/video0, exiting.

      posted in CS MIPI camera
      S
      Sheko