Skip to contentSkip to conversation

doc: board: ti: openocd tcl script fixes

PATCH In review Bryan Brattlof 2 participants 5 messages Sep 1 – Sep 15

lore
Share & tools
lore
#0 lore raw

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]>
#1 lore raw

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
index 65c4c456528c..2e7d8f0549b1 100644
@@ -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
Reviewed-by on v1 1/2
#2 lore raw

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.

doc/board/ti/am64x_evm.rst +14 -0
index 65c4c456528c..2e7d8f0549b1 100644
@@ -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]>
#3 lore raw

PATCH 2/2 doc: board: ti: correct path to tcl scripts

In reply to Bryan Brattlof

OpenOCD 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
index 18a3520b39c7..0df058aee157 100644
@@ -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
index 3453ed339e7f..b04bfc991ea0 100644
@@ -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
index 0d12e3ec1476..88071b3e69d9 100644
@@ -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
index 44dae4afc870..72de78d5f869 100644
@@ -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
index ef9425035cb8..2e4923f7a7a1 100644
@@ -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
index 73ceef2e531c..5f75c01ec65a 100644
@@ -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
index 4fd2aff83547..e5c29c2bbb7b 100644
@@ -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
index 41c8d4c72a8d..c3f3736e625a 100644
@@ -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
index 4b5cf0275940..3d11271613c7 100644
@@ -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
index ec82228ab908..54b4b6031f0c 100644
@@ -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
Acked-by on v1 2/2
#4 lore raw

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
index 44dae4afc870..72de78d5f869 100644
@@ -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]>