doc: board: ti: openocd tcl script fixes
cover doc: board: ti: openocd tcl script fixes
Hey Everyone!
When adding support for another one of TI's reference boards we noticed some of the OpenOCD docs are out of date or missing for a few boards which OpenOCD supports.
This small series is a subset of the documentation fixes from the AM62L-EVM support patches here[0] with the requested fixes.
Happy Hacking
~Bryan
[0] https://lore.kernel.org/u-boot/[email protected]/
---
Bryan Brattlof (2):
doc: board: ti: am64x: add missing debugging section
doc: board: ti: correct path to tcl scripts
doc/board/ti/am6254atl_sk.rst | 2 +- doc/board/ti/am62ax_sk.rst | 2 +- doc/board/ti/am62dx_evm.rst | 11 ++++++----- doc/board/ti/am62px_sk.rst | 12 +++++------- doc/board/ti/am62x_sk.rst | 2 +- doc/board/ti/am64x_evm.rst | 24 ++++++++++++++++++++++++ doc/board/ti/am65x_evm.rst | 2 +- doc/board/ti/j7200_evm.rst | 2 +- doc/board/ti/j721e_evm.rst | 2 +- doc/board/ti/j722s_evm.rst | 2 +- doc/board/ti/j784s4_evm.rst | 2 +- 11 files changed, 43 insertions(+), 20 deletions(-)
---
base-commit: 3f19667468fb93bcb5702d23aa057b72639e3ac8
change-id: 20260901-openocd-tcl-fixes-728535c8993b
Best regards,
Signature · 1 line
Bryan Brattlof <[email protected]>
PATCH 1/2 doc: board: ti: am64x: add missing debugging section
The OpenOCD debugging section is missing for the AM64-EVM. Add it to the board's documentation page.
--- doc/board/ti/am64x_evm.rst | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
doc/board/ti/am64x_evm.rst +24 -0
@@ -227,3 +227,27 @@ https://www.ti.com/lit/pdf/spruim2 under the `Boot Mode Pins` section. For SW2 and SW3, the switch state in the "ON" position = 1. Boot bits on SK is reversed bits to the bootmode signals + +Debugging U-Boot +---------------- + +See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for +detailed setup information. + +.. warning:: + + **OpenOCD support after**: v0.12.0 + + Until the next stable release of OpenOCD is available in your development + environment's distribution, it might be necessary to build OpenOCD `from the + source <https://github.com/openocd-org/openocd>`_. + +.. include:: k3.rst + :start-after: .. k3_rst_include_start_openocd_connect_XDS110 + :end-before: .. k3_rst_include_end_openocd_connect_XDS110 + +To start OpenOCD and connect to the board + +.. prompt:: bash + + openocd -f board/ti/am642evm.cfg
Signature · 1 line
2.54.0
Re: [PATCH 1/2] doc: board: ti: am64x: add missing debugging section
# Add your code comments below. There is no need to trim or delete
# any existing content -- just insert your comments under the relevant # lines of code. Lines starting with "> " are quoted diff context and # lines starting with "| " are comments from other reviewers. # The final email will be reformatted automatically to include only # the sections that have your comments. #
Quoted 27 lines
The OpenOCD debugging section is missing for the AM64-EVM. Add it to the board's documentation page.
Signed-off-by Bryan Brattlof <[email protected]>doc/board/ti/am64x_evm.rst +14
-0@@ -227,3 +227,27 @@ https://www.ti.com/lit/pdf/spruim2 under the `Boot Mode Pins` section. For SW2 and SW3, the switch state in the "ON" position = 1. Boot bits on SK is reversed bits to the bootmode signals + +Debugging U-Boot +---------------- + +See :ref:`Common Debugging environment - OpenOCD<k3_rst_refer_openocd>`: for +detailed setup information. + +.. warning:: + + **OpenOCD support after**: v0.12.0 + + Until the next stable release of OpenOCD is available in your development + environment's distribution, it might be necessary to build OpenOCD `from the + source <https://github.com/openocd-org/openocd>`_.
doc/board/ti/am64x_evm.rst https://www.ti.com/lit/pdf/spruim2 under the `Boot Mode Pins` section. · line 253
Quoted 10 lines
doc/board/ti/am64x_evm.rst +10
-0+ +.. include:: k3.rst + :start-after: .. k3_rst_include_start_openocd_connect_XDS110 + :end-before: .. k3_rst_include_end_openocd_connect_XDS110 + +To start OpenOCD and connect to the board + +.. prompt:: bash + + openocd -f board/ti/am642evm.cfg
Signature · 1 line
Anshul Dalal <[email protected]>
PATCH 2/2 doc: board: ti: correct path to tcl scripts
In reply to Bryan BrattlofOpenOCD has reorganised the tcl scripts for TI's reference boards into a ti/ subdirectory. Update their paths to the new locations.
--- doc/board/ti/am6254atl_sk.rst | 2 +- doc/board/ti/am62ax_sk.rst | 2 +- doc/board/ti/am62dx_evm.rst | 11 ++++++----- doc/board/ti/am62px_sk.rst | 12 +++++------- doc/board/ti/am62x_sk.rst | 2 +- doc/board/ti/am65x_evm.rst | 2 +- doc/board/ti/j7200_evm.rst | 2 +- doc/board/ti/j721e_evm.rst | 2 +- doc/board/ti/j722s_evm.rst | 2 +- doc/board/ti/j784s4_evm.rst | 2 +- 10 files changed, 19 insertions(+), 20 deletions(-)
doc/board/ti/am6254atl_sk.rst +1 -1
@@ -305,4 +305,4 @@ To start OpenOCD and connect to the board .. prompt:: bash $ - openocd -f board/ti_am625evm.cfg + openocd -f board/ti/am625evm.cfg
doc/board/ti/am62ax_sk.rst +1 -1
@@ -435,4 +435,4 @@ To start OpenOCD and connect to the board .. prompt:: bash - openocd -f board/ti_am62a7evm.cfg + openocd -f board/ti/am62a7evm.cfg
doc/board/ti/am62dx_evm.rst +6 -5
@@ -237,10 +237,6 @@ detailed setup information. .. warning:: - **AM62A**: OpenOCD support since August 2023 (git master) - - **AM62D**: Uses AM62A configuration (compatible due to same core architecture) - Until the next stable release of OpenOCD is available in your development environment's distribution, it might be necessary to build OpenOCD `from the source <https://github.com/openocd-org/openocd>`_.
@@ -253,4 +249,9 @@ To start OpenOCD and connect to the board .. prompt:: bash - openocd -f board/ti/am62a7evm.cfg + openocd -f board/ti/am62a7evm.cfg + +.. note:: + + The AM62D-EVM uses the same tcl configuration as the AM62A-SK due to + same core architecture.
doc/board/ti/am62px_sk.rst +5 -7
@@ -331,13 +331,11 @@ detailed setup information. .. warning:: - **OpenOCD support after**: v0.12.0 + **OpenOCD support after**: v0.12.0 - While support for the entire K3 generation including the am62xxx - extended family was added before v0.12.0, the tcl scripts for the - am62px have been accepted and will be available in the next release of - OpenOCD. It may be necessary to build OpenOCD from source depending on - the version your distribution has packaged. + Until the next stable release of OpenOCD is available in your development + environment's distribution, it might be necessary to build OpenOCD `from the + source <https://github.com/openocd-org/openocd>`_. .. include:: k3.rst :start-after: .. k3_rst_include_start_openocd_connect_XDS110
@@ -347,4 +345,4 @@ To start OpenOCD and connect to the board .. prompt:: bash - openocd -f board/ti_am62pevm.cfg + openocd -f board/ti/am62pevm.cfg
doc/board/ti/am62x_sk.rst +1 -1
@@ -867,4 +867,4 @@ To start OpenOCD and connect to the board .. prompt:: bash $ - openocd -f board/ti_am625evm.cfg + openocd -f board/ti/am625evm.cfg
doc/board/ti/am65x_evm.rst +1 -1
@@ -321,4 +321,4 @@ To start OpenOCD and connect to the board .. prompt:: bash $ - openocd -f board/ti_am654evm.cfg + openocd -f board/ti/am654evm.cfg
doc/board/ti/j7200_evm.rst +1 -1
@@ -232,4 +232,4 @@ To start OpenOCD and connect to the board .. prompt:: bash $ - openocd -f board/ti_j7200evm.cfg + openocd -f board/ti/j7200evm.cfg
doc/board/ti/j721e_evm.rst +1 -1
@@ -261,4 +261,4 @@ To start OpenOCD and connect to the board .. prompt:: bash $ - openocd -f board/ti_j721eevm.cfg + openocd -f board/ti/j721evm.cfg
doc/board/ti/j722s_evm.rst +1 -1
@@ -255,4 +255,4 @@ To start OpenOCD and connect to the board .. prompt:: bash - openocd -f board/ti_j722sevm.cfg + openocd -f board/ti/j722sevm.cfg
doc/board/ti/j784s4_evm.rst +1 -1
@@ -663,4 +663,4 @@ following. .. prompt:: bash - openocd -f board/ti_j784s4evm.cfg + openocd -f board/ti/j784s4evm.cfg
Signature · 1 line
2.54.0
Re: [PATCH 2/2] doc: board: ti: correct path to tcl scripts
Quoted 9 lines · Bryan Brattlof
doc/board/ti/am62px_sk.rst +0
-1@@ -331,13 +331,11 @@ detailed setup information. .. warning:: - **OpenOCD support after**: v0.12.0
doc/board/ti/am62px_sk.rst detailed setup information. · line 338
Quoted 10 lines
doc/board/ti/am62px_sk.rst +4
-5+ **OpenOCD support after**: v0.12.0 - While support for the entire K3 generation including the am62xxx - extended family was added before v0.12.0, the tcl scripts for the - am62px have been accepted and will be available in the next release of - OpenOCD. It may be necessary to build OpenOCD from source depending on - the version your distribution has packaged. + Until the next stable release of OpenOCD is available in your development + environment's distribution, it might be necessary to build OpenOCD `from the + source <https://github.com/openocd-org/openocd>`_.
I wonder if it might be useful to just refer users to building OpenOCD from source as default since either we might have outdated paths for the TCL configs or they might not exist altogether for newer platforms.
Signature · 1 line
Anshul Dalal <[email protected]>