4.13.3.38. ZII i.MX6 RDU2 Boards

4.13.3.38.1. Building Barebox

To build Barebox for ZII RDU2 boards do the following:

make ARCH=arm CROSS_COMPILE=<ARM toolchain prefix> mrproper
make ARCH=arm CROSS_COMPILE=<ARM toolchain prefix> imx_v7_defconfig
make ARCH=arm CROSS_COMPILE=<ARM toolchain prefix>

4.13.3.38.2. Uploading Barebox via JTAG

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

cd barebox
Documentation/boards/imx/zii-imx6-rdu2/bootstrap.sh

A custom OpenOCD binary and options can be specified as follows:

OPENOCD="../openocd/src/openocd -s ../openocd/tcl " \
  Documentation/boards/imx/zii-imx6-rdu2/bootstrap.sh