1.7.2. Building TX6/TXUL Series

Hint

These machines will only work when you chose the 4.14.98 kernel when setting up the BSP.

We provide a script, karo-nxp-release.sh, that simplifies the setup for our machines. It also adds our layer to the bblayers.conf file.

Choose the machine you want to build by having a look at your modules number printed on it.

  • A list of supported MACHINE configurations:
MACHINE=
tx6q-1030
tx6q-1130
tx6q-1036
tx6q-8037
tx6q-8137
tx6u-8030
tx6u-8130
tx6u-8033
tx6u-8133
tx6s-8034
tx6s-8134
tx6s-8035
tx6s-8135
txul-5010
txul-5011
txul-8013

Use this command to setup your build directory (specify the machine, and the build directory):

MACHINE=<machine> source karo-nxp-release.sh -b <build-dir>

When the script has run, your current directory should have changed to the <build-dir> you chose before.

Example:

MACHINE=txul-5011 source karo-nxp-release.sh -b build-txul-5011

1.7.2.1. U-Boot Hint

Warning

The actual i.MX U-Boot is not working with TX6/TXUL series! You can use a precompiled one from our MFG-Tools or use the one from the Rocko Guide.

1.7.2.2. Building the image

Note

Before starting a build, you should consider enabling the SSTATE CACHE to speedup the build process.

See Enable sstate cache 1.

Here are the different images you can build:

Image Description Provided by layer
core-image-minimal See https://layers.openembedded.org/layerindex/recipe/579/ Poky
linux-imx The Kernel only karo-nxp

Build the kernel image with the following command inside your <build-dir>.

bitbake linux-imx

Note

-I Ignores dependencies. For a full image it is important here to NOT build U-Boot, because this would break the build.

bitbake -I u-boot -I u-boot-imx core-image-minimal

1.7.2.3. Restarting a build environment [1]

If a new terminal window is opened or the machine is rebooted after a build directory is set up, the setup environment script should be used to set up the environment variables and run a build again. The full fsl-setup-release.sh is not needed.

You can simply run:

source setup-environment <build-dir>

1.7.2.4. Image Deployment

After a build is complete, the created image resides in the tmp/deploy/images sub-directory. An image is, for the most part, specific to the machine set in the environment setup. Each image build creates a kernel, and an image type based on the IMAGE_FSTYPES defined in the machine configuration file.

The following files are created for Ka-Ro TX6/TXUL modules when running core-image-minimal:

Filename Content
uImage-<version>-<machine> Kernel uImage
modules-<machine>.tgz Kernel modules
<image>-<machine>.tar.bz2 RFS
*.dtb Devicetree blob

To continue with these images use MFG-Tools or TFTP boot. UUU is actually not supported for TX6/TXUL!

[1]Copied from the official NXP Yocto Project User’s Guide, mentioned above.