Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
It seems you’re encountering some issues with your device tree overlay for the LVDS display on your Verdin iMX8MP module. The errors ‘FDT_ERR_NOTFOUND’ and ‘FDT_ERR_BADMAGIC’ typically suggest problems with the overlay file or its application process. Here are some steps you can take to troubleshoot and resolve these errors:
-
Verify the Overlay File: Use the Device Tree Compiler (
dtc
) to decompile yourlvds.dtbo
file back into a.dts
file. This will allow you to check for any syntax errors or missing nodes that might be causing the issue. -
Check Overlay Path and Name: Ensure that the
lvds.dtbo
file is correctly placed in the directory and that the path specified inoverlays.txt
matches exactly. Any discrepancies in the file name or path can lead to ‘FDT_ERR_NOTFOUND’. -
Overlay Compatibility: Confirm that the overlay is compatible with the base device tree. The
compatible
property in your overlay should match the base device tree’s compatible string, which in your case should be “toradex,verdin-imx8mp”. -
Base Device Tree: Make sure the base device tree is correctly loaded and includes the necessary nodes that your overlay expects to modify. The ‘FDT_ERR_BADMAGIC’ error can occur if the base device tree is not found or is corrupted.
-
Kernel and Overlay Version: Verify that the kernel version matches the version for which the overlay was compiled. Mismatches can lead to errors during the overlay application.
-
Boot Log Analysis: Review the boot log for any additional error messages or warnings that might provide more context about the failure.
-
Recompile and Redeploy: If issues persist, try recompiling the overlay and redeploying it. Ensure that the compilation process uses the correct kernel source and configuration.
By following these steps, you should be able to identify and resolve the issues with your device tree overlay. If the problem continues, consider simplifying the overlay to isolate the problematic section or node, which can help pinpoint the exact cause of the error.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem: