Repository navigation
Description
On RPi5 with Bookworm OS as below.
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 6.1.0-rpi8-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux
In case of IMX477 I can run rpicam-hello as below (camera_auto_detect=1 and dtoverlay=imx477,cam0 in config.txt.)
pi@raspberrypi:~ $ rpicam-hello
[0:06:42.300970236] [2085] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+151-9e31bb6e
[0:06:42.312874880] [2087] INFO RPI pisp.cpp:662 libpisp version v1.0.1 5652744a74d7 01-02-2024 (16:31:10)
[0:06:42.329705978] [2087] INFO RPI pisp.cpp:1119 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0
[0:06:42.329897532] [2087] INFO RPI pisp.cpp:662 libpisp version v1.0.1 5652744a74d7 01-02-2024 (16:31:10)
[0:06:42.340172661] [2087] INFO RPI pisp.cpp:1119 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/imx477@1a to CFE device /dev/media3 and ISP device /dev/media1 using PiSP variant BCM2712_C0
Made X/EGL preview window
Mode selection for 2028:1520:12:P
SRGGB10_CSI2P,1332x990/0 - Score: 3456.22
SRGGB12_CSI2P,2028x1080/0 - Score: 1083.84
SRGGB12_CSI2P,2028x1520/0 - Score: 0
SRGGB12_CSI2P,4056x3040/0 - Score: 887
Stream configuration adjusted
[0:06:43.110268054] [2085] INFO Camera camera.cpp:1183 configuring streams: (0) 2028x1520-YUV420 (1) 2028x1520-BGGR16_PISP_COMP1
[0:06:43.110423383] [2087] INFO RPI pisp.cpp:1403 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected CFE format: 2028x1520-PC1B
But in case of IMX219(V2 camera) I cannot.
pi@raspberrypi:~ $ libcamera-hello -t 0 --camera 0 [0:03:19.381199316] [2241] INFO Camera camera_manager.cpp:284 libcamera v0.1.0+118-563cd78e [0:03:19.393088444] [2244] INFO RPI pisp.cpp:653 libpisp version v1.0.2 fa44a258644a 22-11-2023 (21:59:22) [0:03:19.415715061] [2244] INFO RPI pisp.cpp:1112 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/imx219@10 to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0 [0:03:19.416108545] [2244] INFO RPI pisp.cpp:653 libpisp version v1.0.2 fa44a258644a 22-11-2023 (21:59:22) [0:03:19.430771027] [2244] INFO RPI pisp.cpp:1112 Registered camera /base/axi/pcie@120000/rp1/i2c@80000/imx219@10 to CFE device /dev/media3 and ISP device /dev/media1 using PiSP variant BCM2712_C0 Made X/EGL preview window [0:03:20.255264754] [2241] WARN V4L2 v4l2_pixelformat.cpp:338 Unsupported V4L2 pixel format Y16 [0:03:20.255292365] [2241] WARN V4L2 v4l2_pixelformat.cpp:338 Unsupported V4L2 pixel format RGB6 [0:03:20.255297939] [2241] WARN V4L2 v4l2_pixelformat.cpp:338 Unsupported V4L2 pixel format BGR6 [0:03:20.255304476] [2241] WARN V4L2 v4l2_pixelformat.cpp:338 Unsupported V4L2 pixel format PC1M Mode selection for 1640:1232:12:P
SRGGB10_CSI2P,640x480/0 - Score: 4504.81
SRGGB10_CSI2P,1640x1232/0 - Score: 1000
SRGGB10_CSI2P,1920x1080/0 - Score: 1541.48
SRGGB10_CSI2P,3280x2464/0 - Score: 1718
SRGGB8,640x480/0 - Score: 5504.81
SRGGB8,1640x1232/0 - Score: 2000
SRGGB8,1920x1080/0 - Score: 2541.48
SRGGB8,3280x2464/0 - Score: 2718
Stream configuration adjusted
[0:03:20.255631794] [2241] INFO Camera camera.cpp:1183 configuring streams: (0) 1640x1232-YUV420 (1) 1640x1232-BGGR16_PISP_COMP1 [0:03:20.255745165] [2244] INFO RPI pisp.cpp:1396 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected CFE format: 1640x1232-PC1B [0:03:20.268855695] [2244] ERROR V4L2 v4l2_videodevice.cpp:1906 /dev/video12[16:cap]: Failed to start streaming: Broken pipe
ERROR: *** failed to start camera ***
I built the libcamera with "next" branch, the symptom is the same.
I cannot operate IMX290 neither.
camera_auto_detect=1 and dtoverlay=imx219,cam0 in config.txt.
Any suggestion, please.
Activity
TetsuyaNOMURA commentedon Feb 2, 2024
I switched to Bookworm 32Bit OS, and now I can see IMX219 image on RPi5. It might be 64bit OS related problem.
naushir commentedon Feb 2, 2024
@TetsuyaNOMURA have you tried a fresh 64-bit OS image with updates installed?
TetsuyaNOMURA commentedon Feb 2, 2024
naushir commentedon Feb 2, 2024
On the 64-bit OS, can you try running
sudo rpi-update stable, reboot and see if that works?TetsuyaNOMURA commentedon Feb 2, 2024
naushir commentedon Feb 2, 2024
Does IMX219 work on cam1 instead of cam0?
naushir commentedon Feb 2, 2024
Can you also attach the output of
camera-bug-reportafter you runlibcamera-helloand see it fail?TetsuyaNOMURA commentedon Feb 3, 2024
alphanumeric007 commentedon Feb 4, 2024
I do believe I have the same issue. Latest Pi OS 64 bit on a Pi 5, NVMe install.
Official camera cables, official power supply, official v2 cameras.
One standard and one NOIR. Both show the same error.
I've done a rpi-eeprom update, and set it to use latest in raspi-config.
I've also done apt update, apt upgrade, and rpi-update, no change in the behavior.
sandyol55 commentedon Feb 4, 2024
Seeing a similar issue with picamera2 code no longer working on a 64 bit OS and V2 cameras on Pi5.
Stepping back through the kernel releases, 6.1.65 seems to be the last that didn't show this problem.
sudo rpi-update d16727dwill get the 6.1.65 version.
Issue raised in the linux repository which may or not be relevant?
Edit: link to the issue report added
raspberrypi/linux#5915
alphanumeric007 commentedon Feb 4, 2024
That fixed it for me, both cameras now working. Thankyou =)
naushir commentedon Feb 5, 2024
I can reproduce this. Investigating now what may be missing for this particular camera...
naushir commentedon Feb 5, 2024
Hopefully raspberrypi/linux#5923 ought to fix this issue correcly.
sandyol55 commentedon Feb 5, 2024
Will an equivalent fix filter down to 6.1.y or is 6.6 becoming the apt default soon?
Running with 6.1.65 seems ok for the meantime :-)
naushir commentedon Feb 5, 2024
I've just pushed the commit to the 6.1.y tree now.
Timst commentedon Feb 6, 2024
Had a similar issue but with a slightly different presentation (see post here) that was fixed by the same solution, btw.
DiMTRX commentedon Feb 11, 2024
grantsingleton commentedon Feb 15, 2024
Worked for me as well. Both cams now working on 6.1.65
TetsuyaNOMURA commentedon Feb 16, 2024
Now I can see the IMX219 camera working on 6.1.65. And by adding imx290.json modified from imx219.json to libcamera/src/ipa/rpi/pisp/data/ I can see the image from IMX462 as well as Bullseye.

Thank you for the advice.
shiguangxiaotou3 commentedon Mar 2, 2024
我的Pi 4B,Pi 5和Zero 2 W上都无法开启Camera Module 2
我在尝试使用sudo raspi-config 的Interface Options选项中,没有找到开启摄像头
sudo nano /boot/config.txt配置如下:sudo libcamera-hello -t 0也同样报错我是用的 Raspbreey Pi OS (64-bit) 2023-12-05 操作系统,请问这是为什么
TetsuyaNOMURA commentedon Mar 3, 2024
Did you execute below?
$ sudo rpi-update d16727d
will get the 6.1.65 version.
xXAzazelXx commentedon Mar 8, 2024
sorry dumb question, if I understand correctly we are rolling back the kernal with "sudo rpi-update d16727d"?
does this mean this wont be fixed with future update?
naushir commentedon Mar 8, 2024
The latest kernels already have this fix applied. If you are comfortable with updating the kernel to the latest release, just run
sudo rpi-updateand you will get the fix.xXAzazelXx commentedon Mar 8, 2024
thank you, I might just wait until it bleeds into normal updates.
TheoLiu31 commentedon May 14, 2024
can you share you modified imx290.json from imx219?
Tkx