ArduCAM / Arducam-Pivariety-V4L2-Driver

This driver is used for Arducam mipi camera with Pivariety board
39 stars 22 forks source link

libcamera-hello : Black screen with Arducam 16MP Autofocus attached via Arducam Cable Extension Kit on a Raspberry Pi 4 #18

Open deepcoder opened 2 years ago

deepcoder commented 2 years ago

I am trying to attach one of your Arducam 16MP Autofocus cameras via the Arducam Cable Extension Kit on a Raspberry Pi 4 running latest RPi OS: Linux rpi 5.10.103-v7l+ #1530 SMP Tue Mar 8 13:05:01 GMT 2022 armv7l GNU/Linux

Camera displays fine when locally attached, however when camera is attached via the extension kit, I get a black screen in the libcamera-hello app, output from libcamera-hello for both cases shown below.

Also, I am not able to find any documentation for the Cable Extension Kit.

What gives?

Thanks!

--- camera attached via extender
pi@rpi:~ $ libcamera-hello
Made X/EGL preview window
[0:00:44.700537935] [1339]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:00:44.727083509] [1347]  WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 'imx519'
[0:00:44.727231768] [1347]  WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[0:00:44.727339009] [1347] ERROR CameraSensor camera_sensor.cpp:551 'imx519 10-001a': Camera sensor does not support test pattern modes.
[0:00:44.774728472] [1347]  WARN RPI raspberrypi.cpp:1233 Mismatch between Unicam and CamHelper for embedded data usage!
[0:00:44.776065990] [1347] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:00:44.776821120] [1347]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media1 and ISP device /dev/media0
[0:00:44.778330046] [1339]  INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:00:44.779029675] [1347]  INFO RPI raspberrypi.cpp:751 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:00:44.836483972] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Saturation = 1.000000
[0:00:44.836733638] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Contrast = 1.000000
[0:00:44.836857805] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Brightness = 0.000000
[0:00:44.836973879] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AwbMode = 0
[0:00:44.837089064] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Sharpness = 1.000000
[0:00:44.837205453] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: ExposureValue = 0.000000
[0:00:44.837328490] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AeExposureMode = 0
[0:00:44.837441601] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: FrameDurationLimits = [ 33333, 33333 ]
[0:00:44.837564120] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AeMeteringMode = 0
[0:00:44.837672638] [1352]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: NoiseReductionMode = 3

--- direct attached camera
pi@rpi:~ $ libcamera-hello
Made X/EGL preview window
[0:00:55.134351521] [1362]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:00:55.162747039] [1363]  WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 'imx519'
[0:00:55.162830891] [1363]  WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[0:00:55.162901613] [1363] ERROR CameraSensor camera_sensor.cpp:551 'imx519 10-001a': Camera sensor does not support test pattern modes.
[0:00:55.212448150] [1363]  WARN RPI raspberrypi.cpp:1233 Mismatch between Unicam and CamHelper for embedded data usage!
[0:00:55.213605447] [1363] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:00:55.214406243] [1363]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media2 and ISP device /dev/media0
[0:00:55.215786391] [1362]  INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:00:55.216527243] [1363]  INFO RPI raspberrypi.cpp:751 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:00:55.284108280] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Saturation = 1.000000
[0:00:55.284248669] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Contrast = 1.000000
[0:00:55.284286632] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Brightness = 0.000000
[0:00:55.284320946] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AwbMode = 0
[0:00:55.284361743] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: Sharpness = 1.000000
[0:00:55.284401095] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: ExposureValue = 0.000000
[0:00:55.284485798] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AeExposureMode = 0
[0:00:55.284528854] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: FrameDurationLimits = [ 33333, 33333 ]
[0:00:55.284578724] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: AeMeteringMode = 0
[0:00:55.284612872] [1368]  INFO IPARPI raspberrypi.cpp:666 Request ctrl: NoiseReductionMode = 3
jagombar commented 2 years ago

Did you install "imx519_kernel_driver_low_speed" rather than "imx519_kernel_driver" I found a vague reference to that driver on this page: https://forum.arducam.com/t/imx519-quad-hat-mode-switching-and-faq/2399/2 and that fixed the extension kit for me. I actually had to uninstall the original driver and then reinstall the low speed one

uninstall_driver.sh 
reboot
./install_pivariety_pkgs.sh -p imx519_kernel_driver_low_speed
reboot