Build the SDK on your Yocto folder
Code Block |
---|
|
bitbake core-image-minimal -c populate_sdk |
Get the SDK from the yocto build tmp/deploy/sdk and install it
Code Block |
---|
|
$ 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 u-boot sources
Code Block |
---|
|
$ cd ~
$ mkdir imx8
$ cd imx8
$ git clone <https://git.congatec.com/arm-nxp/imx8-family/uboot-imx8-family.git> |
Set the desired branch
Code Block |
---|
|
$ cd uboot-imx8-family
$ git checkout cgtimx8x__imx_v2020.04_5.4.70_2.3.0 |
Set toolchain
Code Block |
---|
|
$ source /opt/fsl-imx-wayland/5.4-zeus/environment-setup-aarch64-poky-linux
$ unset LDFLAGS |
Build bootloader:
Code Block |
---|
|
$ cd imx8x_uboot_internal
$ make cgtsx8x_fspi_defconfig
$ make |
Binary will be found as :