* [PATCH] Documentation: zii-imx7d-dev: Fix errors with openocd configuration script
@ 2019-08-29 19:10 Cory Tusar
2019-09-02 7:17 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Cory Tusar @ 2019-08-29 19:10 UTC (permalink / raw)
To: barebox; +Cc: Andrey Smirnov, Chris Healy
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>
---
Documentation/boards/imx/zii-imx7d-dev/openocd.cfg | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/boards/imx/zii-imx7d-dev/openocd.cfg b/Documentation/boards/imx/zii-imx7d-dev/openocd.cfg
index f971c3fb2..6056b8957 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 }
--
2.23.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: zii-imx7d-dev: Fix errors with openocd configuration script
2019-08-29 19:10 [PATCH] Documentation: zii-imx7d-dev: Fix errors with openocd configuration script Cory Tusar
@ 2019-09-02 7:17 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2019-09-02 7:17 UTC (permalink / raw)
To: Cory Tusar; +Cc: Andrey Smirnov, barebox, Chris Healy
On Thu, Aug 29, 2019 at 07:10:25PM +0000, Cory Tusar wrote:
> 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>
> ---
> Documentation/boards/imx/zii-imx7d-dev/openocd.cfg | 6 ++++++
> 1 file changed, 6 insertions(+)
Applied, thanks
Sascha
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-02 7:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-29 19:10 [PATCH] Documentation: zii-imx7d-dev: Fix errors with openocd configuration script Cory Tusar
2019-09-02 7:17 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox