summaryrefslogtreecommitdiffstats
path: root/Documentation/boards/imx/zii-imx7d-rpu2/readme.rst
blob: dd984ac17635bbb5513920f923bbb7f662564fe8 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ZII i.MX7D Based Boards
=======================

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

To build Barebox for ZII i.MX7 based 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-imx7d-rpu2/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-imx7d-rpu2/bootstrap.sh


Disabling DSA in Embedeed Switch
--------------------------------

Booting the Linux kernel that the device ships with will re-configure the on-board
switch into DSA mode, which would make the Ethernet connection unusable in
Barebox. To undo that and re-configure the switch into dumb/pass-through
mode, do the following:

.. code-block:: sh

  memset -b -d /dev/switch-eeprom 0x00 0xff 4

Once that is done, power cycling the device should force the switch to
re-read the EEPROM and reconfigure itself.