summaryrefslogtreecommitdiffstats
path: root/Documentation/boards/imx/zii-imx6-rdu2/readme.rst
blob: 4694f2e30ed06e984fb6c9c70fe3792fd7499ae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ZII i.MX6 RDU2 Boards
=====================

Building Barebox
----------------

To build Barebox for ZII RDU2 boards do the following:

.. code-block:: sh

  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>

Uploading Barebox via JTAG
--------------------------

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

.. code-block:: sh

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

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

.. code-block:: sh

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