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.

PROCESSOR-SDK-AM64X: ti-rtos-firmware-08.02.00.04-r3.0 failed with exit code 1

Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: AM6442

Hello,

I have a custom board designed using AM6442 processor. While building the SDK I got following error message.I tried recompile it but still got the same error message.

ERROR: ti-rtos-firmware-08.02.00.04-r3.0 do_install: Execution of '/home/pc/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/ti-rtos-firmware/08.02.00.04-r3.0/temp/run.do_install.32100' failed with exit code 1
ERROR: Logfile of failure stored in: /home/pc/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/ti-rtos-firmware/08.02.00.04-r3.0/temp/log.do_install.32100

It seems am64-main-r5f0_0-fw is missing. "| mv: cannot stat 'am64-main-r5f0_0-fw': No such file or directory". There was no similar question in the forum. Can you please help me on how to fix it?

I used the instructions in the link below:

https://software-dl.ti.com/processor-sdk-linux/esd/AM64X/08_06_00_42/exports/docs/linux/Overview_Building_the_SDK.html

You can see full details below:

pc@am6442:~/tisdk/build$ MACHINE=am64xx-evm bitbake -k tisdk-default-image
NOTE: Started PRServer with DBfile: /home/pc/tisdk/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 45881, PID: 31708
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:02
Loaded 17408 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-linux"
MACHINE = "am64xx-evm"
DISTRO = "arago"
DISTRO_VERSION = "2021.09"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta-processor-sdk = "HEAD:fab130c5c3c2fb43c432d294c9783e92a4b67401"
meta-arago-distro
meta-arago-extras = "HEAD:e4fcc247b2fadc457efaff8edabdf12a6b4fa4d1"
meta-qt5 = "HEAD:5ef3a0ffd3324937252790266e2b2e64d33ef34f"
meta-virtualization = "HEAD:beea119eb529b4a11f266004aee8b548427aea39"
meta-networking
meta-python
meta-oe
meta-gnome
meta-filesystems
meta-multimedia = "HEAD:87571345059f82fb7599e3aa82e6fdcfbd361098"
meta-ti = "HEAD:45bdaf7da0bc79fa73f1e01bb30b5c3b2eb34545"
meta-arm
meta-arm-toolchain = "HEAD:c4f04f3fb66f8f4365b08b553af8206372e90a63"
meta = "HEAD:daaee6fcb0d201f041678af433d8e1cd6f924d09"
meta-sysrepo = "HEAD:8bcc6151897c0e67c2931c78340477bf3a12d8cb"
meta-jupyter = "HEAD:82db248e2eca36e52cbeafe599b755dc87720383"


Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am64xx-evm-k3r5-sr2-hs-fs"
DISTRO = "arago"
DISTRO_VERSION = "2021.09"
TUNE_FEATURES = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:fab130c5c3c2fb43c432d294c9783e92a4b67401"
meta-arago-distro
meta-arago-extras = "HEAD:e4fcc247b2fadc457efaff8edabdf12a6b4fa4d1"
meta-qt5 = "HEAD:5ef3a0ffd3324937252790266e2b2e64d33ef34f"
meta-virtualization = "HEAD:beea119eb529b4a11f266004aee8b548427aea39"
meta-networking
meta-python
meta-oe
meta-gnome
meta-filesystems
meta-multimedia = "HEAD:87571345059f82fb7599e3aa82e6fdcfbd361098"
meta-ti = "HEAD:45bdaf7da0bc79fa73f1e01bb30b5c3b2eb34545"
meta-arm
meta-arm-toolchain = "HEAD:c4f04f3fb66f8f4365b08b553af8206372e90a63"
meta = "HEAD:daaee6fcb0d201f041678af433d8e1cd6f924d09"
meta-sysrepo = "HEAD:8bcc6151897c0e67c2931c78340477bf3a12d8cb"
meta-jupyter = "HEAD:82db248e2eca36e52cbeafe599b755dc87720383"


Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am64xx-evm-k3r5-gp"
DISTRO = "arago"
DISTRO_VERSION = "2021.09"
TUNE_FEATURES = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:fab130c5c3c2fb43c432d294c9783e92a4b67401"
meta-arago-distro
meta-arago-extras = "HEAD:e4fcc247b2fadc457efaff8edabdf12a6b4fa4d1"
meta-qt5 = "HEAD:5ef3a0ffd3324937252790266e2b2e64d33ef34f"
meta-virtualization = "HEAD:beea119eb529b4a11f266004aee8b548427aea39"
meta-networking
meta-python
meta-oe
meta-gnome
meta-filesystems
meta-multimedia = "HEAD:87571345059f82fb7599e3aa82e6fdcfbd361098"
meta-ti = "HEAD:45bdaf7da0bc79fa73f1e01bb30b5c3b2eb34545"
meta-arm
meta-arm-toolchain = "HEAD:c4f04f3fb66f8f4365b08b553af8206372e90a63"
meta = "HEAD:daaee6fcb0d201f041678af433d8e1cd6f924d09"
meta-sysrepo = "HEAD:8bcc6151897c0e67c2931c78340477bf3a12d8cb"
meta-jupyter = "HEAD:82db248e2eca36e52cbeafe599b755dc87720383"


Build Configuration:
BB_VERSION = "1.46.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am64xx-evm-k3r5-sr2-hs-se"
DISTRO = "arago"
DISTRO_VERSION = "2021.09"
TUNE_FEATURES = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:fab130c5c3c2fb43c432d294c9783e92a4b67401"
meta-arago-distro
meta-arago-extras = "HEAD:e4fcc247b2fadc457efaff8edabdf12a6b4fa4d1"
meta-qt5 = "HEAD:5ef3a0ffd3324937252790266e2b2e64d33ef34f"
meta-virtualization = "HEAD:beea119eb529b4a11f266004aee8b548427aea39"
meta-networking
meta-python
meta-oe
meta-gnome
meta-filesystems
meta-multimedia = "HEAD:87571345059f82fb7599e3aa82e6fdcfbd361098"
meta-ti = "HEAD:45bdaf7da0bc79fa73f1e01bb30b5c3b2eb34545"
meta-arm
meta-arm-toolchain = "HEAD:c4f04f3fb66f8f4365b08b553af8206372e90a63"
meta = "HEAD:daaee6fcb0d201f041678af433d8e1cd6f924d09"
meta-sysrepo = "HEAD:8bcc6151897c0e67c2931c78340477bf3a12d8cb"
meta-jupyter = "HEAD:82db248e2eca36e52cbeafe599b755dc87720383"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:08
Sstate summary: Wanted 11 Found 1 Missed 10 Current 3050 (9% match, 99% complete)
NOTE: Executing Tasks
ERROR: ti-rtos-firmware-08.02.00.04-r3.0 do_install: Execution of '/home/pc/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/ti-rtos-firmware/08.02.00.04-r3.0/temp/run.do_install.32100' failed with exit code 1
ERROR: Logfile of failure stored in: /home/pc/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/ti-rtos-firmware/08.02.00.04-r3.0/temp/log.do_install.32100
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/pc/tisdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/home/pc/tisdk/sources/oe-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb:do_populate_sysroot', 'virtual:native:/home/pc/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/pc/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.1.1s.bb:do_populate_sysroot', 'virtual:native:/home/pc/tisdk/sources/oe-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['quilt-native', 'opkg-utils', 'pseudo-native', 'openssl-native', 'patch-native', 'external-arm-toolchain', 'automake-native', 'attr-native', 'gnu-config-native', 'autoconf-native', 'libtool-native', 'texinfo-dummy-native', 'gettext-minimal-native', 'm4-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| mv: cannot stat 'am64-main-r5f0_0-fw': No such file or directory
| WARNING: /home/pc/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/ti-rtos-firmware/08.02.00.04-r3.0/temp/run.do_install.32100:1 exit 1 from 'do_install'
| ERROR: Execution of '/home/pc/tisdk/build/arago-tmp-external-arm-glibc/work/am64xx_evm-linux/ti-rtos-firmware/08.02.00.04-r3.0/temp/run.do_install.32100' failed with exit code 1
ERROR: Task (/home/pc/tisdk/sources/meta-ti/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 9363 tasks of which 9362 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 3 seconds

Summary: 1 task failed:
/home/pc/tisdk/sources/meta-ti/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb:do_install
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

  • Can you re-try (re-start) your build to see if this fixes the issue?

    If not, can you try a MACHINE=am64xx-evm bitbake -c clean ti-rtos-firmware command, and then restart your build, and see if that now works.

    I think I've seen something like this before, it was a race condition that was triggered due to rename ('mv') operations directly applied to the cloned Git source repo not being handled gracefully. Looking through the run.do_install* and log.do_install* files referenced in the error message should lead to this:

    from meta-ti/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb...

    # Update the am64xx ipc binaries to be consistent with other platforms
    do_install_prepend_am64xx() {
            ( cd ${RTOS_IPC_FW_DIR}; \
                    mv am64-main-r5f0_0-fw ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f; \
                    mv am64-main-r5f0_1-fw ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f; \
                    mv am64-main-r5f1_0-fw ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f; \
                    mv am64-main-r5f1_1-fw ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f; \
                    mv am64-mcu-m4f0_0-fw ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f; \
            )
    }
    

    If you can confirm that any of the above suggestion works that would be appreciated, so I can then work with getting this fixed with our development team for future SDK builds.

    Regards, Andreas

  • Hi Andreas, Cleaning with "MACHINE=am64xx-evm bitbake -c clean ti-rtos-firmware", then rebuilding it resolved the problem. Thank you very much.

  • Thanks for confirming, I'll file an internal issue report to get this behavior improved.

    (Filed internally as SITSW-2373)

  • It turns out this has actually been fixed in our Yocto Kirkstone branch, which the upcoming SDK v9.x series will be based off. You could just cherry-pick (or otherwise merge) the fix from Kirkstone if needed: git.yoctoproject.org/.../