Hi, as I also tried to follow the same article a few days ago, so I will share my steps here.
I am trying to get the camera AR0521 running with hardware encoding.
I also use a Verdin iMX8MP, on a Dahlia carrier board.
First I built Torizon OS 6.9.0 with the AR0521 camera Yocto overlay, but this gave me I2C errors on the boot console. Then I built 6.5.0 as this version was mentioned in a commit message of the overlay. With this the I2C errors went away.
Then I also struggled with building the Docker image for the camera. I also had the problem with version pinned packages, but on top the finally created image wouldnt run on the Verdin board because of âunsupported platformâ errors.
While I dont know if it helps in this issue here, I can after 2 days now successfully run the gstreamer example which displays the raw camera stream in a Wayland window, so I am sharing the details:
Build environment: Windows 11 with WSL2 and Docker Desktop
Dockerfile and version-pinned file: As I am not allowed to upload files as a new user, I will post it as text on request. I heavily modified both files with Trial&Error to get the build done.
Build command for the Docker image (this command will try to immediately push the created image to the local Docker registry created by Torizon IDE extension):
docker buildx build --push --build-arg BASE_NAME=wayland-base-vivante --build-arg IMAGE_ARCH=arm64/v8 --platform linux/arm64/v8 . -t localhost:5002/gst_example
Command to run the docker images:
docker run -e MACHINE=verdin-imx8mp --rm -it -v /tmp:/tmp -v /var/run/dbus:/var/run/dbus -v /dev:/dev -v /sys:/sys \
--device /dev/video2 \
--device-cgroup-rule='c 226:* rmw' --device-cgroup-rule='c 199:* rmw' 192.168.0.201:5002/gst_example:latest /bin/bash
Command inside docker image to display the video window:
gst-launch-1.0 v4l2src device='/dev/video2' num-buffers=300 ! "video/x-raw, format=RGB16, framerate=30/1, width=1920, height=1080" ! fpsdisplaysink video-sink=waylandsink text-overlay=false sync=false
â/dev/video2â might need to be adjustedâŚ
However I am not able to use the hardware video decoder encoder, I will open a thread about this nextâŚ