Skip to contentSkip to conversation

ZII boards documentation update

PATCH Applied Andrey Smirnov 3 participants 9 messages May 28, 2019 – May 29, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ZII boards documentation update

Everyone:

This series contains patches adding various bit of documentation covering ZII boards as well as OpenOCD configuration files I've been using to updload Barebox. Each patch should be self explanatory.

Feedback is welcome!

Thanks,
Andrey Smirnov

Andrey Smirnov (4):
Documentation: Add zii-vf610-dev board documentation
Documentation: Add zii-imx7d-rpu2 board documentation
Documentation: Add zii-imx6-rdu2 board documentation
Documentation: zii-imx8mq-dev: Update OpenOCD usage documentation

 .../boards/imx/zii-imx6-rdu2/bootstrap.sh     |   6 +
 .../boards/imx/zii-imx6-rdu2/openocd.cfg      | 282 ++++++++++++++++++
 .../boards/imx/zii-imx6-rdu2/readme.rst       |  30 ++
 .../boards/imx/zii-imx7d-rpu2/bootstrap.sh    |   6 +
 .../boards/imx/zii-imx7d-rpu2/openocd.cfg     | 143 +++++++++
 .../boards/imx/zii-imx7d-rpu2/readme.rst      |  46 +++
 .../boards/imx/zii-imx8mq-dev/bootstrap.sh    |   6 +
 .../boards/imx/zii-imx8mq-dev/openocd.cfg     |  99 +++---
 .../boards/imx/zii-imx8mq-dev/readme.rst      |   4 +-
 .../boards/imx/zii-vf610-dev/bootstrap.sh     |   6 +
 .../boards/imx/zii-vf610-dev/openocd.cfg      | 259 ++++++++++++++++
 .../boards/imx/zii-vf610-dev/readme.rst       |  52 ++++
 12 files changed, 889 insertions(+), 50 deletions(-)
 create mode 100755 Documentation/boards/imx/zii-imx6-rdu2/bootstrap.sh
 create mode 100644 Documentation/boards/imx/zii-imx6-rdu2/openocd.cfg
 create mode 100644 Documentation/boards/imx/zii-imx6-rdu2/readme.rst
 create mode 100755 Documentation/boards/imx/zii-imx7d-rpu2/bootstrap.sh
 create mode 100644 Documentation/boards/imx/zii-imx7d-rpu2/openocd.cfg
 create mode 100644 Documentation/boards/imx/zii-imx7d-rpu2/readme.rst
 create mode 100755 Documentation/boards/imx/zii-imx8mq-dev/bootstrap.sh
 create mode 100755 Documentation/boards/imx/zii-vf610-dev/bootstrap.sh
 create mode 100644 Documentation/boards/imx/zii-vf610-dev/openocd.cfg
 create mode 100644 Documentation/boards/imx/zii-vf610-dev/readme.rst
Signature · 7 lines
2.21.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/4 Documentation: Add zii-vf610-dev board documentation

Add OpenOCD scipts and notes on usage for various ZII VF610 based boards.

---
 .../boards/imx/zii-vf610-dev/bootstrap.sh     |   6 +
 .../boards/imx/zii-vf610-dev/openocd.cfg      | 259 ++++++++++++++++++
 .../boards/imx/zii-vf610-dev/readme.rst       |  52 ++++
 3 files changed, 317 insertions(+)
 create mode 100755 Documentation/boards/imx/zii-vf610-dev/bootstrap.sh
 create mode 100644 Documentation/boards/imx/zii-vf610-dev/openocd.cfg
 create mode 100644 Documentation/boards/imx/zii-vf610-dev/readme.rst
Documentation/boards/imx/zii-vf610-dev/bootstrap.sh new file +6 -0
new file mode 100755
index 000000000..49bab0320
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+OPENOCD=${OPENOCD:-openocd}
+DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
+
+${OPENOCD} -f ${DIR}/openocd.cfg --command "adapter_khz 10000; init; safe_reset; start_barebox;"
Documentation/boards/imx/zii-vf610-dev/openocd.cfg new file +259 -0

259 lines not on this page · raw message

Documentation/boards/imx/zii-vf610-dev/readme.rst new file +52 -0

52 lines not on this page · raw message

Signature · 7 lines
2.21.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 2/4 Documentation: Add zii-imx7d-rpu2 board documentation

In reply to Andrey Smirnov

Add OpenOCD scipts and notes on usage for various ZII i.MX7 based boards.

