This is an update to openocd 0.7.0. The patches are from upstream, needed for some targets to work. I've tested this device: ugen0 at uhub8 port 1 configuration 1 "FTDI BeagleBone/XDS100V2" rev 2.00/7.00 addr 4
Index: Makefile =================================================================== RCS file: /cvs/ports/devel/openocd/Makefile,v retrieving revision 1.9 diff -u -p -u -p -r1.9 Makefile --- Makefile 21 Mar 2013 08:45:16 -0000 1.9 +++ Makefile 2 Jun 2013 15:56:23 -0000 @@ -1,8 +1,8 @@ # $OpenBSD: Makefile,v 1.9 2013/03/21 08:45:16 ajacoutot Exp $ -COMMENT = Open On-Chip Debugging +COMMENT = Open On-Chip Debugger -DISTNAME = openocd-0.6.1 +DISTNAME = openocd-0.7.0 CATEGORIES = devel SHARED_LIBS += openocd 1.0 # unknown @@ -22,17 +22,23 @@ EXTRACT_SUFX = .tar.bz2 CONFIGURE_STYLE = gnu CONFIGURE_ARGS = --disable-werror \ --disable-wextra \ - --enable-arm-jtag-ew \ --enable-at91rm9200 \ --enable-ep93xx \ --enable-ft2232_libftdi \ - --enable-jlink \ + --enable-usb_blaster_libftdi \ --enable-presto_libftdi \ - --enable-rlink \ --enable-usbprog \ + --enable-jlink \ --enable-vsllink \ + --enable-rlink \ --enable-ulink \ + --enable-arm-jtag-ew \ + --enable-arm-jtag-ew \ --enable-buspirate \ + --enable-stlink \ + --enable-ti-icdi \ + --enable-osbdm \ + --enable-opendous \ --disable-internal-jimtcl CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include " \ Index: distinfo =================================================================== RCS file: /cvs/ports/devel/openocd/distinfo,v retrieving revision 1.4 diff -u -p -u -p -r1.4 distinfo --- distinfo 7 Feb 2013 00:02:30 -0000 1.4 +++ distinfo 2 Jun 2013 15:56:23 -0000 @@ -1,2 +1,2 @@ -SHA256 (openocd-0.6.1.tar.bz2) = 9MTMdEWtec+6G7JCCOecZu353AxGs8j8o5H05ByULys= -SIZE (openocd-0.6.1.tar.bz2) = 3431071 +SHA256 (openocd-0.7.0.tar.bz2) = UiN7eGUwyEYLIhVWwm+kd59mi33Lg/8UuMXrIFDzjmM= +SIZE (openocd-0.7.0.tar.bz2) = 3493924 Index: patches/patch-src_target_cortex_a_c =================================================================== RCS file: patches/patch-src_target_cortex_a_c diff -N patches/patch-src_target_cortex_a_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_target_cortex_a_c 2 Jun 2013 15:56:23 -0000 @@ -0,0 +1,13 @@ +$OpenBSD$ +--- src/target/cortex_a.c.orig Wed May 29 12:46:36 2013 ++++ src/target/cortex_a.c Wed May 29 12:45:17 2013 +@@ -2756,7 +2756,8 @@ static const struct command_registration cortex_a8_com + }; + + struct target_type cortexa8_target = { +- .name = "cortex_a8", ++ .name = "cortex_a", ++ .deprecated_name = "cortex_a8", + + .poll = cortex_a8_poll, + .arch_state = armv7a_arch_state, Index: patches/patch-tcl_target_imx6_cfg =================================================================== RCS file: patches/patch-tcl_target_imx6_cfg diff -N patches/patch-tcl_target_imx6_cfg --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-tcl_target_imx6_cfg 2 Jun 2013 15:56:23 -0000 @@ -0,0 +1,21 @@ +$OpenBSD$ +--- tcl/target/imx6.cfg.orig Wed May 29 12:50:49 2013 ++++ tcl/target/imx6.cfg Wed May 29 12:51:37 2013 +@@ -37,7 +37,7 @@ jtag newtap $_CHIPNAME sjc -irlen 5 -ircapture 0x01 -i + # core 2 - 0x82154000 + # core 3 - 0x82156000 + set _TARGETNAME $_CHIPNAME.cpu.0 +-target create $_TARGETNAME cortex_a8 -chain-position $_CHIPNAME.dap \ ++target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap \ + -coreid 0 -dbgbase 0x82150000 + + # some TCK cycles are required to activate the DEBUG power domain +@@ -45,7 +45,7 @@ jtag configure $_CHIPNAME.sjc -event post-reset "runte + + proc imx6_dbginit {target} { + # General Cortex A8/A9 debug initialisation +- cortex_a8 dbginit ++ cortex_a dbginit + } + + # Slow speed to be sure it will work Index: pkg/DESCR =================================================================== RCS file: /cvs/ports/devel/openocd/pkg/DESCR,v retrieving revision 1.1.1.1 diff -u -p -u -p -r1.1.1.1 DESCR --- pkg/DESCR 17 Sep 2009 21:59:46 -0000 1.1.1.1 +++ pkg/DESCR 2 Jun 2013 15:56:23 -0000 @@ -1,2 +1,2 @@ -OpenOCD is a Free and Open On-Chip Debugging, In-System Programming -and Boundary-Scan Testing. +Free and Open On-Chip Debugging, In-System Programming and +Boundary-Scan Testing. Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/devel/openocd/pkg/PLIST,v retrieving revision 1.4 diff -u -p -u -p -r1.4 PLIST --- pkg/PLIST 7 Feb 2013 00:02:30 -0000 1.4 +++ pkg/PLIST 2 Jun 2013 15:56:23 -0000 @@ -55,7 +55,10 @@ share/openocd/scripts/board/ek-lm3s3748. share/openocd/scripts/board/ek-lm3s6965.cfg share/openocd/scripts/board/ek-lm3s811-revb.cfg share/openocd/scripts/board/ek-lm3s811.cfg +share/openocd/scripts/board/ek-lm3s8962.cfg share/openocd/scripts/board/ek-lm3s9b9x.cfg +share/openocd/scripts/board/ek-lm3s9d92.cfg +share/openocd/scripts/board/ek-lm4f120xl.cfg share/openocd/scripts/board/ek-lm4f232.cfg share/openocd/scripts/board/embedded-artists_lpc2478-32.cfg share/openocd/scripts/board/ethernut3.cfg @@ -87,11 +90,14 @@ share/openocd/scripts/board/kwikstik.cfg share/openocd/scripts/board/linksys_nslu2.cfg share/openocd/scripts/board/lisa-l.cfg share/openocd/scripts/board/logicpd_imx27.cfg +share/openocd/scripts/board/lpc1850_spifi_generic.cfg +share/openocd/scripts/board/lpc4350_spifi_generic.cfg share/openocd/scripts/board/lubbock.cfg share/openocd/scripts/board/mcb1700.cfg share/openocd/scripts/board/microchip_explorer16.cfg share/openocd/scripts/board/mini2440.cfg share/openocd/scripts/board/mini6410.cfg +share/openocd/scripts/board/netgear-dg834v3.cfg share/openocd/scripts/board/olimex_LPC2378STK.cfg share/openocd/scripts/board/olimex_lpc_h2148.cfg share/openocd/scripts/board/olimex_sam7_ex256.cfg @@ -257,6 +263,7 @@ share/openocd/scripts/interface/ftdi/oli share/openocd/scripts/interface/ftdi/olimex-arm-usb-tiny-h.cfg share/openocd/scripts/interface/ftdi/olimex-jtag-tiny.cfg share/openocd/scripts/interface/ftdi/oocdlink.cfg +share/openocd/scripts/interface/ftdi/opendous_ftdi.cfg share/openocd/scripts/interface/ftdi/openocd-usb-hs.cfg share/openocd/scripts/interface/ftdi/openocd-usb.cfg share/openocd/scripts/interface/ftdi/openrd.cfg @@ -297,6 +304,7 @@ share/openocd/scripts/interface/olimex-a share/openocd/scripts/interface/olimex-jtag-tiny.cfg share/openocd/scripts/interface/oocdlink.cfg share/openocd/scripts/interface/opendous.cfg +share/openocd/scripts/interface/opendous_ftdi.cfg share/openocd/scripts/interface/openocd-usb-hs.cfg share/openocd/scripts/interface/openocd-usb.cfg share/openocd/scripts/interface/openrd.cfg @@ -314,6 +322,8 @@ share/openocd/scripts/interface/signalyz share/openocd/scripts/interface/stlink-v1.cfg share/openocd/scripts/interface/stlink-v2.cfg share/openocd/scripts/interface/stm32-stick.cfg +share/openocd/scripts/interface/sysfsgpio-raspberrypi.cfg +share/openocd/scripts/interface/ti-icdi.cfg share/openocd/scripts/interface/turtelizer2.cfg share/openocd/scripts/interface/ulink.cfg share/openocd/scripts/interface/usb-jtag.cfg @@ -347,6 +357,7 @@ share/openocd/scripts/target/at91sam3u4e share/openocd/scripts/target/at91sam3uxx.cfg share/openocd/scripts/target/at91sam4XXX.cfg share/openocd/scripts/target/at91sam4sXX.cfg +share/openocd/scripts/target/at91sam4sd32x.cfg share/openocd/scripts/target/at91sam7se512.cfg share/openocd/scripts/target/at91sam7sx.cfg share/openocd/scripts/target/at91sam7x256.cfg @@ -372,6 +383,7 @@ share/openocd/scripts/target/dragonite.c share/openocd/scripts/target/dsp56321.cfg share/openocd/scripts/target/dsp568013.cfg share/openocd/scripts/target/dsp568037.cfg +share/openocd/scripts/target/efm32_stlink.cfg share/openocd/scripts/target/epc9301.cfg share/openocd/scripts/target/faux.cfg share/openocd/scripts/target/feroceon.cfg @@ -389,6 +401,7 @@ share/openocd/scripts/target/imx31.cfg share/openocd/scripts/target/imx35.cfg share/openocd/scripts/target/imx51.cfg share/openocd/scripts/target/imx53.cfg +share/openocd/scripts/target/imx6.cfg share/openocd/scripts/target/is5114.cfg share/openocd/scripts/target/ixp42x.cfg share/openocd/scripts/target/k40.cfg @@ -406,7 +419,9 @@ share/openocd/scripts/target/lpc1766.cfg share/openocd/scripts/target/lpc1767.cfg share/openocd/scripts/target/lpc1768.cfg share/openocd/scripts/target/lpc1769.cfg +share/openocd/scripts/target/lpc1788.cfg share/openocd/scripts/target/lpc17xx.cfg +share/openocd/scripts/target/lpc1850.cfg share/openocd/scripts/target/lpc2103.cfg share/openocd/scripts/target/lpc2124.cfg share/openocd/scripts/target/lpc2129.cfg @@ -442,6 +457,7 @@ share/openocd/scripts/target/sharp_lh795 share/openocd/scripts/target/smp8634.cfg share/openocd/scripts/target/spear3xx.cfg share/openocd/scripts/target/stellaris.cfg +share/openocd/scripts/target/stellaris_icdi.cfg share/openocd/scripts/target/stm32_stlink.cfg share/openocd/scripts/target/stm32f0x_stlink.cfg share/openocd/scripts/target/stm32f1x.cfg @@ -453,7 +469,9 @@ share/openocd/scripts/target/stm32f3x_st share/openocd/scripts/target/stm32f4x.cfg share/openocd/scripts/target/stm32f4x_stlink.cfg share/openocd/scripts/target/stm32l.cfg +share/openocd/scripts/target/stm32lx_dual_bank.cfg share/openocd/scripts/target/stm32lx_stlink.cfg +share/openocd/scripts/target/stm32w108_stlink.cfg share/openocd/scripts/target/stm32xl.cfg share/openocd/scripts/target/str710.cfg share/openocd/scripts/target/str730.cfg @@ -462,6 +480,7 @@ share/openocd/scripts/target/str912.cfg share/openocd/scripts/target/swj-dp.tcl share/openocd/scripts/target/test_reset_syntax_error.cfg share/openocd/scripts/target/test_syntax_error.cfg +share/openocd/scripts/target/ti-ar7.cfg share/openocd/scripts/target/ti_calypso.cfg share/openocd/scripts/target/ti_dm355.cfg share/openocd/scripts/target/ti_dm365.cfg