Building Torizon for Jetson with Yocto

I am trying to build Torizon with Yocto targeting a Jetson Orin Nano Dev Kit. I am following this blog:

Next I tried to add the layers from here:

And I am planning to build the torizon-docker. Unfortunately the build is failing and I am trying to fix the build errors. In the meantime, any hints? Is that the right approach and expected to work? The build is failing because of:

\par \cf5\highlight0 ERROR\cf0 : \cf6 edk2-firmware-tegra-36.4.0-r0 do_patch: QA Issue: Fuzz detected:\cf1\highlight2

1 Like

Some more things in markdown on what I did:

Follow the steps as outlined in the blog here

You can download the BSP and RFS directly from

Yocto Scarthgap Release


git clone --single-branch -b scarthgap git://git.yoctoproject.org/poky.git

Clone Layers


git clone --single-branch -b scarthgap https://github.com/OE4T/meta-tegra.git
git clone --single-branch -b scarthgap https://github.com/openembedded/meta-openembedded.git

Initialize the build environment

cd ~/Documents/yocto-jetson-ros-tutorial/poky
source oe-init-build-env

Edit bblayers.conf

POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/eli/Documents/yocto-tutorial/poky/meta \
  /home/eli/Documents/yocto-tutorial/poky/meta-poky \
  /home/eli/Documents/yocto-tutorial/poky/meta-yocto-bsp \
  /home/eli/Documents/yocto-tutorial/sources/meta-tegra \
  /home/eli/Documents/yocto-tutorial/sources/meta-openembedded/meta-oe \
  /home/eli/Documents/yocto-tutorial/sources/meta-openembedded/meta-python \
  /home/eli/Documents/yocto-tutorial/sources/meta-openembedded/meta-networking \
  /home/eli/Documents/yocto-tutorial/sources/meta-openembedded/meta-filesystems \
  /home/eli/Documents/yocto-torizon/meta-toradex-torizon \
  /home/eli/Documents/yocto-torizon/meta-updater \
  /home/eli/Documents/yocto-torizon/meta-virtualization \
  /home/eli/Documents/yocto-tutorial/poky/build/workspace \
  "

Edit bblayers.conf

Those are the line that I have uncommented.

MACHINE ?= "jetson-orin-nano-devkit"
DISTRO ?= "common-torizon"
PACKAGE_CLASSES ?= "package_deb"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
IMAGE_CLASSES += "image_types_tegra"
IMAGE_FSTYPES = "tegraflash tar.gz"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"

PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"

Start Yocto Build!

bitbake torizon-docker

1 Like