---
 .../boards/imx/zii-imx7d-rpu2/bootstrap.sh    |   6 +
 .../boards/imx/zii-imx7d-rpu2/openocd.cfg     | 143 ++++++++++++++++++
 .../boards/imx/zii-imx7d-rpu2/readme.rst      |  46 ++++++
 3 files changed, 195 insertions(+)
 create mode 100755 Documentation/boards/imx/zii-imx7d-rpu2/bootstrap.sh
 create mode 100644 Documentation/boards/imx/zii-imx7d-rpu2/openocd.cfg
 create mode 100644 Documentation/boards/imx/zii-imx7d-rpu2/readme.rst
Documentation/boards/imx/zii-imx7d-rpu2/bootstrap.sh new file +6 -0
new file mode 100755
index 000000000..49bab0320
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+OPENOCD=${OPENOCD:-openocd}
+DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
+
+${OPENOCD} -f ${DIR}/openocd.cfg --command "adapter_khz 10000; init; safe_reset; start_barebox;"
Documentation/boards/imx/zii-imx7d-rpu2/openocd.cfg new file +143 -0

143 lines not on this page · raw message

Documentation/boards/imx/zii-imx7d-rpu2/readme.rst new file +46 -0

46 lines not on this page · raw message

Signature · 7 lines
2.21.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

PATCH 3/4 Documentation: Add zii-imx6-rdu2 board documentation

In reply to Andrey Smirnov

Add OpenOCD scipts and notes on usage for various ZII i.MX6Q based boards.

---
 .../boards/imx/zii-imx6-rdu2/bootstrap.sh     |   6 +
 .../boards/imx/zii-imx6-rdu2/openocd.cfg      | 282 ++++++++++++++++++
 .../boards/imx/zii-imx6-rdu2/readme.rst       |  30 ++
 3 files changed, 318 insertions(+)
 create mode 100755 Documentation/boards/imx/zii-imx6-rdu2/bootstrap.sh
 create mode 100644 Documentation/boards/imx/zii-imx6-rdu2/openocd.cfg
 create mode 100644 Documentation/boards/imx/zii-imx6-rdu2/readme.rst
Documentation/boards/imx/zii-imx6-rdu2/bootstrap.sh new file +6 -0
new file mode 100755
index 000000000..7342e890e
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+OPENOCD=${OPENOCD:-openocd}
+DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
+
+${OPENOCD} -f ${DIR}/openocd.cfg --command "adapter_khz 10000; init; reset init; start_barebox"
Documentation/boards/imx/zii-imx6-rdu2/openocd.cfg new file +282 -0

282 lines not on this page · raw message

Documentation/boards/imx/zii-imx6-rdu2/readme.rst new file +30 -0
new file mode 100644
index 000000000..155d30eae
@@ -0,0 +1,30 @@
+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
+
+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
Signature · 7 lines
2.21.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw

PATCH 4/4 Documentation: zii-imx8mq-dev: Update OpenOCD usage documentation

In reply to Andrey Smirnov

Update various files in zii-imx8mq-dev:

- Add bootstrap.sh to match other boards

- Cosmetic update to openocd.cfg to match the style of other ZII boards

- Update readme.rst to reflecte the chagnes

---
 .../boards/imx/zii-imx8mq-dev/bootstrap.sh    |  6 ++
 .../boards/imx/zii-imx8mq-dev/openocd.cfg     | 99 ++++++++++---------
 .../boards/imx/zii-imx8mq-dev/readme.rst      |  4 +-
 3 files changed, 59 insertions(+), 50 deletions(-)
 create mode 100755 Documentation/boards/imx/zii-imx8mq-dev/bootstrap.sh
Documentation/boards/imx/zii-imx8mq-dev/bootstrap.sh new file +6 -0
new file mode 100755
index 000000000..7342e890e
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+OPENOCD=${OPENOCD:-openocd}
+DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
+
+${OPENOCD} -f ${DIR}/openocd.cfg --command "adapter_khz 10000; init; reset init; start_barebox"
Documentation/boards/imx/zii-imx8mq-dev/openocd.cfg +51 -48

127 lines not on this page · raw message

Documentation/boards/imx/zii-imx8mq-dev/readme.rst +2 -2
index dc031e4af..363e00e6c 100644
@@ -20,5 +20,5 @@ follows:
 
 .. code-block:: sh
 
-        cd barebox
-        openocd -f Documentation/boards/imx/zii-imx8mq-dev/openocd.cfg --command "init; ddr_init; start_barebox"
+  cd barebox
+  Documentation/boards/imx/zii-imx8mq-dev/bootstrap.sh
Signature · 7 lines
2.21.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
maintainer Applied
#5 lore raw
In reply to Andrey Smirnov
Quoted 8 lines · Andrey Smirnov

