Jetson Linux r36.3 UEFI编译环境

我的编译主机是x64的Ubuntu 22.04,我需要构建非docker环境的UEFI(r36.3)编译环境。按照 在没有 docker 的情况下构建 ·NVIDIA/edk2-nvidia 维基 ·GitHub上的说明,我的步骤如下:

  1. sudo apt-get install git python3 python3-setuptools python3-pip
  2. mkdir edkrepo
  3. wget https://github.com/tianocore/edk2-edkrepo/releases/download/edkrepo-v3.2.2/edkrepo-3.2.2.tar.gz
    (edkrepo最新release版本是v3.2.2)
  4. tar xvf edkrepo-3.2.2.tar.gz
  5. sudo ./install.py --user ${USER}
  6. cd …
  7. sudo chown -R ${USER}. ~/.edkrepo
  8. edkrepo manifest-repos add nvidia GitHub - NVIDIA/edk2-edkrepo-manifest: NVIDIA fork of tianocore/edk2-edkrepo-manifest main nvidia
  9. edkrepo clone nvidia-uefi NVIDIA-Platforms main
  10. cd nvidia-uefi
  11. edk2-nvidia/Platform/NVIDIA/Jetson/build.sh

以上所有命令都是在root用户下执行的,目前有两个问题:
问题1:我需要构建r36.3的UEFI编译环境,上面步骤8和步骤9是不是需要变更?
问题2:执行步骤11时,报错如下(1-10步骤都是成功的):
root@weiyf:/home/weiyf/桌面/git/nvidia-uefi# edk2-nvidia/Platform/NVIDIA/Jetson/build.sh
nvidia: building from workspace rooted at: /home/weiyf/桌面/git/nvidia-uefi
nvidia: found command: python3.
nvidia: found command: virtualenv.
nvidia: found command: mono.
nvidia: found command: aarch64-linux-gnu-gcc.
nvidia: found Python 3.10 or later.
nvidia: Creating Python virtual environment in /home/weiyf/桌面/git/nvidia-uefi/venv…
created virtual environment CPython3.10.12.final.0-64 in 141ms
creator CPython3Posix(dest=/home/weiyf/桌面/git/nvidia-uefi/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
added seed packages: pip==22.0.2, setuptools==59.6.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
edk2-nvidia/Silicon/NVIDIA/scripts/prepare_stuart.sh: 行 29: venv/bin/activate: 没有那个文件或目录

Hi weiyf1,

是,請使用以下指令下載r36.3 source

$ edkrepo clone test NVIDIA-Platforms uefi-202402.1

請確認以下套件都已正確安裝在你的環境
Build without docker · NVIDIA/edk2-nvidia Wiki · GitHub

Kevin感谢你的支持,已经定位到问题是ubuntu22.04没有安装或更新python的virtualenv环境,在执行pip install --upgrade virtualenv后可以正常编译通过。