Hi, I’m trying to get an Arducam IMX219 camera module working on my Raspberry Pi 4 and it’s just not cooperating. I followed the setup instructions (editing /boot/config.txt, adding dtoverlay=imx219 etc.) but I still can’t get libcamera to work with it. Is there something I’m missing? The steps I was told to use are the same as what’s in the link I sent, so re-sending that doesn’t really help. Any pointers would be great.
Hi, thanks for reaching out! For the Arducam 8MP IMX219 standard camera module on a Pi 4, you really only need to edit the config file (no need for extra scripts). Here’s the recommended setup:
- Open the config: sudo nano /boot/config.txt
- Find camera_auto_detect=1 and change it to: camera_auto_detect=0
- Add (or set): dtoverlay=imx219
- Save and reboot.
That should be all you need on a Pi 4 for this camera. The full reference is here: https://www.arducam.com/docs/cameras-for-raspberry-pi/native-raspberry-pi-cameras/8mp-imx219-standard-camera-modules/
Give that a try and let me know how it goes.
Yeah, that’s exactly the step I already applied and it didn’t change anything. That config change (camera_auto_detect=0 plus dtoverlay=imx219) was already what the link you just sent describes, and I’ve done it. Still no working camera. Not sure where to go from here.
OK, thanks for clarifying. Let’s dig into the specifics so I can diagnose this faster. Could you send me the following?
- Which exact product/size you have (pictures or a purchasing link would help).
- Your system info - run: uname -a
- Your config output:
- cat /etc/os-release
- cat /boot/config.txt
Once I see those I can figure out what’s going on.
Sure, here’s everything you asked for.
Product link: Amazon.com: Arducam for Raspberry Pi Camera Module 8 Megapixel, 1080P IMX219 Camera Module Compatible with Raspberry Pi 5, 4 Model B, Pi 3/3B+, and Pi Zero 2W (RPI-CAM-8MP + 5.9"/150mm Flex Cable + Pi Zero Cable) : Electronics - item is listed as “IMX219 CAM for RPI”, series Raspberry Pi Cameras.
uname -a:
Linux my-printer 5.15.45-v7l+ #1561 SMP Mon Jun 6 15:24:26 BST 2022 armv7l GNU/Linux
Platform: Raspberry Pi 4B - Bullseye - 5.15.32-v7l+
cat /etc/os-release:
PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL=“http://www.raspbian.org/”
SUPPORT_URL=“http://www.raspbian.org/RaspbianForums”
BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs”
cat /boot/config.txt:
For more options and information see
http://rpf.io/configtxt
Some settings may impact device functionality. See link above for details
uncomment if you get no picture on HDMI for a default “safe” mode
#hdmi_safe=1
uncomment the following to adjust overscan. Use positive numbers if console
goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
uncomment to force a console size. By default it will be display’s size minus
overscan.
#framebuffer_width=1280
#framebuffer_height=720
uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
uncomment to force a HDMI mode rather than DVI. This can make audio work in
DMT (computer monitor) modes
#hdmi_drive=2
uncomment to increase signal to HDMI, if you have interference, blanking, or
no display
#config_hdmi_boost=4
uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=spi=on
Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
Additional overlays and parameters are documented /boot/overlays/README
Enable audio (loads snd_bcm2835)
dtparam=audio=off
Automatically load overlays for detected cameras
camera_auto_detect=0
Automatically load overlays for detected DSI displays
display_auto_detect=1
Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d # I’ve also tried it with , cma-256 added here as well
max_framebuffers=2
Disable compensation for displays with overscan
disable_overscan=1
[cm4]
Enable host mode on the 2711 built-in XHCI USB controller.
This line should be removed if the legacy DWC2 controller is required
(e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[pi4]
Run as fast as firmware / board allows
arm_boost=1
[all]
enable raspicam
start_x=1 # I’ve tried with and without this line
gpu_mem=128
dtoverlay=imx219
#enable_uart=1
Important bit - the camera actually IS detected, but libcamera throws errors:
[0:09:25.457448458] [1344] ERROR RPI raspberrypi.cpp:1794 Unicam has timed out!
[0:09:25.457501844] [1344] ERROR RPI raspberrypi.cpp:1795 Please check that your camera sensor connector is attached securely.
[0:09:25.457553545] [1344] ERROR RPI raspberrypi.cpp:1796 Alternatively, try another cable and/or sensor.
Things I’ve already tried:
- Both included cables
- Checked multiple times the cable is in the correct orientation
- Different OS images
- Added cma-256 to the dtoverlay=vc4-kms-v3d line
- With and without start_x=1
- Also did the camera_auto_detect=1 → 0 change and dtoverlay=imx219, no change
So at this point, how do I get this working?
Thanks, that’s a lot of useful detail. Looking at your OS (Raspbian Bullseye 11) and your config, I don’t actually see anything wrong on the software side - camera_auto_detect=0 and dtoverlay=imx219 are both set correctly. So let’s verify the hardware connection and whether the driver/device are actually showing up.
Please do the following:
- First, double check that the camera and the Pi are physically connected correctly (connector seated fully, right orientation).
- Run this to check if the driver has been installed:
dmesg | grep imx219 - Run this to see if the video device node exists:
ls /dev/video*
If there is no /dev/video0, the camera isn’t being detected properly.
Send me the results of those and we’ll go from there.