4.12.3.20. ZII i.MX8MQ Based Boards

4.12.3.20.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.20.2. Uploading Barebox via JTAG

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

cd barebox
openocd -f Documentation/boards/imx/zii-imx8mq-dev/openocd.cfg --command "init; ddr_init; start_barebox"