Hello! Can anyone help/guide me with setting up SCI0 and IMX219-83 Stereo Camera sensor?
I have recently got the Beagle Bone AI-64 board and wanted to try to stream camera with motion, but got into:

motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf
motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0
main: Waiting for threads to finish, pid: 1134
motion_init: Camera 0 started: motion detection Enabled
vid_start: Opening V4L2 device
v4l2_device_open: Using videodevice /dev/video0 and input -1
v4l2_device_capability: - STREAMING
v4l2_device_capability: Device does not support capturing.
vid_start: V4L2 device failed to open
motion_init: Could not fetch initial image from camera

I’m using the preinstalled Debian image: 5.10.120-ti-arm64-r63 #1bullseye SMP Fri Sep 2 01:18:17 UTC 2022
As far as I “understood” k3-j721e-sk-rpi-cam-imx219.dtb overlay is already present in /boot/firmware and it should work out of the box? Or am I missing something?

Isn’t that image using extlinux.conf?


You need to tell the beaglebone to load that overlay

Open extlinux.conf and you need to add/update the line


Ok. So far so good :slight_smile:
Thank you for advice, because the issue was with fdtoverlays indeed.
The first thing I had to do first is to flash latest version of Debian from Latest Software Images - BeagleBoard, with BBAI64-CSI0-imx219.dtbo && BBAI64-CSI1-imx219 overlays.
Next I updated fdtoverlays in:



fdtoverlays /overlays/BBAI64-CSI0-imx219.dtbo /overlays/BBAI64-CSI1-imx219.dtbo

To make motion working with cameras I had to type those lines, before launch:

media-ctl -d 0 --set-v4l2 '"imx219 6-0010":0[fmt:SRGGB8_1X8/640x480]'
media-ctl -d 1 --set-v4l2 '"imx219 4-0010":0[fmt:SRGGB8_1X8/640x480]'

As was mention at this thread: Pipeline for imx219 on BB AI-64

For now I can’t figure out how to get rid of dim greenish picture I’m getting from those cameras.
Seems the v4l2-ctl in this distro is not supporting any kind of auto white balance parameters :frowning:

1 Like