UEFI build error

Hello, friends:
I met a problem when I tried to build UEFI, when using

edk2-nvidia/Platform/NVIDIA/Jetson/build.sh

to build, the following error occured.

It seems as same as this question below, but I couldn’t figure out how this friend solve it.
https://forums.developer.nvidia.com/t/how-to-change-the-boot-logo-on-xaviernx-on-jp5-1-1/254923/5

And I retried the shcedule, it shows as follows, just like above link

nvidia: building from workspace rooted at: /home/csp/nvidia/uefi_lxh/edkrepo/nvidia-uefi
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gcc.
nvidia: Activating Python virtual environment.
nvidia: Building from tarball
nvidia: Updating build environment (edk2-nvidia/Platform/NVIDIA/Jetson/PlatformBuild.py).
edk2-nvidia/Silicon/NVIDIA/scripts/prepare_stuart.sh: line 49: stuart_update: command not found

Hi 854053437,

It seems the build environment issue.

Are you using standalone Ubuntu 18.04 or 20.04 as your host PC to build UEFI?

Have you referred to the following instruction step-by-step to install required tool before building the UEFI?
Build without docker · NVIDIA/edk2-nvidia Wiki (github.com)

Do you hit any error during cloning the source?
Please also check you network access.

I used Ubuntu 18.04
I retried the instruction step-by-step but due to the net work I can not use

edkrepo manifest-repos add nvidia https://github.com/NVIDIA/edk2-edkrepo-manifest.git main nvidia
Error: A manifest repository already exists with name: nvidia

edkrepo clone nvidia-uefi NVIDIA-Platforms r35.2.1
The git command: git pull -v origin failed to complete successfully with the following errors.

stderr: 'fatal: unable to update url base from redirection:
  asked for: https://github.com/tianocore/edk2-edkrepo-manifest.git/info/refs?service=git-upload-pack
   redirect: http://10.2.201.101:80/ac_portal/proxy.html?template=20230421230319&tabs=pwd&vlanid=0&_ID_=0&switch_url=&url=https://github.com/tianocore/edk2-edkrepo-manifest.git/info/refs?service=git-upload-pack&controller_type=&mac=00-09-0f-09-1a-06'

to create the work space
so I download these zip file to create it
edk2-nvidia、edk2、edk2-platforms、edk2-non-osi、edk2-nvidia-non-osi、edk2-edkrepo-manifest

Hello, I change the internet and get the workspace
But after use this cmd

bash edk2-nvidia/Platform/NVIDIA/Jetson/build.sh

it show errors as follows


nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gcc.
nvidia: Creating Python virtual environment in /home/csp/nvidia_source/uefi_lxh/nvidia-uefi-r35.2.1/venv...
Running virtualenv with interpreter /usr/local/bin/python3
Using base prefix '/usr/local'
/usr/lib/python3/dist-packages/virtualenv.py:1086: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
New python executable in /home/csp/nvidia_source/uefi_lxh/nvidia-uefi-r35.2.1/venv/bin/python3
Also creating executable in /home/csp/nvidia_source/uefi_lxh/nvidia-uefi-r35.2.1/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
nvidia: Installing required Python packages...
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting edk2-pytool-library==0.11.2 (from -r edk2/pip-requirements.txt (line 15))
  Downloading http://mirrors.aliyun.com/pypi/packages/62/71/941d694cf32caf0bd95d0f944d4624002cfebc00d2d7baf46143a37aa154/edk2_pytool_library-0.11.2-py3-none-any.whl (434 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 434.9/434.9 kB 1.8 MB/s eta 0:00:00
Collecting edk2-pytool-extensions~=0.16.0 (from -r edk2/pip-requirements.txt (line 16))
  Downloading http://mirrors.aliyun.com/pypi/packages/08/88/bac1079393e992d91e8789abbea73bc751b57cbf4be384a7b397a2bae861/edk2_pytool_extensions-0.16.0-py3-none-any.whl (2.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 6.2 MB/s eta 0:00:00
Collecting edk2-basetools==0.1.24 (from -r edk2/pip-requirements.txt (line 17))
  Downloading http://mirrors.aliyun.com/pypi/packages/d4/d5/279a57310100316c9c16a255e3e5f8208e733107868921eb32aab336ae03/edk2_basetools-0.1.24-py3-none-any.whl (1.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 5.6 MB/s eta 0:00:00
Collecting antlr4-python3-runtime==4.7.1 (from -r edk2/pip-requirements.txt (line 18))
  Downloading http://mirrors.aliyun.com/pypi/packages/3e/96/aba01b2948ec67f237cd387c022820835ae0d8db5cab4bd404b351660b5e/antlr4-python3-runtime-4.7.1.tar.gz (111 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 111.4/111.4 kB 860.6 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pyyaml>=5.3.1 (from edk2-pytool-extensions~=0.16.0->-r edk2/pip-requirements.txt (line 16))
  Downloading http://mirrors.aliyun.com/pypi/packages/7d/39/472f2554a0f1e825bd7c5afc11c817cd7a2f3657460f7159f691fbb37c51/PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (738 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 738.9/738.9 kB 3.4 MB/s eta 0:00:00
Collecting pefile>=2019.4.18 (from edk2-pytool-extensions~=0.16.0->-r edk2/pip-requirements.txt (line 16))
  Downloading http://mirrors.aliyun.com/pypi/packages/55/26/d0ad8b448476d0a1e8d3ea5622dc77b916db84c6aa3cb1e1c0965af948fc/pefile-2023.2.7-py3-none-any.whl (71 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.8/71.8 kB 867.9 kB/s eta 0:00:00
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=140528 sha256=d5416bf3d83e22df2738d012e834aeadb389fa3f1e82a551e794fc84a49b8c64
  Stored in directory: /home/csp/.cache/pip/wheels/27/74/fa/fc604ad18c732c101ec03ee21b4941d792bb6a33302cfce016
Successfully built antlr4-python3-runtime
Installing collected packages: edk2-pytool-library, antlr4-python3-runtime, pyyaml, pefile, edk2-basetools, edk2-pytool-extensions
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.1
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting edk2-pytool-extensions==0.17.1
  Downloading http://mirrors.aliyun.com/pypi/packages/1a/29/e01fd27299c9720bd1f3db098087a7148e3eaf9649099b4f2b9851362058/edk2_pytool_extensions-0.17.1-py3-none-any.whl (2.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 7.4 MB/s eta 0:00:00
Requirement already satisfied: pyyaml>=5.3.1 in ./venv/lib/python3.9/site-packages (from edk2-pytool-extensions==0.17.1) (6.0.1)
Requirement already satisfied: edk2-pytool-library>=0.11.0 in ./venv/lib/python3.9/site-packages (from edk2-pytool-extensions==0.17.1) (0.11.2)
Requirement already satisfied: pefile>=2019.4.18 in ./venv/lib/python3.9/site-packages (from edk2-pytool-extensions==0.17.1) (2023.2.7)
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: 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

Do you know how to fix it?

I fix it by updating the mono version,seems the version I installed can not updating environment dependencies
Hope it will help

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