summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCory Tusar <Cory.Tusar@zii.aero>2019-08-29 19:10:25 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-02 09:17:00 +0200
commit159e3c833f08f3c80abbd137511cf7f9e594d5bb (patch)
treebfd9b49a662a387db724816741364657330ef70c
parented62f3929234beebd169a62993cb50fdf5492b23 (diff)
downloadbarebox-159e3c833f08f3c80abbd137511cf7f9e594d5bb.tar.gz
Documentation: zii-imx7d-dev: Fix errors with openocd configuration script
When attempting to use the existing configuration file to bootstrap an RMU2 board, openocd would consistently fail in the 'safe_reset' function with a number of errors. Disabling the internal reset handling (similar to what's done on the i.MX7 Sabre boards) allowed barebox to download and run successfully. Tested with openocd-0.10.0+dev-00924-g16496488 on a Zodiac RMU2. Signed-off-by: Cory Tusar <cory.tusar@zii.aero> Tested-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--Documentation/boards/imx/zii-imx7d-dev/openocd.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/boards/imx/zii-imx7d-dev/openocd.cfg b/Documentation/boards/imx/zii-imx7d-dev/openocd.cfg
index f971c3f..6056b89 100644
--- a/Documentation/boards/imx/zii-imx7d-dev/openocd.cfg
+++ b/Documentation/boards/imx/zii-imx7d-dev/openocd.cfg
@@ -138,6 +138,12 @@ proc start_barebox { } {
resume $MX7_DDR_BASE_ADDR
}
+# disable internal reset-assert handling to
+# allow reset-init to work
+$_TARGETNAME.0 configure -event reset-assert ""
+$_TARGETNAME.1 configure -event reset-assert ""
+$_TARGETNAME_2 configure -event reset-assert ""
+
# hook the init function into the reset-init event
${_TARGETNAME}.0 configure -event reset-init { board_init }