4.12.3.27. ZII i.MX8MQ Based Boards

4.12.3.27.1. Building Barebox

To build Barebox of ZII i.MX8MQ based board do the following:

make ARCH=arm CROSS_COMPILE=<AArch64 toolchain prefix> mrproper
make ARCH=arm CROSS_COMPILE=<AArch64 toolchain prefix> imx_v8_defconfig
make ARCH=arm CROSS_COMPILE=<AArch64 toolchain prefix>

4.12.3.27.2. Uploading Barebox via JTAG

Barebox can be bootstrapped via JTAG using OpenOCD (latest master) as follows:

cd barebox
Documentation/boards/imx/zii-imx8mq-dev/bootstrap.sh