How I used yocto for an ELC 2022 talk and demo
summary
Uses Yocto and YOE Distro to build a QEMU qemuarm64 demo: adds a meta-v4l2-m2m-example layer, BB-appends the qemu system and linux-yo kernel to include V4L2 mem2mem support, and implements a QEMU virtual mem2mem scaler backed by the stb scaler library. Provides an out-of-tree V4L2 mem2mem kernel module, exports extra libcamera headers, and builds a C++ test app me2m_example.cpp that feeds test vectors and compares outputs. Reproducible via the YOE Docker-enabled workspace and boots the image to run the automated tests.
AI-written summary · about
chapters (13)
- 0:00Introduction and background
- 1:47Why Yocto for the demo
- 3:53Setting up Yocto workspace
- 5:18Adding the example layer
- 6:01Modifying QEMU for virtual hardware
- 8:51Virtual hardware implementation
- 9:14Writing the V4L2 M2M driver
- 11:45Kernel configuration for V4L2
- 12:49Using libcamera for the app
- 13:51Creating the test application
- 15:39Building the application image
- 17:47Running the demo in QEMU
- 19:45Conclusion and thanks
