Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Build the SDK on your Yocto folder

Code Block
languagebash
bitbake core-image-minimal -c populate_sdk

Get the SDK from the yocto build tmp/deploy/sdk and install it

Code Block
languagebash
$ chmod +x fsl-imx-wayland-glibc-x86_64-core-image-minimal-aarch64-imx8qxp-cgtsx8x-toolchain-5.4-zeus.sh
$ ./fsl-imx-wayland-glibc-x86_64-core-image-minimal-aarch64-imx8qxp-cgtsx8x-toolchain-5.4-zeus.sh

Fetch kernel sources

Code Block
languagebash
$ cd ~
$ mkdir imx8
$ cd imx8
$ git clone <https://git.congatec.com/arm-nxp/imx8-family/kernel-imx8-family.git>

Set the desired branch

Code Block
languagebash
$ cd kernel-imx8-family
$ git checkout cgtimx8x__imx_5.4.70_2.3.0

Set toolchain

Code Block
languagebash
$ source /opt/fsl-imx-wayland/5.4-zeus/environment-setup-aarch64-poky-linux
$ unset LDFLAGS

Build kernel after selecting the desired defconfig:

Code Block
languagebash
$ cd ~/imx8/kernel-imx8-family
$ make cgtsx8x_defconfig
$ make Image dtbs modules

Image will be found under: arch/arm64/boot/Image

Device tree files under: arch/arm64/boot/dts/congatec