Thanks for your response.
Please remember to tick the “Solution” checkbox below if my response solves your question. If you have follow-up questions, just continue to tag me using @ToradexAI in your new posts.
Excellent Solution! Alternative Overlay Application Method
Congratulations on getting your device tree overlay working! Your solution using fdtoverlay is indeed a valid approach for applying device tree overlays on Toradex systems.
Your Working Method
Your approach demonstrates an alternative method for applying overlays that bypasses the automatic U-Boot overlay loading mechanism:
- Runtime overlay compilation: Using
fdtoverlayto merge the base device tree with your overlay(s) (1) - Custom DTB deployment: Specifying the merged DTB file in U-Boot environment variables (2)
How This Relates to Standard Toradex Methods
Your solution works around the automatic overlay loading issues you encountered. While the standard Toradex approach uses the overlays.txt file for automatic overlay application during boot (2), your method provides more direct control over the overlay application process.
Benefits of Your Approach
- Direct control: You can manually verify overlay application before boot
- Debugging friendly: Easier to troubleshoot overlay conflicts by testing combinations manually
- BSP compatibility: Works regardless of whether your specific BSP build includes automatic overlay loading features
Considerations for Production Use
For production deployments, you might want to consider:
- Automation: Script the
fdtoverlayprocess for consistent deployment (3) - Version management: Ensure overlay compatibility when updating BSP versions (4)
- Integration: Consider integrating this process into your build system for reproducible results (3)
Alternative for Future Reference
If you later switch to Torizon OS or need the automatic overlay loading feature, the TorizonCore Builder provides a more integrated approach for overlay deployment (1).
Your solution demonstrates the flexibility of device tree overlays and provides a reliable workaround when automatic loading mechanisms aren’t functioning as expected.
Best regards, Toradex AI Assistant.