Error during UEFI compilation

According to the documentation, we found the compilation wiki for UEFI.
We compiled UEFI without docker because we used Ubutnu 18.04.
But encountered the following error:

hluo@CSCD-csp1:~/jeston_orin/my_build/nvidia-uefi [main]$ ls
edk2 edk2-non-osi edk2-nvidia edk2-nvidia-non-osi edk2-nvidia-server-gpu-sdk edk2-platforms repo venv
hluo@CSCD-csp1:~/jeston_orin/my_build/nvidia-uefi [main]$ edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /cscd/hluo/jeston_orin/my_build/nvidia-uefi
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: Activating Python virtual environment.
nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
edk2-nvidia/Silicon/NVIDIA/scripts/prepare_stuart.sh: line 40: stuart_update: command not found
hluo@CSCD-csp1:~/jeston_orin/my_build/nvidia-uefi [main]$

Please refer to the following instruction to set up the build environment for UEFI.
Build without docker · NVIDIA/edk2-nvidia Wiki · GitHub

and let me know if you could set up build environment w/o issue.

Since my computer is not Ubuntu 20, I cannot use the method with docker.
So I checked again, including changing the computer, which is also ubuntu18.04.
But I still haven’t found the reason for the error.
The log is here:

csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi [main]$ sudo apt-get install build-essential uuid-dev git gcc python3 virtualenv gcc-aarch64-linux-gnu device-tree-compiler
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
build-essential 已经是最新版 (12.4ubuntu1)。
device-tree-compiler 已经是最新版 (1.4.5-3)。
virtualenv 已经是最新版 (15.1.0+ds-1.1)。
gcc 已经是最新版 (4:7.4.0-1ubuntu2.3)。
gcc-aarch64-linux-gnu 已经是最新版 (4:7.4.0-1ubuntu2.3)。
git 已经是最新版 (1:2.17.1-1ubuntu0.18)。
python3 已经是最新版 (3.6.7-1~18.04)。
uuid-dev 已经是最新版 (2.31.1-0.4ubuntu3.7)。
下列软件包是自动安装的并且现在不需要了:
linux-hwe-5.4-headers-5.4.0-84
使用’sudo apt autoremove’来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 124 个软件包未被升级。
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi [main]$ sudo apt install mono-devel
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
mono-devel 已经是最新版 (4.6.2.7+dfsg-1ubuntu1)。
下列软件包是自动安装的并且现在不需要了:
linux-hwe-5.4-headers-5.4.0-84
使用’sudo apt autoremove’来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 124 个软件包未被升级。
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi [main]$ python --version
Python 3.8.0
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi [main]$ edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /home/csp/edkrepo/nvidia-uefi
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: Activating Python virtual environment.
nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
edk2-nvidia/Silicon/NVIDIA/scripts/prepare_stuart.sh: 行 40: stuart_update: 未找到命令
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi [main]$

What’s your current Jetpack version in use for AGX Orin?

Have you refer the following instruction to install mono?
edk2-pytool-extensions/using_extdep.md at tianocore/edk2-pytool-extensions · GitHub

Could you help to run the following command to clone the UEFI source?

$edkrepo clone nvidia-uefi-r35.3.1 NVIDIA-Jetson r35.3.1

Thank you, the board was designed by oneself.
Because we will use soft version r35.2.1 not r35.3.1, I change the command:

$edkrepo clone nvidia-uefi-r35.2.1 NVIDIA-Jetson r35.2.1

But the fetch failed error was prompted,log is here:

csp@csp-ThinkPad-T580:~/edkrepo$ edkrepo clone nvidia-uefi-r35.2.1 NVIDIA-Jetson r35.2.1
Syncing the global manifest repository: /home/csp/.edkrepo/edk2-edkrepo-manifest-main
Syncing the global manifest repository: /home/csp/.edkrepo/nvidia
Verifying the global manifest repository entry for project: NVIDIA-Jetson

