Skip to content
Jake Garver edited this page Sep 6, 2022 · 14 revisions

Building UEFI for NVIDIA Jetson

UEFI for NVIDIA Jetson can be built using the following instructions.

In these instructions, we'll first create a workspace using edkrepo. Then we'll run the build inside the workspace.

Supported OS

These instructions have been verified on Ubuntu 18.x and Ubuntu 20.x. Other operating systems may work, but they have not been tested. Ubuntu 16.x is known to not work.

Install edkrepo

To create the workspace and clone the source, we use edkrepo. It must be installed before proceeding. It is recommended to use a release distribution.

Releases of edkrepo can be found at: https://github.com/tianocore/edk2-edkrepo/releases

For detailed installation steps, refer to: https://github.com/tianocore/edk2-edkrepo

Briefly, to install edkrepo v2.1.2 (use a newer version, if available):

sudo apt-get install git python3 python3-setuptools python3-pip
mkdir edkrepo
cd edkrepo
wget https://github.com/tianocore/edk2-edkrepo/releases/download/edkrepo-v2.1.2/edkrepo-2.1.2.tar.gz
tar xvf edkrepo-2.1.2.tar.gz
sudo ./install.py --user ${USER}
cd ..

Also, after the installation, make sure the current user owns edkrepo's configuration files:

sudo chown -R ${USER}. ~/.edkrepo

Configure edkrepo

edkrepo uses manifests to build workspaces and manifests are fetched from repositories. To build an NVIDIA workspace, edkrepo must first be configured with NVIDIA's manifest repository.

Configure edkrepo with NVIDIA's manifest repo:

edkrepo manifest-repos add nvidia https://github.com/NVIDIA/edk2-edkrepo-manifest.git main nvidia

Create workspace

Now, edkrepo can be used to create workspaces for NVIDIA platforms. This is done using the clone command. The clone command needs to know where to create the workspace, what project to use, and which combination to sync.

For example:

edkrepo clone nvidia-uefi NVIDIA-Jetson rel-35

This will create a workspace in nvidia-uefi using the rel-35 combination from the NVIDIA-Jetson project.

Build UEFI

To build a platform, change directory into the workspace and follow the instructions in the platform's Build.md. For example, to read the instructions for Jetson:

cd nvidia-uefi
more edk2-nvidia/Platform/NVIDIA/Jetson/Build.md
# Follow instructions in Build.md
Clone this wiki locally