Yocto build problem

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

Did you like my answer?

:+1: :-1:


Based on the context provided, it seems like the issue you’re encountering is related to the tar command not being able to find the minecraft-pi.tar.xz file during the do_install task. Here are a few suggestions to troubleshoot and potentially resolve the issue:

  1. Check File Paths: Ensure that the minecraft-pi.tar.xz file and other tar files are indeed present in the ${WORKDIR} directory. The error message indicates that the file cannot be found, which suggests it might not be in the expected location.

  2. Verify SRC_URI: Double-check the SRC_URI in your recipe to ensure that the paths to the tar files are correct and that they are being fetched and unpacked properly. The unpack=0 option is used to prevent automatic unpacking, so make sure the files are being copied correctly to the ${WORKDIR}.

  3. Debugging: Add some debug statements in the do_install function to print the contents of ${WORKDIR} before the tar command is executed. This can help verify whether the files are present at that point in the build process.

  4. Permissions: Ensure that the build process has the necessary permissions to read the files in ${WORKDIR} and write to the /opt directory.

  5. Log Files: Check the log file mentioned in the error message for more detailed information about the failure. The log file is located at /home/uroosa/yocto/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/opt/1.0/temp/log.do_install.684652.

If these steps do not resolve the issue, you may need to provide more specific details or context to further diagnose the problem.

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

Failing to adding files to rotfs.