Cloning from: GitHub - NVIDIA/edk2: NVIDIA fork of tianocore/edk2
Cloning from: GitHub - NVIDIA/edk2-non-osi: NVIDIA fork of tianocore/edk2-non-osi
Cloning from: GitHub - NVIDIA/edk2-platforms: NVIDIA fork of tianocore/edk2-platforms
Cloning from: GitHub - NVIDIA/edk2-nvidia: NVIDIA EDK2 platform support
Cloning from: GitHub - NVIDIA/edk2-nvidia-non-osi: NVIDIA EDK2 non-OSI licensed content
Initializing/Updating submodules% (24/24), done.
Submodule path ‘ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3’: checked out ‘b64af41c3276f97f0e181920400ee056b9c88037’
Submodule path ‘BaseTools/Source/C/BrotliCompress/brotli’: checked out ‘f4153a09f87cbb9c826d8fc12c74642bb2d879ea’
Submodule path ‘CryptoPkg/Library/OpensslLib/openssl’: checked out ‘d82e959e621a3d597f1e0d50ff8c2d8b96915fd7’
Submodule path ‘MdeModulePkg/Library/BrotliCustomDecompressLib/brotli’: checked out ‘f4153a09f87cbb9c826d8fc12c74642bb2d879ea’
Submodule path ‘MdeModulePkg/Universal/RegularExpressionDxe/oniguruma’: checked out ‘abfc8ff81df4067f309032467785e06975678f0d’
Submodule path ‘RedfishPkg/Library/JsonLib/jansson’: checked out ‘e9ebfa7e77a6bee77df44e096b100e7131044059’
Submodule path ‘UnitTestFrameworkPkg/Library/CmockaLib/cmocka’: checked out ‘1cc9cde3448cdd2e000886a26acf1caac2db7cf1’
Performing sparse checkout…

  • /home/csp/edkrepo/nvidia-uefi-r35.2.1/edk2-platforms
    csp@csp-ThinkPad-T580:~/edkrepo$ cd nvidia-uefi-r35.2.1/
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ ls
    edk2 edk2-non-osi edk2-nvidia edk2-nvidia-non-osi edk2-platforms repo
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ ^C
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ ^C
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ ^C
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ ^C
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ ^C
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
    nvidia: building from workspace rooted at: /home/csp/edkrepo/nvidia-uefi-r35.2.1
    nvidia: found command: python3.
    nvidia: found command: virtualenv.
    nvidia: found command: mono.
    nvidia: found command: aarch64-linux-gnu-gcc.
    nvidia: Creating Python virtual environment in /home/csp/edkrepo/nvidia-uefi-r35.2.1/venv…
    Already using interpreter /usr/bin/python3
    Using base prefix ‘/usr’
    New python executable in /home/csp/edkrepo/nvidia-uefi-r35.2.1/venv/bin/python3
    Also creating executable in /home/csp/edkrepo/nvidia-uefi-r35.2.1/venv/bin/python
    Installing setuptools, pkg_resources, pip, wheel…done.
    nvidia: Installing required Python packages…
    Collecting edk2-pytool-library==0.11.2
    Downloading edk2_pytool_library-0.11.2-py3-none-any.whl (434 kB)
    |████████████████████████████████| 434 kB 98 kB/s
    Collecting edk2-pytool-extensions~=0.16.0
    Downloading edk2_pytool_extensions-0.16.0-py3-none-any.whl (2.4 MB)
    |████████████████████████████████| 2.4 MB 53 kB/s
    Collecting edk2-basetools==0.1.24
    Downloading edk2_basetools-0.1.24-py3-none-any.whl (1.3 MB)
    |████████████████████████████████| 1.3 MB 38 kB/s
    Collecting antlr4-python3-runtime==4.7.1
    Downloading antlr4-python3-runtime-4.7.1.tar.gz (111 kB)
    |████████████████████████████████| 111 kB 88 kB/s
    Preparing metadata (setup.py) … done
    Collecting pyyaml>=5.3.1
    Downloading PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (603 kB)
    |████████████████████████████████| 603 kB 71 kB/s
    Collecting pefile>=2019.4.18
    Downloading pefile-2023.2.7-py3-none-any.whl (71 kB)
    |████████████████████████████████| 71 kB 4.3 kB/s
    Building wheels for collected packages: antlr4-python3-runtime
    Building wheel for antlr4-python3-runtime (setup.py) … done
    Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.7.1-py3-none-any.whl size=140549 sha256=221aa5998a4bdd936c708c236a5d2c4f1ab9d83a0da5b610307dfe829b50e118
    Stored in directory: /home/csp/.cache/pip/wheels/4c/8c/27/ca4c7300c0b5e1effa86a64c81d37b26d349e731358732bdd3
    Successfully built antlr4-python3-runtime
    Installing collected packages: pyyaml, pefile, edk2-pytool-library, antlr4-python3-runtime, edk2-pytool-extensions, edk2-basetools
    Successfully installed antlr4-python3-runtime-4.7.1 edk2-basetools-0.1.24 edk2-pytool-extensions-0.16.0 edk2-pytool-library-0.11.2 pefile-2023.2.7 pyyaml-6.0
    Collecting edk2-pytool-extensions==0.17.1
    Downloading edk2_pytool_extensions-0.17.1-py3-none-any.whl (2.5 MB)
    |████████████████████████████████| 2.5 MB 107 kB/s
    Requirement already satisfied: pyyaml>=5.3.1 in ./venv/lib/python3.6/site-packages (from edk2-pytool-extensions==0.17.1) (6.0)
    Requirement already satisfied: pefile>=2019.4.18 in ./venv/lib/python3.6/site-packages (from edk2-pytool-extensions==0.17.1) (2023.2.7)
    Requirement already satisfied: edk2-pytool-library>=0.11.0 in ./venv/lib/python3.6/site-packages (from edk2-pytool-extensions==0.17.1) (0.11.2)
    Installing collected packages: edk2-pytool-extensions
    Attempting uninstall: edk2-pytool-extensions
    Found existing installation: edk2-pytool-extensions 0.16.0
    Uninstalling edk2-pytool-extensions-0.16.0:
    Successfully uninstalled edk2-pytool-extensions-0.16.0
    Successfully installed edk2-pytool-extensions-0.17.1
    nvidia: Building from tarball
    nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
    SECTION - Init SDE
    SECTION - Loading Plugins
    SECTION - Start Invocable Tool
    SECTION - Initial update of environment
    UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl
    WARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm
    . Done
    SECTION - Second pass update of environment
    UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm
    WARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl
    . Done
    ERROR - We were unable to successfully update 2 dependencies in environment
    SECTION - Summary
    ERROR - Error
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$

