Raspberry Pi 4B
Raspberry Pi camera module 2
Parrot OS 6.2
Flashed with Raspberry Pi imager (latest version)
I recently tried Parrot OS (Security version) on my Raspberry Pi 4 as kali is not intended as a daily driver. The install seemed to be without incident until I tested the camera module and I get no cameras detected. I have tried libcamera-hello with the following error:
‘┌─[pi@parrot]─[~]
└──╼ $libcamera-hello
[40:49:08.125902124] [133586] INFO Camera camera_manager.cpp:325 libcamera v0.3.2+27-7330f29b
[40:49:08.147423377] [133592] ERROR RPI pipeline_base.cpp:820 Failed to load a suitable IPA library
[40:49:08.147475839] [133592] ERROR RPI vc4.cpp:216 Failed to register camera imx219 10-0010: -22
Made X/EGL preview window
ERROR: *** no cameras available **’
I downloaded Cheese as an alternative test with the same result- no camera detected.
To rule out camera malfunction or hardware connection issues, I swapped out the Parrot OS sim card with another card running Raspberry Pi OS (Bookworm) and libcamera-hello command ran without issue. So I assume I am missing some drivers somewhere but couldnt find this issue anywhere in the forum.
There was a thread elsewhere online that pointed to a download from https://webcamoid.github.io/ having solved a similar problem but I had no improvement.
‘┌─[pi@parrot]─[~]
└──╼ $vcgencmd get_camera
supported=0 detected=0, libcamera interfaces=0’
I have checked raspi-config for any ‘enable camera’ option or ‘legacy camera’ option but they don’t seem to exist on this version.
Any help on this topic would be much appreciated.
Thanks in advance.
ParrotOS iso in use:
Application used for flashing the iso:
Logs/Terminal output(use pastebin or similar services):
libcamera-hello is actually a ‘legacy’ method to talk to the camera now, and is only still there for backward compatibility on bookworm, the new command is rpicam-hello so might be worth trying that;
Unfortunately, still no difference. here is what I did following the instructions given in the documentation (which assumes Raspberry Pi OS, i believe).
‘sudo apt install -y python3-picamera2’
then
‘sudo apt install -y python3-pyqt5 python3-opengl’
I’ve since rebooted, updated and rebooted with no change in the error I received. I took a closer look at the errors and noted something must be seeing the camera.
‘ERROR RPI vc4.cpp:216 Failed to register camera imx219 10-0010: -22’
In the error it notices the sensor (imx219) but cant register it- whatever that means (chuckles to newbie self)
is it typical to encounter camera problems after a fresh install? I imagined if this was a common problem thered be an existing thread about it but couldnt find anything.
If you are connecting to your Pi over SSH then this may be your problem…
Hi, the “failed to import fd” error is often caused by folks logging into their Pi over ssh and trying to use the hardware accelerated preview window remotely using X-forwarding. Does this describe your use case? If it does, use “libcamera-hello --qt-preview” instead (you have to use the slow CPU rendered Qt preview window with X-forwarding).
Found these other fixes whilst browsing that site too, try link fix immediately below first (specific to your model camera), or perhaps you might need the terminal commands shown lower down - pasted ‘as is’ here for convenience
First I did sudo rpi-update (I am not sure whether it has any role or not)
Open a terminal, run “sudo raspi-config”, navigate to “Advanced Options” and enable “Glamor” graphic acceleration. Then reboot your Pi
After enabling glamor, you need to execute the following steps also:
1. Open a terminal
2. Run sudo raspi-config
3. Navigate to Advanced Options
4. Navigate to GL Driver
5. Select GL (Full KMS)
6. Reboot your Pi
I haven’t tested any of this, but seems like its worth trying!
Another user had to alter /boot/config.txt and comment out this line to get the camera to be seen properly with Debian bookworm.
disable_fw_kms_setup=1
or adding this config;
adding dtoverlay=imx219 in /boot/config.txt and enabling Glamor in raspi-config
Hope you have some luck and perhaps if you do get it working you will document how for us