29/11/2026
Get started with Kurokesu MIPI CSI-2 cameras on Raspberry Pi
This guide goes from blank SD card to live picture with a Kurokesu MIPI CSI-2 camera module on Raspberry Pi.
What you need:
- Raspberry Pi
- Kurokesu camera module
- CSI-2 cable matching Pi connector (22-pin or 15-pin)
- SD card, 16 GB or larger
- PC with an SD card reader
1. Prepare SD card
Flash Raspberry Pi OS (64-bit) using Raspberry Pi Imager.
In OS customization:
- Set hostname, username and password
- Configure Wi-Fi, unless you use Ethernet
- Optionally enable SSH with password authentication for remote access
2. Prepare Raspberry Pi
Connect or swap camera modules only with Pi powered off and unplugged.
- Insert SD card
- Connect camera module
- Connect display, keyboard and mouse, unless you work over SSH
- Connect Ethernet, unless you set up Wi-Fi
- Connect power
Optional: passwordless SSH
We made ssh-keyup to easily set up and manage SSH keys, on Windows too. Install with pipx, then run it on PC with username and hostname from step 1:
pipx install ssh-keyup ssh-keyup <username>@<hostname> --alias mypi
Once set up, connect using alias:
ssh mypi
3. Install camera software
Steps 3 to 5 run in a terminal on Pi desktop, through VNC or over SSH.
Update OS and reboot:
sudo apt update && sudo apt full-upgrade -y sudo reboot
Drivers for some cameras ship with Raspberry Pi OS, marked in their README. Skip to step 4 for those.
Enable Kurokesu apt archive:
curl -fsSLO https://apt.kurokesu.com/setup.sh sudo sh setup.sh
Install camera driver with Kurokesu rpicam-apps build (pulls in libcamera too), for example AR0234:
sudo apt update sudo apt install -y ar0234-rpi-dkms rpicam-apps
Driver packages are named <sensor>-rpi-dkms.
4. Configure boot
Open boot configuration:
sudo nano /boot/firmware/config.txt
Set camera_auto_detect near the top to 0:
camera_auto_detect=0
Add camera overlay under [all] at the bottom, for example AR0234:
[all] dtoverlay=ar0234
For camera on cam0 port, use dtoverlay=ar0234,cam0.
All dtoverlay options are listed in READMEs.
Save, exit and reboot:
sudo reboot
5. Test camera using rpicam-hello
After reboot, list cameras:
rpicam-hello --list-cameras
Start 10 s live preview:
rpicam-hello -t 10000
Without a display, capture a still with rpicam-still -o test.jpg instead.
Troubleshooting: camera not detected
If rpicam-hello --list-cameras prints No cameras available!, check:
- Cable sits straight and fully inserted at both ends. Reseat it only with Pi powered off.
camera_auto_detect=0is set anddtoverlaysits under[all].cam0is set if camera is on cam0 port.dmesg | grep <sensor>shows whether sensor was found.- On Compute Module IO boards, J6 jumpers are fitted: CM5 IO for cam1, CM4 IO for cam0.
How it works
Kurokesu apt archive carries builds of libcamera and rpicam-apps with support for our cameras. They install as updates to stock packages, so preview, capture and Picamera2 work as usual. Drivers from our archive are DKMS packages, rebuilt when the kernel updates. Later releases arrive with regular sudo apt full-upgrade.
Next
Driver READMEs cover each sensor in full. For questions, feature requests or problems, open an issue in respective driver repository.