This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62A-LP: Facing the issue in "Building the SDK with Yocto" for the PROCESSOR-SDK-LINUX-RT-AM62A

Part Number: SK-AM62A-LP

Hello Team,

I am facing the issue in "Building the SDK with Yocto" using the below-mentioned command and the following link for RT-Linux (PROCESSOR-SDK-LINUX-RT-AM62A  RT-Linux SDK for edge AI applications on AM62A). (Build target "tisdk-edgeai-image")

TI-Link Yocto-Link:-

1) https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM62AX/09_01_00/exports/docs/linux/Overview_Building_the_SDK.html

2) https://www.ti.com/tool/SK-AM62A-LP#included

Command:-

1) git clone git.ti.com/.../oe-layersetup.git yocto-build

2) cd yocto-build
3) ./oe-layertool-setup.sh -f configs/processor-sdk-analytics/processor-sdk-analytics-09.01.00-config.txt
4) cd build
5) . conf/setenv
6) echo 'ARAGO_BRAND = "edgeai"' >> conf/local.conf
7) MACHINE=am62axx-evm bitbake -k tisdk-edgeai-image

Error Snapshot:- 

Error Snippet:-

=================================================================================

NOTE: Executing Tasks
ERROR: python3-cryptography-native-36.0.2-r0 do_unpack: Bitbake Fetcher Error: UnpackError('Unpack command PATH="/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/sources/oe-core/scripts/native-intercept:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/recipe-sysroot-native/usr/bin/python3-native:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/sources/oe-core/scripts:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/recipe-sysroot-native/usr/bin:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/recipe-sysroot-native/usr/sbin:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/recipe-sysroot-native/usr/bin:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/recipe-sysroot-native/sbin:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/recipe-sysroot-native/bin:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/sources/bitbake/bin:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/hosttools" tar -xz --no-same-owner -f /home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/downloads/asn1_derive-0.8.7.crate -C /home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/cargo_home/bitbake failed with return value 2', 'crates.io/.../download')
ERROR: Logfile of failure stored in: /home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/build/arago-tmp-default-glibc/work/x86_64-linux/python3-cryptography-native/36.0.2-r0/temp/log.do_unpack.4049463
ERROR: Task (virtual:native:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/sources/oe-core/meta/recipes-devtools/python/python3-cryptography_36.0.2.bb:do_unpack) failed with exit code '1'
NOTE: Tasks Summary: Attempted 11389 tasks of which 11388 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds

Summary: 1 task failed:
virtual:native:/home/admin/NISARG/TI-RT-Linux-SDK/yocto-build/sources/oe-core/meta/recipes-devtools/python/python3-cryptography_36.0.2.bb:do_unpack
Summary: There was 1 ERROR message, returning a non-zero exit code.

=================================================================================

Debugging:- 

Why is this "asn1_derive-0.8.7.crate" creating an issue in the "python3-cryptography_36.0.2.bb" recipe file during unpacking. Please check and provide a solution/fix on this issue.

Thanks,

Nisarg

  • Your setup steps look good. So this could be a transient build issue, or some build environment issue.

    First, please confirm you are running this on Ubuntu 22.04. Then, are you using Docker or some other virtualization tool like that?

    Second, try completely cleaning out the Yocto build tree by doing a `rm -rf build/*` and re-start the build.

    Third, please try this on a different PC.

    Regards, Andreas

  • Hi Andreas,

    I am using a higher configuration of Ubuntu 22.0.4 Virtual Machine (VM) for source code setup and build environments.

    From the error logs, it seems that issue with the "python3-cryptography_36.0.2.bb" recipe file during unpacking.

    Please check the above details. 

    I will try your suggestion below and update you.

    `rm -rf build/*` and re-start the build.

    Thanks,

    Nisarg

  • Hi Nisarg,

    Please check the above details. 

    I will try your suggestion below and update you.

    Your machine poses a similar "problem" for Yocto that I saw on my own machine, which is the number of cores is very high compared to the available memory. With the default Yocto algorithm to determine the number of parallel build and make threads this can lead to an over commitment of memory/RAM use, and result in very strange issues, with the build hanging (bitbake server process).  What you should do is the following:

    You can then also try our Docker-based build process which we'll be supporting officially starting with SDK v9.2. Would appreciate any feedback you can provide us. See https://github.com/TexasInstruments/ti-docker-images/pkgs/container/ubuntu-distro  This usually helps very much to eliminate any host-machine related setup and dependency issues.

    Regards, Andreas