It seems the clone for the UEFI source of r35.2.1 works as expected.
Your issue comes out after running the build script.

SECTION - Initial update of environment
UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl

It seems still the environment issue.
It might be caused from internet issue. Please check your network access or change to another network.

My network uses a proxy, but there should be no problem with connectivity.
I tested and connected these commonly used URLs,eg youtube,baidu, and they were all OK.

csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /home/csp/edkrepo/nvidia-uefi-r35.2.1
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: Activating Python virtual environment.
nvidia: Building from tarball
nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Initial update of environment
UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl
WARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm
. Done
SECTION - Second pass update of environment
UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm
WARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl
. Done
ERROR - We were unable to successfully update 2 dependencies in environment
SECTION - Summary
ERROR - Error

csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ curl -v --connect-timeout 15 www.youtube.com

  • Rebuilt URL to: www.youtube.com/
  • Trying 127.0.0.1…
  • TCP_NODELAY set
  • Connected to 127.0.0.1 (127.0.0.1) port 7890 (#0)

GET http://www.youtube.com/ HTTP/1.1
Host: www.youtube.com
User-Agent: curl/7.58.0
Accept: /
Proxy-Connection: Keep-Alive

< HTTP/1.1 301 Moved Permanently
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Connection: keep-alive
< Content-Type: application/binary
< Date: Wed, 17 May 2023 10:58:16 GMT
< Expires: Mon, 01 Jan 1990 00:00:00 GMT
< Keep-Alive: timeout=4
< Location: https://www.youtube.com/
< Pragma: no-cache
< Proxy-Connection: keep-alive
< Server: ESF
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 0
< Content-Length: 0
<

  • Connection #0 to host 127.0.0.1 left intact
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ curl -v --connect-timeout 15 www.baidu.com
  • Rebuilt URL to: www.baidu.com/
  • Trying 127.0.0.1…
  • TCP_NODELAY set
  • Connected to 127.0.0.1 (127.0.0.1) port 7890 (#0)

GET http://www.baidu.com/ HTTP/1.1
Host: www.baidu.com
User-Agent: curl/7.58.0
Accept: /
Proxy-Connection: Keep-Alive

< HTTP/1.1 200 OK
< Transfer-Encoding: chunked
< Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
< Connection: keep-alive
< Content-Type: text/html
< Date: Wed, 17 May 2023 10:58:26 GMT
< Keep-Alive: timeout=4
< Last-Modified: Mon, 23 Jan 2017 13:27:29 GMT
< Pragma: no-cache
< Proxy-Connection: keep-alive
< Server: bfe/1.0.8.18
< Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/
<

百度一下,你就知道
  • Connection #0 to host 127.0.0.1 left intact
    csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$

I tried the Docker method, but the incorrect content is as follows:

csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ edk2_docker echo hello
hello
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ edk2_docker edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /home/csp/edkrepo/nvidia-uefi-r35.2.1
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: Activating Python virtual environment.
nvidia: Building from tarball
nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named ‘encodings’

Current thread 0x00007ff4d799a740 (most recent call first):
edk2-nvidia/Silicon/NVIDIA/scripts/prepare_stuart.sh: line 49: 40 Aborted (core dumped) stuart_update ${STUART_UPDATE_OPTIONS} -c ${PLATFORM_BUILD}
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$

I just found there’s other user having the similar issue as yours, and resolved with internet issue.
Nx bootup failed after upgraded to Jetpack 5.1 - #28 by ringfjt

Or could you try to download the .zip from GitHub?

Yes,I can manually download it from Github,.
But is there a link? Where is the placement path?

You can choose branch to r35.2.1-updates , select Code → Download ZIP as following.

There will still be the same mistake.

csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ ls
Build edk2 edk2-non-osi edk2-nvidia-non-osi edk2-nvidia-r35.2.1-updates edk2-nvidia-r35.2.1-updates.zip edk2-nvidia.tar.gz edk2-platforms repo venv
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ mv edk2-nvidia-r35.2.1-updates edk2-nvidia
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ ls
Build edk2 edk2-non-osi edk2-nvidia edk2-nvidia-non-osi edk2-nvidia-r35.2.1-updates.zip edk2-nvidia.tar.gz edk2-platforms repo venv
csp@csp-ThinkPad-T580:~/edkrepo/nvidia-uefi-r35.2.1 [r35.2.1]$ edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /home/csp/edkrepo/nvidia-uefi-r35.2.1
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: Activating Python virtual environment.
nvidia: Building from tarball
nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Initial update of environment
UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl
WARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm
. Done
SECTION - Second pass update of environment
UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl
WARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm
. Done
ERROR - We were unable to successfully update 2 dependencies in environment
SECTION - Summary
ERROR - Error

Are you using standalone Ubuntu 18.04 as your host PC?

Do you have another host PC to check if it has the same issue?
I’ve verified cloning and building UEFI should work on a standalone Ubuntu 18.04.

Yes, and I have replaced several Ubuntu 18.04 and even Ubuntu 20.04 computers.But it will also prompt this error.
Below is the error log printed when I replaced my computer with a new one:

hluo@CSP-TEST43:~/edkrepo$
hluo@CSP-TEST43:~/edkrepo$
hluo@CSP-TEST43:~/edkrepo$
hluo@CSP-TEST43:~/edkrepo$ edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /cscd/hluo/edkrepo
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: Creating Python virtual environment in /cscd/hluo/edkrepo/venv…
Already using interpreter /usr/bin/python3
Using base prefix ‘/usr’
New python executable in /cscd/hluo/edkrepo/venv/bin/python3
Also creating executable in /cscd/hluo/edkrepo/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel…done.
nvidia: Installing required Python packages…
Collecting edk2-pytool-library==0.11.2
Downloading edk2_pytool_library-0.11.2-py3-none-any.whl (434 kB)
|████████████████████████████████| 434 kB 309 kB/s
Collecting edk2-pytool-extensions~=0.16.0
Downloading edk2_pytool_extensions-0.16.0-py3-none-any.whl (2.4 MB)
|████████████████████████████████| 2.4 MB 486 kB/s
Collecting edk2-basetools==0.1.24
Downloading edk2_basetools-0.1.24-py3-none-any.whl (1.3 MB)
|████████████████████████████████| 1.3 MB 562 kB/s
Collecting antlr4-python3-runtime==4.7.1
Downloading antlr4-python3-runtime-4.7.1.tar.gz (111 kB)
|████████████████████████████████| 111 kB 1.1 MB/s
Preparing metadata (setup.py) … done
Collecting pyyaml>=5.3.1
Downloading PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (603 kB)
|████████████████████████████████| 603 kB 1.6 MB/s
Collecting pefile>=2019.4.18
Downloading pefile-2023.2.7-py3-none-any.whl (71 kB)
|████████████████████████████████| 71 kB 21 kB/s
Building wheels for collected packages: antlr4-python3-runtime
Building wheel for antlr4-python3-runtime (setup.py) … done
Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.7.1-py3-none-any.whl size=140549 sha256=9b5ead90b16c226ac92019c042a8baa6054ad804b71c5fa69dc44bded34e94a6
Stored in directory: /cscd/hluo/.cache/pip/wheels/4c/8c/27/ca4c7300c0b5e1effa86a64c81d37b26d349e731358732bdd3
Successfully built antlr4-python3-runtime
Installing collected packages: pyyaml, pefile, edk2-pytool-library, antlr4-python3-runtime, edk2-pytool-extensions, edk2-basetools
Successfully installed antlr4-python3-runtime-4.7.1 edk2-basetools-0.1.24 edk2-pytool-extensions-0.16.0 edk2-pytool-library-0.11.2 pefile-2023.2.7 pyyaml-6.0
nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Initial update of environment
UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl
WARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm
. Done
SECTION - Second pass update of environment
UpdatingWARNING - [SDE] Failed to fetch NugetDependecy: mu_nasm@2.15.05: [Nuget] We failed to install this version 2.15.05 of mu_nasm
WARNING - [SDE] Failed to fetch NugetDependecy: edk2-acpica-iasl@20200717.0.0: [Nuget] We failed to install this version 20200717.0.0 of edk2-acpica-iasl
. Done
ERROR - We were unable to successfully update 2 dependencies in environment
SECTION - Summary
ERROR - Error
hluo@CSP-TEST43:~/edkrepo$

new-pc.log (126.0 KB)

In the same environment, I can use the docker method to complete compilation
I can even see the download of these two dependent prints.

Although I can now see the compiled image, I am a bit confused and don’t know why non-docker compilation methods cannot be downloaded.

hluo@CSCD-csp1:~/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1 [r35.2.1]$ ^C
hluo@CSCD-csp1:~/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1 [r35.2.1]$ ^C
hluo@CSCD-csp1:~/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1 [r35.2.1]$ edk2_docker edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: Activating Python virtual environment.
nvidia: Building from tarball
nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Initial update of environment
Updating… Done
SECTION - Updated/Verified 2 dependencies
SECTION - Second pass update of environment
Updating. Done
SECTION - Updated/Verified 2 dependencies
SECTION - Summary
PROGRESS - Success
nvidia: Building basetools.
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Summary
PROGRESS - Success
nvidia: building from workspace rooted at: /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: Activating Python virtual environment.
nvidia: Building DEBUG (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
INFO - Log Started: Monday, May 22, 2023 02:55AM
SECTION - Init SDE
DEBUG - — self_describing_environment.init()
DEBUG - Skipped directories specified = ()
DEBUG - — self_describing_environment.load_workspace()
DEBUG - Loading workspace: /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1
DEBUG - Including scopes: edk2-build, jetson, global-nix, global
DEBUG - — self_describing_environment._gather_env_files()
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/basetools_path_env.yaml to the environment with scope global
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/basetools_calling_path_env.yaml to the environment with scope global
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/BinWrappers/PosixLike/posix_path_env.yaml to the environment with scope global-nix
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Source/Python/basetool_tiano_python_path_env.yaml to the environment with scope global
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Source/C/bin/basetoolsbin_path_env.yaml to the environment with scope edk2-build
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/venv/lib/python3.9/site-packages/edk2basetools/basetool_tiano_python_path_env.yaml to the environment with scope global
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Bin/nasm_ext_dep.yaml to the environment with scope edk2-build
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/iasl_ext_dep.yaml to the environment with scope jetson
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Plugin/LinuxGcc5ToolChain/LinuxGcc5ToolChain_plug_in.yaml to the environment with scope global-nix
DEBUG - Adding descriptor /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Plugin/BuildToolsReport/BuildToolsReportGenerator_plug_in.yaml to the environment with scope global
DEBUG - — self_describing_environment.update_simple_paths()
DEBUG - — self_describing_environment.update_extdep_paths()
DEBUG - Verify ‘edk2-acpica-iasl’ returning ‘True’.
INFO - Computing path for edk2-acpica-iasl located at /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep on Host(os=‘Linux’, arch=‘x86’, bit=‘64’)
DEBUG - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep/Linux-x86-64 does not exist
INFO - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep/Linux-x86 was found!
DEBUG - Verify ‘mu_nasm’ returning ‘True’.
INFO - Computing path for mu_nasm located at /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Bin/mu_nasm_extdep on Host(os=‘Linux’, arch=‘x86’, bit=‘64’)
INFO - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Bin/mu_nasm_extdep/Linux-x86-64 was found!
DEBUG - — self_describing_environment.report_extdep_version()
DEBUG - Verify ‘edk2-acpica-iasl’ returning ‘True’.
INFO - Computing path for edk2-acpica-iasl located at /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep on Host(os=‘Linux’, arch=‘x86’, bit=‘64’)
DEBUG - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep/Linux-x86-64 does not exist
INFO - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep/Linux-x86 was found!
DEBUG - Setting up version aggregator
DEBUG - Verify ‘mu_nasm’ returning ‘True’.
INFO - Computing path for mu_nasm located at /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Bin/mu_nasm_extdep on Host(os=‘Linux’, arch=‘x86’, bit=‘64’)
INFO - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Bin/mu_nasm_extdep/Linux-x86-64 was found!
DEBUG - Verify ‘edk2-acpica-iasl’ returning ‘True’.
INFO - Computing path for edk2-acpica-iasl located at /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep on Host(os=‘Linux’, arch=‘x86’, bit=‘64’)
DEBUG - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep/Linux-x86-64 does not exist
INFO - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2-nvidia/Platform/NVIDIA/Jetson/edk2-acpica-iasl_extdep/Linux-x86 was found!
DEBUG - Verify ‘edk2-acpica-iasl’ returning ‘True’.
DEBUG - Verify ‘mu_nasm’ returning ‘True’.
INFO - Computing path for mu_nasm located at /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Bin/mu_nasm_extdep on Host(os=‘Linux’, arch=‘x86’, bit=‘64’)
INFO - /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Bin/mu_nasm_extdep/Linux-x86-64 was found!
DEBUG - Verify ‘mu_nasm’ returning ‘True’.
SECTION - Loading Plugins
DEBUG - Loading Plugin from /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Plugin/LinuxGcc5ToolChain/LinuxGcc5ToolChain.py
DEBUG - Loading Plugin from /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Plugin/BuildToolsReport/BuildToolsReportGenerator.py
SECTION - Start Invocable Tool
INFO - Running Python version: sys.version_info(major=3, minor=9, micro=5, releaselevel=‘final’, serial=0)
INFO - wheel version: 0.34.2
INFO - setuptools version: 44.0.0
INFO - PyYAML version: 6.0
INFO - pkg-resources version: 0.0.0
INFO - pip version: 20.0.2
INFO - pefile version: 2023.2.7
INFO - edk2-pytool-library version: 0.11.2
INFO - edk2-pytool-extensions version: 0.17.1
INFO - edk2-basetools version: 0.1.24
INFO - antlr4-python3-runtime version: 4.7.1
SECTION - Loading Plugins
DEBUG - Loading Plugin from /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Plugin/LinuxGcc5ToolChain/LinuxGcc5ToolChain.py
DEBUG - Loading Plugin from /cscd/hluo/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1/edk2/BaseTools/Plugin/BuildToolsReport/BuildToolsReportGenerator.py
SECTION - Kicking off build
PROGRESS - Start time: 2023-05-22 02:55:29.215602
DEBUG - Logging all Registered Helper Functions:
DEBUG - Finished logging 0 functions
PROGRESS - Setting up the Environment
DEBUG - Setting env from SettingsManager
INFO - Cmd to run is: git -C edk2-nvidia describe --always --dirty
INFO - ------------------------------------------------
INFO - --------------Cmd Output Starting---------------
INFO - ------------------------------------------------
INFO - 26fc186
INFO - ------------------------------------------------
ellipsis…
ellipsis…
ellipsis…
ellipsis…
ellipsis…
ellipsis…
ellipsis…
ellipsis…
ellipsis…

hluo@CSCD-csp1:~/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1 [r35.2.1]$ ls
1.sh Build Conf edk2 edk2-non-osi edk2-nvidia edk2-nvidia-non-osi edk2-platforms images repo reports venv
hluo@CSCD-csp1:~/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1 [r35.2.1]$ ls images/
AcpiBoot_Jetson_DEBUG.dtbo BootOrderEmmc_Jetson_RELEASE.dtbo BootOrderPxe_Jetson_DEBUG.dtbo BootOrderUfs_Jetson_RELEASE.dtbo L4TConfiguration_Jetson_DEBUG.dtbo
AcpiBoot_Jetson_RELEASE.dtbo BootOrderHttp_Jetson_DEBUG.dtbo BootOrderPxe_Jetson_RELEASE.dtbo BootOrderUsb_Jetson_DEBUG.dtbo L4TConfiguration_Jetson_RELEASE.dtbo
BOOTAA64_Jetson_DEBUG.efi BootOrderHttp_Jetson_RELEASE.dtbo BootOrderSata_Jetson_DEBUG.dtbo BootOrderUsb_Jetson_RELEASE.dtbo uefi_Jetson_DEBUG.bin
BOOTAA64_Jetson_RELEASE.efi BootOrderNvme_Jetson_DEBUG.dtbo BootOrderSata_Jetson_RELEASE.dtbo builddir_Jetson_DEBUG.txt uefi_Jetson_RELEASE.bin
BootOrderEmmc_Jetson_DEBUG.dtbo BootOrderNvme_Jetson_RELEASE.dtbo BootOrderUfs_Jetson_DEBUG.dtbo builddir_Jetson_RELEASE.txt
hluo@CSCD-csp1:~/jeston_orin/my_build/edk2-nvidia-uefi-build-with-docker/nvidia-uefi-r35.2.1 [r35.2.1]$

I have no idea about this because we’ve verified it worked on many host machine.
Maybe you need to provide the detailed steps you did from setup the environment for a new host PC.

Okay, no matter what, thank you very much for your support and assistance in the past few days.
Your response was very timely, thank you very much!
I won’t solve this problem for now because docker can be used.
In the future, I will compile it using docker way.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.