Targets - axxia/axxia_yocto_linux_4.9 GitHub Wiki

Overview

Bitbake is the build tool provided by Yocto; it is similar to using make. There are many command line options available, but the most basic usage is simply a single target. Before using any bitbake commands, you must source (not execute!) the oe-init-build-env shell script and be in the <build> directory.

The build name is arbitrary. The target name must be one of the following.

  • axxiapowerpc - Axxia 3000 PPC Mobile & Enterprise Processors family - Elpaso, Galveston
  • axxiaarm - Axxia 5500 ARM Mobile & Enterprise Processors family - Amarillo
  • axxiaarm64 - Axxia 5600 ARM Mobile & Enterprise Processors family - X9, Lionfish

NOTE: Machines are divided by architecture. By building Linux for axxiaarm machine (e.g.), you will build binaries for all available ARM targets.

As described in the previous section, Environment, conf/bblayers.conf and conf/local.conf should be updated before running bitbake.

$ source $YOCTO/poky/oe-init-build-env <build-name>
$ bitbake <target-name>

Available Targets

axxia-image-small
A small image used in simulation, flash, or as a ram disk. Should be sufficient to use the RTE.
axxia-image-sim
An image used in simulation.
axxia-image-large
A more complete image.
bitbake linux-yocto
Build just the standard Linux kernel, whith no preempt options.
bitbake linux-yocto-rt
Build just the preempt/real-time Linux kernel.

Add "-c " to do part of the build, "-c listtasks " will show the tasks associated with that target. As an example, use "bitbake -c cleanall linux-yocto" to force a full rebuild (including re-cloning) the kernel.

"-f" will force the tasks to be run, even if they aren't necessary.

A more complete description of bitbake options is available as follows.

$ bitbake --help

For even more documentation, see the following.

Yocto Project Documentation

Images generated:

  • <image type>-<machine name>.ext2 (rootfs in EXT2 format)
  • <image type>-<machine name>.tar.gz (rootfs in tar+GZIP format)
  • modules-<machine name>.tgz (modules in tar+GZIP format)
  • <device name>.dtb
  • FIT images, 3 types:
    • fdt.fit-<device name> (DTB in fit image format)
    • linux.fit-<device name> (Kernel binary in fit image format)
    • multi.fit-<device name> (Kernel binary + DTB in fit image format)

An Example

To build Linux and the file system images, and create a script to install the tools, do the following.

$ bitbake axxia-image-small ; bitbake axxia-image-small -c populate_sdk
$ bitbake axxia-image-sim ; bitbake axxia-image-sim -c populate_sdk
$ bitbake axxia-image-large ; bitbake axxia-image-large -c populate_sdk
⚠️ **GitHub.com Fallback** ⚠️