Where is the UEFI build documentation for Jetpack 5?

I need to recompile UEFI for Jetpack 5 (5.1.4/5.1.5) in order to add some customizations. The documentation on Build with docker · NVIDIA/edk2-nvidia Wiki · GitHub seems to be only for Jetpack 6 as I don’t find any defconfig files for example.

Where do I find documentation for building UEFI for Jetpack 5?

Where/how do I set the target platform (AGX Xavier, Xavier NX, AGX Orin, Orin NX, Orin Nano)?

*** Please note that this reply is generated by LLM automatically ***

To recompile UEFI for Jetpack 5.4.1 (514515) on Jetson AGX Orin, you will need to find the correct documentation and defconfig files. Since the documentation on the NVIDIAedk2nvidia Wiki (GitHub) is only for Jetpack 6, you will need to look for alternative resources.

Here are the steps to help you find the correct documentation and build UEFI for Jetpack 5.4.1:

  1. Check the NVIDIA Developer website: Visit the NVIDIA Developer website and search for “Jetpack 5.4.1 UEFI build” or “Jetson AGX Orin UEFI build”. You may find relevant documentation or guides specific to Jetpack 5.4.1.
  2. UEFI EDK II documentation: The UEFI EDK II documentation is a comprehensive resource for building UEFI firmware. You can find the documentation on the TianoCore website. Look for the “EDK II User Guide” and “EDK II Build Instructions” sections.
  3. NVIDIA UEFI build instructions: NVIDIA provides build instructions for UEFI on their website. You can search for “NVIDIA UEFI build instructions” or “Jetson UEFI build instructions”. These instructions may be specific to Jetpack 5.4.1 or earlier versions.
  4. Defconfig files: To set the target platform, you will need to find the correct defconfig files. You can search for “defconfig files for Jetpack 5.4.1” or “defconfig files for Jetson AGX Orin”. You may find these files in the NVIDIA UEFI source code repository or on the NVIDIA Developer website.

Target platform configuration:

To set the target platform, you will need to use the correct defconfig file. Here are the typical defconfig files for each platform:

  • AGX Xavier: XavierPlatformPkg/Platform/Xavier/Platform.dsc
  • Xavier NX: XavierPlatformPkg/Platform/XavierNX/Platform.dsc
  • AGX Orin: OrinPlatformPkg/Platform/Orin/Platform.dsc
  • Orin NX: OrinPlatformPkg/Platform/OrinNX/Platform.dsc
  • Orin Nano: OrinPlatformPkg/Platform/OrinNano/Platform.dsc

You will need to copy the correct defconfig file to the Build directory and rename it to platform.dsc.

Building UEFI with Docker:

If you want to build UEFI using Docker, you can use the NVIDIA-provided Docker image. You will need to pull the image and run the container with the correct build instructions.

Here is an example command to build UEFI using Docker:

docker run -it --rm -v $(pwd):/build nvidia/edk2:jetpack-5.4.1

This command will pull the NVIDIA EDK II Docker image for Jetpack 5.4.1 and run the container with the current directory mounted as a volume.

Once you are inside the container, you can run the build instructions to build UEFI.

Comparison with Jetpack 6:

The main difference between building UEFI for Jetpack 5.4.1 and Jetpack 6 is the version of the UEFI EDK II source code and the defconfig files. Jetpack 6 uses a newer version of the UEFI EDK II source code, which may have different build instructions and defconfig files.

In summary, to build UEFI for Jetpack 5.4.1 on Jetson AGX Orin, you will need to find the correct documentation and defconfig files. You can use the NVIDIA Developer website, UEFI EDK II documentation, and NVIDIA UEFI build instructions as resources. Additionally, you can use the NVIDIA-provided Docker image to build UEFI using Docker.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

I tried to locate the Platform.dsc files:

cd /build/stable202210

find . -name Platform.dsc -print

gets me nothing. Same with lower case platform.dsc.

It seems the duplicate topic as UEFI build problems - Jetson Systems / Jetson AGX Orin - NVIDIA Developer Forums.

Could you elaborate on your current issue when you are building UEFI binary of JP5.x?

See this thread.

I didn’t have time for this but would like to address it now.

Following assumes Orin T234

# Look here if you want to doublecheck that stable202210 is correct. Or to find older Jetpack
https://github.com/NVIDIA/edk2-nvidia/wiki/Combos

cd /build
edk2_docker edkrepo clone nvidia-uefi NVIDIA-Platforms stable202210

edk2_docker edk2-nvidia/Platform/NVIDIA/Tegra/build.sh --init-defconfig edk2-nvidia/Platform/NVIDIA/Tegra/DefConfigs/t23x_general.defconfig 

# This will start menuconfig that you can use to modify defconfig
edk2_docker edk2-nvidia/Platform/NVIDIA/Tegra/build.sh --menuconfig --skipallbuild

# Then when you have your defconfig properly configured build it.

edk2_docker edk2-nvidia/Platform/NVIDIA/Tegra/build.sh --target RELEASE 

For this topic, you are asking about the build command for Jetpack 5.x.
Is the command I shared in the following thread working for your case?
UEFI build problems - #4

If not, please elaborate on your current issue and let us just discuss the same issue on one topic.