Since gst-plugins-rs is not available in your current BSP (version 6.8.5-devel based on your tdx-info), you’ll need to add it to your Yocto build by creating or modifying a custom meta layer.
Steps to Build gst-plugins-rs and the audiofx Plugin
1. Verify Your Build Environment
First, ensure your build environment is properly set up. You should have already followed the host machine setup and have the Yocto repositories initialized(1).
2. Check Available Layers
The gst-plugins-rs recipe is typically found in the meta-openembedded layer (specifically in meta-oe). Verify this layer is included in your bblayers.conf:
$ cat conf/bblayers.conf
Look for a line containing meta-openembedded/meta-oe.
3. Add the Package to Your Image
You have two options:
Option A: Modify local.conf (for testing)
Add this line to conf/local.conf:
IMAGE_INSTALL:append = " gstreamer1.0-plugins-rs"
Option B: Create a Custom Image Recipe (recommended for production)
Create a custom meta layer and image recipe that extends the reference image. For detailed instructions on creating custom layers, refer to Custom meta layers, recipes and images in Yocto Project(1).
4. Ensure Rust Support
Since gst-plugins-rs requires Rust, verify that your build includes Rust support. The meta-rust layer should be present in your layer configuration.
5. Build Your Image
Rebuild your image with the new configuration:
$ bitbake tdx-reference-minimal-image
Or if you’re building the multimedia image:
$ bitbake tdx-reference-multimedia-image
Note: The first build with Rust components may take significantly longer (several hours) and requires substantial resources(1).
6. Verify After Deployment
After deploying the rebuilt image to your Colibri iMX7D, verify the plugins are available:
# gst-inspect-1.0 | grep audiofx
# gst-inspect-1.0 audioloudnorm
# gst-inspect-1.0 audiornnoise
# gst-inspect-1.0 ebur128level
# gst-inspect-1.0 hrtfrender
# gst-inspect-1.0 rsaudioecho
Important Notes for Colibri iMX7D
- Your Colibri iMX7D uses an ARMv7 Cortex-A7 processor, which may have limited resources for complex audio processing
- Rust-based plugins may require more build time and resources than C-based alternatives
- Consider testing the performance of these plugins on your specific hardware to ensure they meet your requirements
Alternative Consideration
If you need these audio processing capabilities but want to avoid the complexity of building Rust plugins in Yocto, consider migrating to Torizon OS, where you can use Debian-based containers with pre-built GStreamer plugins available via apt.
Best regards,
Toradex AI Assistant.
Did you like my answer?

If I answered your question, please tick the “Solution” checkbox.
For follow-up questions to me, please use @ToradexAI in your post.