🛠 Caméra CSI OV5640 via fdtoverlays dans extlinux.conf

BeaglePlay (TI Sitara AM6254 / AM625) · intermediaire · Schéma : IMG-beagleplay-intermediaire-3-camera-csi-ov5640.svg — Un module caméra OV5640 relié par nappe au connecteur CSI 22 broches du BeaglePlay, le chemin du fichier extlinux.conf et sa ligne fdtoverlays annotés

Objectives

Enable the 22-pin CSI camera port on the BeaglePlay and connect an OV5640 module, the recommended sensor because the CSI connector is wired without an ISP: there is no image processing pipeline on the AM625 for this connector, so the sensor must provide a pre-processed stream at its output (the OV5640 does this, many raw RAW sensors do not). Activation is done via device tree overlays declared in the fdtoverlays line of /boot/firmware/extlinux/extlinux.conf.

Hardware

Complete code

# 1. Vérifier la présence de l'overlay dans l'image
find /usr/lib/linux-image* -name '*ov5640*'
ls /boot/firmware/overlays/ 2>/dev/null

# 2. Éditer la config extlinux (sauvegarde d'abord)
sudo cp /boot/firmware/extlinux/extlinux.conf ~/extlinux.conf.bak
sudo nano /boot/firmware/extlinux/extlinux.conf
# ajouter dans le bloc linux :
#   fdtoverlays /overlays/k3-am625-beagleplay-csi-ov5640.dtbo

sudo reboot

# 3. Après reboot : le subdev est apparu
media-ctl -p | grep -i ov5640
yavta -l --enum-formats --enum-inputs /dev/video0

Expected verification

After reboot, media-ctl -p shows the chain ov5640 -> csi2 -> video, and yavta --enum-frame-sizes /dev/video0 lists the sensor resolutions. A capture: yavta -c1 -f UYVY -s 1280x720 -F /dev/video0 writes an image file. If fdtoverlays is ignored, verify that the path is relative to the boot partition.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials