Hello:
I encountered a problem while compiling UEFI source code.
$ edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /home/du/Work/Orin/jetPack_5_1/UEFI/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).
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
Traceback (most recent call last):
File “edk2/BaseTools/Edk2ToolsBuild.py”, line 177, in
main()
File “edk2/BaseTools/Edk2ToolsBuild.py”, line 173, in main
Edk2ToolsBuild().Invoke()
File “/home/du/Work/Orin/jetPack_5_1/UEFI/edkrepo/nvidia-uefi/venv/lib/python3.6/site-packages/edk2toolext/base_abstract_invocable.py”, line 146, in Invoke
retcode = self.Go()
File “edk2/BaseTools/Edk2ToolsBuild.py”, line 148, in Go
raise Exception(“Failed to build.”)
Exception: Failed to build.
$ mono --version
Mono JIT compiler version 6.12.0.182 (tarball Tue Jun 14 22:29:01 UTC 2022)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)
Hi hanyu.du,
It seems the error causing from build environment.
Do you refer to the following instruction to set it up w/o any error?
Build without docker · NVIDIA/edk2-nvidia Wiki · GitHub
Hello Kevin,
"In this way of wiki, I cannot download, I always cannot pull the github code, or I make an error halfway through the download. error log:
$ edkrepo clone nvidia-uefi NVIDIA-Jetson main
Syncing the global manifest repository: /home/dhy/.edkrepo/edk2-edkrepo-manifest-main
Syncing the global manifest repository: /home/dhy/.edkrepo/nvidia
The git command: git pull -v origin failed to complete successfully with the following errors.
stderr: ‘fatal: unable to access ‘GitHub - NVIDIA/edk2-edkrepo-manifest: NVIDIA fork of tianocore/edk2-edkrepo-manifest ’: gnutls_handshake() failed: The TLS connection was non-properly terminated.’
$ edkrepo clone nvidia-uefi NVIDIA-Jetson main
Syncing the global manifest repository: /home/dhy/.edkrepo/edk2-edkrepo-manifest-main
Syncing the global manifest repository: /home/dhy/.edkrepo/nvidia
Verifying the global manifest repository entry for project: NVIDIA-Jetson
Cloning from: GitHub - NVIDIA/edk2: NVIDIA fork of tianocore/edk2
Resolving deltas: 100% (259012/259012), done.
The git command: git fetch -v origin refs/notes/:refs/notes/ failed to complete successfully with the following errors.
stderr: ‘fatal: unable to access ‘GitHub - NVIDIA/edk2: NVIDIA fork of tianocore/edk2 ’: gnutls_handshake() failed: Error in the pull function.’
This may be due to the github network.".
I’ve tried this method for many days, but it’s always interrupted.
Does NVIDIA provide other ways to download UEFI
So I tried downloading it separately:
git clone GitHub - NVIDIA/edk2: NVIDIA fork of tianocore/edk2
git clone GitHub - NVIDIA/edk2-platforms: NVIDIA fork of tianocore/edk2-platforms
git clone GitHub - NVIDIA/edk2-non-osi: NVIDIA fork of tianocore/edk2-non-osi
git clone GitHub - NVIDIA/edk2-nvidia: NVIDIA EDK2 platform support
git clone GitHub - NVIDIA/edk2-non-osi: NVIDIA fork of tianocore/edk2-non-osi
git clone GitHub - NVIDIA/open-gpu-kernel-modules: NVIDIA Linux open GPU kernel module source
edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
This should work. Do you configure edkrepo
correctly?
And you may download the codeline according to you current Jetpack version:
$ edkrepo clone <workspace_root> NVIDIA-Jetson <combo>
Combos · NVIDIA/edk2-nvidia Wiki · GitHub
Actually, you could also download it as .zip
file
GitHub - NVIDIA/edk2-nvidia: NVIDIA EDK2 platform support
Select Branch → Code → Local → Download ZIP
Hello Kevin,
Thank you for your reply. I think it should be my network problem
system
Closed
April 25, 2023, 7:59am
9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.