Building Torizon OS¶
Torizon OS builds in two flavors — Torizon (on Toradex hardware) and
Common Torizon (on third-party BSPs). Each can be built either with the
repo tool and Toradex's manifest (the recommended path) or by cloning the
layers manually. Toradex's own layers — meta-torizon and meta-torizon-bsp —
are built from the master branch.
Torizon (on Toradex hardware)¶
Using repo (recommended)¶
$ mkdir torizon; cd torizon
$ repo init -u https://git.toradex.com/toradex-manifest.git -b master -m torizon/default.xml
$ repo sync -j 10
Then set up the environment and build:
$ MACHINE=<machine> . setup-environment
$ bitbake torizon-docker
For the full walkthrough, see the knowledge-base article: https://developer.toradex.com/knowledge-base/build-torizoncore
Manual clone¶
-
Clone the Torizon layers (on
master) and their dependencies:$ git clone https://github.com/torizon/meta-torizon.git -b master $ git clone https://github.com/torizon/meta-torizon-bsp.git -b master $ git clone https://github.com/uptane/meta-updater.git -b master $ git clone https://git.yoctoproject.org/git/meta-virtualization -b masterYou also need the Toradex BSP layers (
meta-toradex-bsp-common,meta-toradex-nxp/-ti, poky, meta-openembedded, …). The full set is easiest to obtain via the manifest above — see the knowledge-base article for the complete list. -
Source the
setup-environmentscript shipped inmeta-torizon-bsp/scripts(the BSP layer owns the build tooling and machine selection). - Add both
meta-torizonandmeta-torizon-bsp(and their dependencies) toconf/bblayers.conf, set yourMACHINEinconf/local.conf, and setDISTRO='torizon'. - Build an image:
bitbake torizon-docker(ortorizon-minimal).
Common Torizon (on third-party BSPs)¶
Start with the machine-specific guide for your board — each one lists the exact manifest and flashing steps. The generic paths are below.
Using repo (recommended)¶
$ mkdir common-torizon; cd common-torizon
$ repo init -u https://git.toradex.com/toradex-manifest.git -b master -m common-torizon/<vendor>/default.xml
$ repo sync -j 10
Replace <vendor> with your SoC vendor (e.g. nxp, ti, x86); see the
per-vendor guide for the precise manifest.
Manual clone¶
-
Clone the Torizon layers (on
master) and their dependencies:$ git clone https://github.com/torizon/meta-torizon.git -b master $ git clone https://github.com/torizon/meta-torizon-bsp.git -b master $ git clone https://github.com/uptane/meta-updater.git -b master $ git clone https://git.yoctoproject.org/git/meta-virtualization -b masterplus your board's vendor BSP layers (see the per-vendor guide).
-
Source
meta-torizon-bsp/scripts/setup-environment(the BSP layer owns the build tooling and machine selection). - Add both
meta-torizonandmeta-torizon-bsp(and their dependencies) toconf/bblayers.conf, set yourMACHINE, and setDISTRO='common-torizon'. -
Build one of the available images:
torizon-dockertorizon-minimaltorizon-podman(experimental)