ModuleNotFoundError: No module named 'edk2toolext' when building UEFI

Environment:

  • OS: Ubuntu 20.04 WSL2
  • Git: 2.25.1
  • Python: 3.8.10
  • JetPack: 5.1.5

Steps:

  1. git clone --recursive GitHub - NVIDIA/edk2-nvidia: NVIDIA EDK2 platform support
  2. cd edk2-nvidia && git checkout r35.5.0
  3. python3 Platform/NVIDIA/Jetson/PlatformBuild.py --release

Error:
ModuleNotFoundError: No module named ‘edk2toolext’

Checked:
ls edk2/BaseTools/Source/Python/edk2toolext/

No such file or directory

Questions:

  • Is edk2toolext supposed to be in the git submodule?
  • Do I need to pip install edk2-basetools separately?

Hi @3469481847, welcome to the NVIDIA developer forums.

Can you please specify your Jetson platform? Then i can refer you to the topic experts.

Thanks!

Hi, thanks for the response.

My platform is Jetson Orin Nano 8GB Developer Kit (P3767-0005), with JetPack 5.1.5 and L4T R35.5.0.

I’m trying to build UEFI from source (tag r35.5.0) to customize the boot logo, but I get ModuleNotFoundError: No module named 'edk2toolext' when running python3 Platform/NVIDIA/Jetson/PlatformBuild.py --release.

I’ve already tried git clone --recursive and git submodule update --init --recursive, but edk2/BaseTools/Source/Python/edk2toolext/ does not exist.

Is edk2toolext supposed to be part of the edk2 submodule, or do I need to install it separately via pip?

Any guidance would be appreciated.

Thanks! I moved your post to the dedicated Orin Nano category. I am sure they will be able to help.

Hi 3469481847,

We suggest using standalone Ubuntu host PC to develop and build the source.

Please use the following command(i.e. edkrepo) to sync the source instead.

$ edk2_docker edkrepo clone nvidia-uefi-r35.5.0 NVIDIA-Platforms r35.5.0