On Sat, 4 Jan 2014, Bill Traynor wrote:

> On Sat, Jan 4, 2014 at 6:34 PM, Robert P. J. Day <[email protected]> 
> wrote:

> > Runtime Error: embedded:startup.tcl:20: Unknown target type cortex_a,
> > try one of arm7tdmi, arm9tdmi, arm920t, arm720t, arm966e, arm946e,
> > arm926ejs, fa526, feroceon, dragonite, xscale, cortex_m, cortex_a8,
> > cortex_r4, arm11, mips_m4k, avr, dsp563xx, dsp5680xx, testee,
> > avr32_ap7k,  or hla_target
> > in procedure 'script'
> > at file "embedded:startup.tcl", line 58
> > at file "/usr/share/openocd/scripts/board/ti_beagleboard_xm.cfg", line 5
> > in procedure 'target' called at file 
> > "/usr/share/openocd/scripts/target/amdm37x.cfg", line 144
> > in procedure 'ocd_bouncer'
> > at file "embedded:startup.tcl", line 20
> > #
> >
> >   "Unknown target type cortex_a"?
> >
> > if i go to line 144 of the config file, sure enough, i find:
> >
> > target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap
> >
> > should that instead say "cortex_a8"? is this really a bug in openocd?
> > has anyone else tried this?
>
> Yes, and it used to work.  Did the cfg file get patched for cortex_a.

  right now, the git repo for openocd shows line 144 from
tcl/target/amdm37x.cfg as:

target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap

and the git log for openocd seems fairly insistent that this is the
right target type, despite it being flagged as invalid. is it still
supposed to be patched? here's the openocd patch page from elinux:

  http://elinux.org/OpenOCD_Patches

which goes way back to openocd 0.5.0. should that still be applied?
seems like a long time for an essential patch to not be upstreamed.

> I'd also recommend NOT using the distros OpenOCD, but rather using
> the latest version in OpenOCDs Git repo.

  normally, i'd agree, but the yum installable openocd package for
fedora 20 is, in fact, version 0.7.0, which is the latest official
release. so i'll try both and see if it makes a difference. back
shortly ...

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to