I was hoping to try out some of the Edge AI demos and I have a V2 RPi camera (IMX219) + BB AI-64, which is the one supported in the Edge AI docs: [Getting Started — BeagleBoard Documentation](https://AI-64- EdgeAI -Getting Started)
I know these are mostly sources from TI’s Edge AI docs buts I’m stuck at the first step of enabling the camera. This is the note at the link above: To be updated By default IMX219 is disabled. After connecting the camera you can enable it by specifying the dtb overlay file in/run/media/mmcblk0p1/uenv.txt as below,
I do not have a /media/ folder in /run/, is there another way I should be enabling the imx219 camera overlay?
Hehe sorry about the timeline ask, I’m projecting my terrible work habits and forgetting the generosity.
I feel helpless and I want to unleash the true power of this beautiful board!
For my personal curiosity, is it a question of adapting/compiling TI’s IMX219 example driver in the kernel and testing?
Update: further… progress, it’s loaded… and it shows up…
git clone -b v5.10.x-ti-unified https://git.beagleboard.org/beagleboard/BeagleBoard-DeviceTrees.git
cd ./BeagleBoard-DeviceTrees/
make
sudo make install_arm64
Then in /boot/firmware/extlinux/extlinux.conf
fdtoverlays /overlays/BBAI64-CSI0-imx219.dtbo
BUT… yeah it needs magic to use it… /dev/video2 is not giving me the data…
sudo ./init_script.sh
CSI Camera 0 detected
device = /dev/video2
name = imx219 6-0010
format = [fmt:SRGGB8_1X8/1920x1080]
subdev_id = 2
isp_required = yes
debian@BeagleBone:/opt/source/dtb-5.10-ti$ dmesg | grep imx
[ 9.734750] imx219 4-0010: supply VANA not found, using dummy regulator
[ 9.741556] imx219 4-0010: supply VDIG not found, using dummy regulator
[ 9.748236] imx219 4-0010: supply VDDL not found, using dummy regulator
[ 9.969642] imx219 6-0010: supply VANA not found, using dummy regulator
[ 9.976433] imx219 6-0010: supply VDIG not found, using dummy regulator
[ 9.983083] imx219 6-0010: supply VDDL not found, using dummy regulator
debian@BeagleBone:/opt/source/dtb-5.10-ti$ sudo /opt/edge_ai_apps/init_script.sh
CSI Camera 0 detected
device = /dev/video2
name = imx219 6-0010
format = [fmt:SRGGB8_1X8/1920x1080]
subdev_id = 2
isp_required = yes
CSI Camera 1 detected
device = /dev/video18
name = imx219 4-0010
format = [fmt:SRGGB8_1X8/1920x1080]
subdev_id = 5
isp_required = yes
git clone -b v5.10.x-ti-unified https://git.beagleboard.org/beagleboard/BeagleBoard-DeviceTrees.git
cd ./BeagleBoard-DeviceTrees/
make
sudo make install_arm64
Quick follow-up as I’ve been trying to test some of the Edge AI apps and was wondering if you’ve been able to run one of the Python examples?
After running the init_script.sh the camera is seen although I see the following two messages before detecting my camera on CSI0:
line 120: ntpd: command not found
line 124: /usr/lib/python3.8/site-packages/dlr/counter/ccm_config.json: No Such file or directory
I then try to run one of the python examples from /opt/edge_ai_apps/apps_python:
sudo ./app_edgeai.py …/configs/rpiV2_cam_example.yaml
The error I’m getting is:
“Error - libdlr.so: cannot open shared object file: No such file or directory”
Are you able to get this example running? I just flashed my AI-64 w/ latest Nov 1st flasher w/ Edge AI apps. I also followed the AI-64 update procedure.