Difference between revisions of "OpenOCD Patches"

From eLinux.org
Jump to: navigation, search
(Porting the TCT content.)
 
(Removing FS3 references.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
TinCanTools provides patches for the [[OpenOCD]] source to add support for the Flyswatter2 and Flyswatter3. These patches also contain [[OpenOCD Config Files|config files]] for use with other guides on this wiki.
+
TinCanTools provides patches for the [[OpenOCD]] source to add support for the Flyswatter2. These patches also contain [[OpenOCD Config Files|config files]] for use with other guides on this wiki.
  
 
Patches on this page are linked directly from the guides on [[Compiling OpenOCD]].  
 
Patches on this page are linked directly from the guides on [[Compiling OpenOCD]].  
Line 15: Line 15:
 
<br>'''Version:''' b0.11
 
<br>'''Version:''' b0.11
 
<br>'''Format:''' diff
 
<br>'''Format:''' diff
<br>'''Description:''' This patch adds support for the Flyswatter2 and Flyswatter3, updates the config file for the [[Flyswatter]] and the {{HAMMER_PRODUCTLINK}}, and adds a new config file for the Olimex PIC-P32MX board.
+
<br>'''Description:''' This patch adds support for the Flyswatter2, updates the config file for the [[Flyswatter]] and the {{HAMMER_PRODUCTLINK}}, and adds a new config file for the Olimex PIC-P32MX board.
 
<br>'''Install:''' Save to '''/openocd-0.5.0''', the directory containing the OpenOCD source. Then open a terminal window and type:
 
<br>'''Install:''' Save to '''/openocd-0.5.0''', the directory containing the OpenOCD source. Then open a terminal window and type:
 
  $ cd ~/openocd-0.5.0
 
  $ cd ~/openocd-0.5.0
Line 30: Line 30:
 
'''Files Created:'''
 
'''Files Created:'''
 
*[[OpenOCD_Config_Files#flyswatter2.cfg|tcl/interface/flyswatter2.cfg]]
 
*[[OpenOCD_Config_Files#flyswatter2.cfg|tcl/interface/flyswatter2.cfg]]
*[[OpenOCD_Config_Files#flyswatter3.cfg|tcl/interface/flyswatter3.cfg]]
 
 
*[[OpenOCD_Config_Files#olimex_pic32mx.cfg|tcl/board/olimex_pic32mx.cfg]]
 
*[[OpenOCD_Config_Files#olimex_pic32mx.cfg|tcl/board/olimex_pic32mx.cfg]]
  
Line 37: Line 36:
 
| '''Version'''
 
| '''Version'''
 
| '''Changes'''
 
| '''Changes'''
|-
 
| [[Media:Tincantools-openocd-b0.12.patch|0.12]]
 
| Added amdm37x.cfg<br>corrected flyswatter3_init() error messages in ft2232.c
 
 
|-
 
|-
 
| [[Media:Tincantools-openocd-b0.11.patch|0.11]]
 
| [[Media:Tincantools-openocd-b0.11.patch|0.11]]
Line 46: Line 42:
 
<br>
 
<br>
  
==[[Media:Openocd-fs3-b0.1.patch|OpenOCD 0.4.0 Flyswatter 2/3 Patch]]==
+
==[[Media:Openocd-fs3-b0.1.patch|OpenOCD 0.4.0 Flyswatter 2 Patch]]==
  
 
'''Target:''' [http://prdownload.berlios.de/openocd/openocd-0.4.0.tar.gz OpenOCD 0.4.0 source]
 
'''Target:''' [http://prdownload.berlios.de/openocd/openocd-0.4.0.tar.gz OpenOCD 0.4.0 source]
 
<br>'''Version:''' b0.1
 
<br>'''Version:''' b0.1
 
<br>'''Format:''' diff
 
<br>'''Format:''' diff
<br>'''Description:''' This patch adds support for the Flyswatter2 and Flyswatter3 in OpenOCD 0.4.0, and adds a new config file for the Olimex PIC-P32MX board.
+
<br>'''Description:''' This patch adds support for the Flyswatter2 in OpenOCD 0.4.0, and adds a new config file for the Olimex PIC-P32MX board.
 
<br>'''Install:''' Save to '''/openocd-0.4.0''', the directory containing the OpenOCD source. Then open a terminal window and type:
 
<br>'''Install:''' Save to '''/openocd-0.4.0''', the directory containing the OpenOCD source. Then open a terminal window and type:
 
  $ cd ~/openocd-0.4.0
 
  $ cd ~/openocd-0.4.0
Line 63: Line 59:
 
'''Files Created:'''
 
'''Files Created:'''
 
*[[OpenOCD_Config_Files#flyswatter2.cfg|tcl/interface/flyswatter2.cfg]]
 
*[[OpenOCD_Config_Files#flyswatter2.cfg|tcl/interface/flyswatter2.cfg]]
*[[OpenOCD_Config_Files#flyswatter3.cfg|tcl/interface/flyswatter3.cfg]]
 
 
*[[OpenOCD_Config_Files#olimex_pic32mx.cfg|tcl/board/olimex_pic32mx.cfg]]
 
*[[OpenOCD_Config_Files#olimex_pic32mx.cfg|tcl/board/olimex_pic32mx.cfg]]
 
  
 
==External Links==
 
==External Links==
 
[http://www.linuxmanpages.com/man1/diff.1.php diff man page]<br>
 
[http://www.linuxmanpages.com/man1/diff.1.php diff man page]<br>
 
[http://www.linuxmanpages.com/man1/patch.1.php patch man page]
 
[http://www.linuxmanpages.com/man1/patch.1.php patch man page]
 +
 +
[[Category:TinCanTools]]
 +
[[Category:OpenOCD]]

Latest revision as of 17:42, 20 April 2012

TinCanTools provides patches for the OpenOCD source to add support for the Flyswatter2. These patches also contain config files for use with other guides on this wiki.

Patches on this page are linked directly from the guides on Compiling OpenOCD.


Reading the Content of Patches

OpenOCD are created by the Linux program diff. Diff files are in text format. You can see the changes made by a patch on this page by simply opening and reading it in a text editor. Lines added to files are proceeded by a + sign.

The full text of all config files can also be found on the OpenOCD Config Files page.


OpenOCD 0.5.0 Patch

Target: OpenOCD 0.5.0 source
Version: b0.11
Format: diff
Description: This patch adds support for the Flyswatter2, updates the config file for the Flyswatter and the Hammer, and adds a new config file for the Olimex PIC-P32MX board.
Install: Save to /openocd-0.5.0, the directory containing the OpenOCD source. Then open a terminal window and type:

$ cd ~/openocd-0.5.0
$ patch -p1 -i Tincantools-openocd-b0.12.patch


Download Tincantools-openocd-b0.12.patch
Right-click the link and select "Save As"

Files Modified:

Files Created:


Version Changes
0.11


OpenOCD 0.4.0 Flyswatter 2 Patch

Target: OpenOCD 0.4.0 source
Version: b0.1
Format: diff
Description: This patch adds support for the Flyswatter2 in OpenOCD 0.4.0, and adds a new config file for the Olimex PIC-P32MX board.
Install: Save to /openocd-0.4.0, the directory containing the OpenOCD source. Then open a terminal window and type:

$ cd ~/openocd-0.4.0
$ patch -p1 -i Openocd-fs3-b0.1.patch


Download Openocd-fs3-b0.1.patch
Right-click the link and select "Save As"

Files Modified:

  • src/jtag/drivers/ft2232.c

Files Created:

External Links

diff man page
patch man page