IMX219 not working still

Hi

I recently got a BeagleBone AI-64 and have been trying to get it to work with a few cameras I had laying around. I already got it to work with a generic USB camera with v4l2 but when trying to use a spare Raspberry Pi NoIR v2 (IMX219 sensor) I can’t seem to get the camera detected. I have already edited the extlinux.conf file in /boot/firmware/extlinux to include the device tree blobs for the IMX219 under ftdoverlays but that didn’t seem to help much. Any ideas on what could be blocking the camera from being accessed?

1 Like

In my practice it worked with “2023-10-07 Debian 11.x (Bullseye) TI EDGEAI (Xfce) Desktop” from here

Add to fdtoverlays in /boot/firmware/extlinux/extlinux.conf:

fdtoverlays /overlays/BBAI64-CSI0-imx219.dtbo

reboot

Run sudo ./setup_script.sh from /opt/edge_ai_apps/ to install edgeai-gst-plugins

Check the /opt/imaging folder. If not exist than do:

wget https://github.com/Hypnotriod/bbai64/raw/master/imaging.zip
sudo unzip imaging.zip -d /opt/

Run to display camera image on the screen:

sudo media-ctl -d 0 --set-v4l2 '"imx219 6-0010":0[fmt:SRGGB8_1X8/1920x1080]'
sudo gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-bayer, width=1920, height=1080, format=rggb ! tiovxisp sink_0::device=/dev/v4l-subdev2 sensor-name=SENSOR_SONY_IMX219_RPI dcc-isp-file=/opt/imaging/imx219/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/imx219/dcc1/dcc_2a.bin format-msb=7 ! kmssink driver-name=tidss

If you have more than one video device plugged in - check the device and subdev id with:
sudo /opt/edge_ai_apps/init_script.sh

1 Like