I operate according to the web:Jetpack 5.0.2 UEFI source code is error!
The steps are as follows:
$ mkdir edkrepo
$ cd edkrepo/
$ wget https://github.com/tianocore/edk2-edkrepo/releases/download/edkrepo-v2.1.2/edkrepo-2.1.2.tar.gz
$ tar xpvf edkrepo-2.1.2.tar.gz
$ sudo ./install.py
$ edkrepo manifest-repos add nvidia GitHub - NVIDIA/edk2-edkrepo-manifest: NVIDIA fork of tianocore/edk2-edkrepo-manifest main nvidia
$ edkrepo clone nvidia-uefi NVIDIA-Jetson jetson-r35.1
$ cd nvidia-uefi/
$ cat edk2-nvidia/Platform/NVIDIA/Jetson/Build.md
$ edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
compiling uefi and report an error. The error message is as follows:
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/lulu/works/project/adu506/orin/uefi/nvidia-uefi/venv/lib/python3.8/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.
Could you share the full build log as attachment?
$ ./build.sh
nvidia: building from workspace rooted at: /home/lulu/works/project/adu506/orin/uefi_error
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
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/lulu/.local/lib/python3.8/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.
Hi 305248199 ,
Please follow below page steps to install mono and clean build again.
have install mono~~
$ 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)
It is possible to compile the cs code file according to the web (https://linuxize.com/post/how-to-install-mono-on-ubuntu-18-04 )test, and it can be run
Hi 305248199 ,
Please run again with step1-5 from installing Mono page .
Then run build command again.
If still got fail, please upload complete fail log.
The problem is still the same
Could you directly check your Edk2ToolsBuild.py line 148 and see which one is giving your ret !=0?
Edk2ToolsBuild.py line 148 source code is :
144 elif self.tool_chain_tag.lower().startswith(“gcc”):
145 cpu_count = self.GetCpuThreads()
146 ret = RunCmd(“make”, f"-C . -j {cpu_count}", workingdir=shell_env.get_shell_var(“EDK_TOOLS_PATH”))
147 if ret != 0:
148 raise Exception(“Failed to build.”)
build log:
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).
It is configured.
export EDK_TOOLS_PATH=/home/lulu/works/project/adu506/orin/uefi_error/edk2/BaseTools
Are there fewer directories after cloning?
Build edk2 edk2-edkrepo edk2-nvidia venv
thk!!!
have already been solved
system
Closed
November 2, 2022, 5:00am
15
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.