Hi. You can add the overlays by editing the /boot/firmware/extlinux/extlinux.conf fdtoverlays line with:
fdtoverlays /overlays/YOUR_OVERLAY_FILE_NAME_1.dtbo /overlays/YOUR_OVERLAY_FILE_NAME_2.dtbo
Overlays are located in /boot/firmware/overlays/
I have only tested the BBAI64-CSI0-imx219.dtbo
BBAI64-CSI1-imx219.dtbo
overlays for RPi v2 8mp camera based on IMX219 sensor. And it seems that these are the only ones that are available so far.
You can grab the picture from v4l2, but the problem is that imx219 sensor requires additional image signal processing to control the white balance, exposure, etc. And this is done by TI in their custom GStreamer plugins edgeai-gst-plugins, aside the v4l2 driver.
So the GStreamer is the only way to get proper picture from RPi camera.
You can test the RPi camera on CSI0 by adding (I assume that you are using the last image which has this overlay):
fdtoverlays /overlays/BBAI64-CSI0-imx219.dtbo
Reboot.
Also you need to have TI’s dcc isp files in /opt/imaging folder. Just do this:
wget https://github.com/Hypnotriod/bbai64/raw/master/imaging.zip
sudo unzip imaging.zip -d /opt/
Than you can execute these lines to see your camera stream on the monitor (should be connected to BBAI64 mini display port):
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
I have an example of mjpeg http streaming of 2 RPi cameras with python: imx219-stereo-camera-mjpeg-stream.py GStreamer can send its output to socket, so it is possible to grab raw data from it in this way.
And you can dive deep into TI’s edge_ai_apps mess by installing TI EDGEAI (Xfce) Desktop Snapshot image from ARM64 - Debian 11.x (Bullseye) - Monthly Snapshots - 2023-10-07 - FAQ - BeagleBoard