Error building tdx-reference-multimedia-image

I get following error while running bitbake command:

bitbake tdx-reference-multimedia-image

ERROR: Unable to parse /home/pranav/oe-core/layers/openembedded-core/bitbake/lib/bb/parse/parse_py/ConfHandler.py
Traceback (most recent call last):
File “/home/pranav/oe-core/layers/openembedded-core/bitbake/lib/bb/parse/parse_py/ConfHandler.py”, line 94, in include_single_file(parentfn=‘configuration INHERITs’, fn=‘classes/toradex-mirrors.bbclass’, lineno=0, data=<bb.data_smart.DataSmart object at 0x7badd74c9c30>, error_out=‘inherit’):
if error_out:
> raise ParseError(“Could not %s file %s” % (error_out, fn), parentfn, lineno)
logger.debug2(“CONF file ‘%s’ not found”, fn)
bb.parse.ParseError: ParseError in configuration INHERITs: Could not inherit file classes/toradex-mirrors.bbclass

I only added in local.conf: MACHINE ?= “verdin-imx8mp”

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


The error message you’re encountering indicates that the BitBake build system is unable to find the toradex-mirrors.bbclass file, which is supposed to be inherited in your configuration. This typically means that the file is either missing or not located in the expected directory.

Here are a few steps you can take to troubleshoot and resolve this issue:

  1. Check the Layer Path: Ensure that the layer containing toradex-mirrors.bbclass is correctly included in your bblayers.conf file. This file should be located in the build/conf directory of your Yocto Project setup. Make sure the path to the layer containing the classes directory is correct.

  2. Verify the File Exists: Navigate to the directory where the toradex-mirrors.bbclass file is supposed to be located. This is typically within a classes directory in one of your layers. Verify that the file actually exists.

  3. Update Layers: If the file is missing, you might need to update your layers. Use the repo sync command to ensure all layers are up to date with the latest changes from the repositories.

  4. Check for Typos: Ensure there are no typos in your local.conf or bblayers.conf files that might be causing the build system to look in the wrong location.

  5. Consult Documentation: If the issue persists, consult the Toradex documentation or forums for any known issues or updates related to the toradex-mirrors.bbclass.

If these steps do not resolve the issue, you may need to provide more context or check for any additional configuration steps specific to your setup.

Please, also check if these links can help you solve your problem:

Build Linux Image with Yocto v2.8.

Hi @rajtendulkar!

We have an article teaching the step-by-step on how to Build a Reference Image with Yocto Project/OpenEmbedded.

Could you tell me everything that you did before the bitbake command? Besides, can you try again following the article that I sent (if you didn’t follow it already)?

Best regards.
Lucas Azeituno

Thank you. I followed the reference image and it worked.

Hi @rajtendulkar !

I’m glad to know that it worked.

Best regards.
Lucas Azeituno