Everyone:

This series contains patches adding various bit of documentation covering ZII boards as well as OpenOCD configuration files I've been using to updload Barebox. Each patch should be self explanatory.

Feedback is welcome!

Quoted 8 lines

Thanks,
Andrey Smirnov

Andrey Smirnov (4):
Documentation: Add zii-vf610-dev board documentation
Documentation: Add zii-imx7d-rpu2 board documentation
Documentation: Add zii-imx6-rdu2 board documentation
Documentation: zii-imx8mq-dev: Update OpenOCD usage documentation

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#6 lore raw

PATCH 1/3 fixup! Documentation: Add zii-vf610-dev board documentation

In reply to Andrey Smirnov

---
Hi Sascha, Andrey,

Yay, documentation patches \o/

Here are three small fixups:
- Improve some typos and missing articles.
- Break long shell lines for better readability.
- Don't use <variable> syntax for placeholders in shell command lines, which could be misinterpreted as shell redirection operators.

---
 .../boards/imx/zii-vf610-dev/readme.rst         | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
Documentation/boards/imx/zii-vf610-dev/readme.rst +9 -8
index 9418a3a278f0..08ae0e0e6760 100644
@@ -23,11 +23,12 @@ follows:
   cd barebox
   Documentation/boards/imx/zii-vf610-dev/bootstrap.sh
 
-custom OpenOCD binary and options can be specified as follows:
+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-vf610-dev/bootstrap.sh
+  OPENOCD="../openocd/src/openocd -s ../openocd/tcl " \
+    Documentation/boards/imx/zii-vf610-dev/bootstrap.sh
 
 Writing Barebox to NVM
 ----------------------
@@ -37,14 +38,14 @@ come with eMMC. To permanently write Barebox to it do:
 
 .. code-block:: sh
 
-  barebox_update -t eMMC -y <barebox.img>
+  barebox_update -t eMMC -y barebox.img
 
-This should also automaticaly configure your board to boot that
-image. Note that original ZII stack's bootloader in eMMC should be
-left intact. Barebox is configured to be programmed to one of MMC boot
-partitions, whereas original bootloader is located in user partition.
+This should also automatically configure your board to boot that
+image. Note that the original ZII stack's bootloader in eMMC should be
+left intact. Barebox is configured to be programmed to one of the MMC boot
+partitions, whereas the original bootloader is located in user partition.
 
-To restore the board to booting using original bootloader do:
+To restore the board to booting using the original bootloader do:
 
 .. code-block:: sh
 
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#7 lore raw

PATCH 2/3 fixup! Documentation: Add zii-imx7d-rpu2 board documentation

In reply to Andrey Smirnov
---
 .../boards/imx/zii-imx7d-rpu2/readme.rst        | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
Documentation/boards/imx/zii-imx7d-rpu2/readme.rst +9 -8
index 08d30c592d43..dd984ac17635 100644
@@ -23,24 +23,25 @@ follows:
   cd barebox
   Documentation/boards/imx/zii-imx7d-rpu2/bootstrap.sh
 
-custom OpenOCD binary and options can be specified as follows:
+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
+  OPENOCD="../openocd/src/openocd -s ../openocd/tcl " \
+    Documentation/boards/imx/zii-imx7d-rpu2/bootstrap.sh
 
 
 Disabling DSA in Embedeed Switch
 --------------------------------
 
-Booting Linux kernel that device ships with will re-configure on-board
-switch into DSA mode, which woudl make Ethernet connection unusable in
-Barebox. To undo that and re-configure switch into dumb/pass-through
-mode do the following:
+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 doen, power cycling the device should force the switch to
-re-read EEPROM and reconfigure itself.
+Once that is done, power cycling the device should force the switch to
+re-read the EEPROM and reconfigure itself.
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#8 lore raw

PATCH 3/3 fixup! Documentation: Add zii-imx6-rdu2 board documentation

In reply to Andrey Smirnov
---
 Documentation/boards/imx/zii-imx6-rdu2/readme.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/boards/imx/zii-imx6-rdu2/readme.rst +3 -2
index 155d30eaee21..4694f2e30ed0 100644
@@ -23,8 +23,9 @@ follows:
   cd barebox
   Documentation/boards/imx/zii-imx6-rdu2/bootstrap.sh
 
-custom OpenOCD binary and options can be specified as follows:
+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
+  OPENOCD="../openocd/src/openocd -s ../openocd/tcl " \
+    Documentation/boards/imx/zii-imx6-rdu2/bootstrap.sh
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox