I follow the directions from software-dl.ti.com/.../Release_Specific_Release_Notes.html
Using the ~/tisdk/configs/processor-sdk-linux/processor-sdk-linux-08_01_00.txt config and "MACHINE=am64xx-evm bitbake tisdk-base-image" delivers this output:
WARNING: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Failed to fetch URL git://github.com/onnx/onnx-tensorrt;protocol=https;branch=master;destsuffix=~/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_3/git/cmake/external/onnx-tensorrt;name=cmake-external-onnx-tensorrt, attempting MIRRORS if available
ERROR: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Fetcher failure: Unable to find revision dc22bb323ece3c65419717be8a0d3d0f318a61fa in branch master even from upstream
ERROR: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/onnx/onnx-tensorrt;protocol=https;branch=master;destsuffix=~/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_3/git/cmake/external/onnx-tensorrt;name=cmake-external-onnx-tensorrt')
ERROR: Logfile of failure stored in: ~/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_3/temp/log.do_fetch.4551
ERROR: Task (~/tisdk/sources/meta-psdkla/recipes-core/packagegroups/onnxruntime.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2768 tasks of which 2627 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
Summary: 1 task failed:
~/tisdk/sources/meta-psdkla/recipes-core/packagegroups/onnxruntime.bb:do_fetch
Summary: There were 7 WARNING messages shown.
Summary: There were 172 ERROR messages shown, returning a non-zero exit code.
After attempting to cherry pick the commit as suggested in https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1072575/j7expcxevm-building-of-tisdk-fails-due-to-fetch-from-incorrect-git-repo-branch-name/3969162 by altering /tisdk/sources/meta-psdkla/recipes-core/packagegroups/onnxruntime.bb as follows:
git diff onnxruntime.bb
diff --git a/recipes-core/packagegroups/onnxruntime.bb b/recipes-core/packagegroups/onnxruntime.bb
index c8fef5f..bc36d27 100644
--- a/recipes-core/packagegroups/onnxruntime.bb
+++ b/recipes-core/packagegroups/onnxruntime.bb
@@ -52,7 +52,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://cmake/external/FeaturizersLibrary/src/3rdParty/re2/LICENSE;md5=3b5c31eb512bdf3cb11ffd5713963760 \
"
-SRC_URI = "git://github.com/microsoft/onnxruntime;protocol=https;branch=master;name=base \
+SRC_URI = "git.ti.com/gitweb \
git://github.com/gabime/spdlog;protocol=https;branch=v2.x;destsuffix=${S}/server/external/spdlog;name=server-external-spdlog \
git://github.com/apple/coremltools;protocol=https;branch=main;destsuffix=${S}/cmake/external/coremltools;name=cmake-external-coremltools \
git://github.com/microsoft/onnxruntime-tvm;protocol=https;branch=nuphar;destsuffix=${S}/cmake/external/tvm;name=cmake-external-tvm \
The following output is generated:
WARNING: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Failed to fetch URL git.ti.com/gitweb, attempting MIRRORS if available
ERROR: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Fetcher failure for URL: 'git.ti.com/gitweb. The fetch command returned success for url git.ti.com/gitweb but ~/tisdk/downloads/meta-psdkla.git doesn't exist?!
ERROR: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git.ti.com/gitweb
ERROR: Logfile of failure stored in: ~/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_3/temp/log.do_fetch.17693
ERROR: Task (~/tisdk/sources/meta-psdkla/recipes-core/packagegroups/onnxruntime.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2251 tasks of which 2206 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
Summary: 1 task failed:
~/tisdk/sources/meta-psdkla/recipes-core/packagegroups/onnxruntime.bb:do_fetch
Summary: There were 5 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Attempting the solution suggested in https://e2e.ti.com/support/processors-group/processors/f/processors-forum/948986/faq-tda4vm-how-to-resolve-yocto-build-failure-while-trying-to-fetch-repository as follows:
git diff onnxruntime.bb
diff --git a/recipes-core/packagegroups/onnxruntime.bb b/recipes-core/packagegroups/onnxruntime.bb
index c8fef5f..b09524f 100644
--- a/recipes-core/packagegroups/onnxruntime.bb
+++ b/recipes-core/packagegroups/onnxruntime.bb
@@ -52,7 +52,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0f7e3b1308cb5c00b372a6e78835732d \
file://cmake/external/FeaturizersLibrary/src/3rdParty/re2/LICENSE;md5=3b5c31eb512bdf3cb11ffd5713963760 \
"
-SRC_URI = "git://github.com/microsoft/onnxruntime;protocol=https;branch=master;name=base \
+SRC_URI = "git.ti.com/gitweb \
+ file://0001-do-not-strip-pdata_tools-at-do_install.patch \
+ file://use-sh-on-path.patch \
git://github.com/gabime/spdlog;protocol=https;branch=v2.x;destsuffix=${S}/server/external/spdlog;name=server-external-spdlog \
git://github.com/apple/coremltools;protocol=https;branch=main;destsuffix=${S}/cmake/external/coremltools;name=cmake-external-coremltools \
git://github.com/microsoft/onnxruntime-tvm;protocol=https;branch=nuphar;destsuffix=${S}/cmake/external/tvm;name=cmake-external-tvm \
@@ -224,7 +226,7 @@ EXTRA_OECMAKE = " \
-Donnxruntime_USE_TIDL=ON \
"
-do_install() {
+do_install() {
cmake_do_install
install -d ${B}/docs/python
Fails as follows:
WARNING: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Failed to fetch URL git.ti.com/gitweb, attempting MIRRORS if available
ERROR: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Fetcher failure for URL: 'git.ti.com/gitweb. The fetch command returned success for url git.ti.com/gitweb but ~/tisdk/downloads/meta-psdkla.git doesn't exist?!
ERROR: onnxruntime-1.7.0-r0_psdkla_3 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git.ti.com/gitweb
ERROR: Logfile of failure stored in: ~/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0_psdkla_3/temp/log.do_fetch.17101
ERROR: Task (~/tisdk/sources/meta-psdkla/recipes-core/packagegroups/onnxruntime.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2704 tasks of which 2666 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
Summary: 1 task failed:
~/tisdk/sources/meta-psdkla/recipes-core/packagegroups/onnxruntime.bb:do_fetch
Summary: There were 9 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
How do I build the SDK? Is there a fix available?