Re: [Openocd-development] AT91SAM9 NAND Driver

2009-11-27 Thread Dean Glazeski
On Fri, Nov 27, 2009 at 7:13 PM, David Brownell wrote: > On Friday 27 November 2009, Dean Glazeski wrote: > > On Fri, Nov 27, 2009 at 2:12 AM, David Brownell > wrote: > > > > > On Monday 23 November 2009, Dean Glazeski wrote: > > > > point. The new play area is http://repo.or.cz/w/openocd/dngla

Re: [Openocd-development] [patch 1/3] target: groundwork for "reset-assert" event

2009-11-27 Thread David Brownell
On Thursday 26 November 2009, David Brownell wrote: > This defines a "reset-assert" event and a supporting utility > routine, and documents both how targets should implement it > and how config scripts should use it.  Core-specific updates > are needed to make this work. > --- > This is necessary f

Re: [Openocd-development] arm11 srst behavior

2009-11-27 Thread David Brownell
On Friday 16 October 2009, Øyvind Harboe wrote: > On Wed, Oct 14, 2009 at 7:03 PM, David Brownell wrote: > > On Tuesday 13 October 2009, Øyvind Harboe wrote: > >> > So I'd think the current code is behaving, modulo issues > >> > you might have with iMX31 ... > >> > >> The currrent code target/arm1

Re: [Openocd-development] [RFC] proposal to fix another regression

2009-11-27 Thread Zach Welch
On Fri, 2009-11-27 at 16:24 -0800, Zach Welch wrote: > Well, drat. The patch that I pushed had some unintended consequences. > Any Jim subcommand handlers' output now gets suppressed too, which > negatively affected my recently posted series to split apart the > top-level Jim handlers. The patche

[Openocd-development] [PATCH 2/2] improve command handler wrapper script

2009-11-27 Thread Zachary T Welch
Adds 'ocd_bouncer' in startup.tcl that is called as a helper for all command handlers, shrinking the embedded C wrapper to a mere stub. Jim handlers are called directly, simple handlers get called with the wrapper to capture and discard their output on error, and placeholders call help directly (t

[Openocd-development] [PATCH 1/2] add 'command type' introspective handler

2009-11-27 Thread Zachary T Welch
Adds the 'command' group handler, with the 'type' command producing a string that tells whether the given command is 'native' (for Jim-based command handlers), 'simple' (for simple built-in commands), 'group' for command group placeholders, and 'unknown' if not found in the command registration tab

Re: [Openocd-development] Radically improving out of the box performance for armX

2009-11-27 Thread Øyvind Harboe
On Sat, Nov 28, 2009 at 2:14 AM, David Brownell wrote: > On Thursday 26 November 2009, Øyvind Harboe wrote: >> On Fri, Nov 27, 2009 at 8:40 AM, David Brownell wrote: >> > On Thursday 26 November 2009, Ųyvind Harboe wrote: >> >> How about enabling fast/DCC memory transfers by default? >> > >> > Th

Re: [Openocd-development] Radically improving out of the box performance for armX

2009-11-27 Thread David Brownell
On Thursday 26 November 2009, Øyvind Harboe wrote: > On Fri, Nov 27, 2009 at 8:40 AM, David Brownell wrote: > > On Thursday 26 November 2009, Ųyvind Harboe wrote: > >> How about enabling fast/DCC memory transfers by default? > > > > This was previously the default on many systems, so not > > havin

Re: [Openocd-development] AT91SAM9 NAND Driver

2009-11-27 Thread David Brownell
On Friday 27 November 2009, Dean Glazeski wrote: > On Fri, Nov 27, 2009 at 2:12 AM, David Brownell wrote: > > > On Monday 23 November 2009, Dean Glazeski wrote: > > > point. The new play area is http://repo.or.cz/w/openocd/dnglaze.git. > > I've > > > > I merged a few of these. The page command

Re: [Openocd-development] [RFC] proposal to fix another regression

2009-11-27 Thread Zach Welch
Well, drat. The patch that I pushed had some unintended consequences. Any Jim subcommand handlers' output now gets suppressed too, which negatively affected my recently posted series to split apart the top-level Jim handlers. While I am impacted severely, most everything that worked before my ref

Re: [Openocd-development] [PATCH] fix regression causing duplicated output

2009-11-27 Thread Zach Welch
I just pushed a slightly improved version of the patch, which improves the fallback logic. It also uses the same trick for the help fallback, which was broken in the original version below. --Z On Fri, 2009-11-27 at 14:08 -0800, Zachary T Welch wrote: > The command refactoring caused subcommand

Re: [Openocd-development] Radically improving out of the boxperformance for armX

2009-11-27 Thread Duane Ellis
Øyvind > How about enabling fast/DCC memory transfers by default? Yes, why not - now that we have (a) good TAP identification place. (b) good number of board configurations (c) Many things have a workbuffer in the cfg file.. Then, it is a no-brainer to enable that feature by default. -Duane.

[Openocd-development] [PATCH] fix regression causing duplicated output

2009-11-27 Thread Zachary T Welch
The command refactoring caused subcommand handlers to produce duplicate output when run. The problem was introduced by failing to ensure all such invocations went through a top-level "catcher" script, prefixing the command name with the 'ocd_' prefix and consuming its results. The fix is to ensur

Re: [Openocd-development] [Patch 0/8] more command cleaning

2009-11-27 Thread Zach Welch
On Fri, 2009-11-27 at 12:47 -0800, David Brownell wrote: > On Friday 27 November 2009, Zach Welch wrote: > > > And what might have caused "nand list" output to repeat? As if > > > the command got called twice... > > Saw the same with "arm reg". Do all commands repeat their output? All not-top-l

Re: [Openocd-development] [PATCH] pull request: Typos and documentation fixes

2009-11-27 Thread Uwe Hermann
On Thu, Nov 26, 2009 at 11:46:03AM -0800, David Brownell wrote: > On Thursday 26 November 2009, Zach Welch wrote: > > For the future, commit messages should have a short subject line and at > > least one line of description. > > Agreed with the usual exception: there are minor patches > where th

Re: [Openocd-development] [Patch 0/8] more command cleaning

2009-11-27 Thread David Brownell
On Friday 27 November 2009, Zach Welch wrote: > > And what might have caused "nand list" output to repeat?  As if > > the command got called twice... Saw the same with "arm reg". Do all commands repeat their output? > > > nand list > > #0: NAND 1GiB 3,3V 8-bit (Micron) pagesize: 2048, buswidth:

Re: [Openocd-development] Fix interface regression

2009-11-27 Thread Øyvind Harboe
On Fri, Nov 27, 2009 at 9:16 PM, Zach Welch wrote: > On Fri, 2009-11-27 at 20:48 +0100, Øyvind Harboe wrote: >> On Fri, Nov 27, 2009 at 8:00 PM, Zach Welch wrote: >> > On Fri, 2009-11-27 at 19:52 +0100, Øyvind Harboe wrote: >> >> Fixes regression in interface command registration. >> >> >> >> mas

Re: [Openocd-development] Fix interface regression

2009-11-27 Thread Zach Welch
On Fri, 2009-11-27 at 20:48 +0100, Øyvind Harboe wrote: > On Fri, Nov 27, 2009 at 8:00 PM, Zach Welch wrote: > > On Fri, 2009-11-27 at 19:52 +0100, Øyvind Harboe wrote: > >> Fixes regression in interface command registration. > >> > >> master branch currently fails to build with --enable-minidrive

Re: [Openocd-development] Fix interface regression

2009-11-27 Thread Øyvind Harboe
On Fri, Nov 27, 2009 at 8:00 PM, Zach Welch wrote: > On Fri, 2009-11-27 at 19:52 +0100, Øyvind Harboe wrote: >> Fixes regression in interface command registration. >> >> master branch currently fails to build with --enable-minidriver-dummy >> (and other interfaces). > > Do not apply.  The register

Re: [Openocd-development] Fix interface regression

2009-11-27 Thread Zach Welch
On Fri, 2009-11-27 at 11:00 -0800, Zach Welch wrote: > On Fri, 2009-11-27 at 19:52 +0100, Øyvind Harboe wrote: > > Fixes regression in interface command registration. > > > > master branch currently fails to build with --enable-minidriver-dummy > > (and other interfaces). > > Do not apply. The r

Re: [Openocd-development] Fix interface regression

2009-11-27 Thread Zach Welch
On Fri, 2009-11-27 at 19:52 +0100, Øyvind Harboe wrote: > Fixes regression in interface command registration. > > master branch currently fails to build with --enable-minidriver-dummy > (and other interfaces). Do not apply. The register_commands callback was removed on purpose, as it does not pr

[Openocd-development] Fix interface regression

2009-11-27 Thread Øyvind Harboe
Fixes regression in interface command registration. master branch currently fails to build with --enable-minidriver-dummy (and other interfaces). -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debug

Re: [Openocd-development] [Patch 0/8] more command cleaning

2009-11-27 Thread Zach Welch
On Thu, 2009-11-26 at 23:37 -0800, David Brownell wrote: > On Thursday 26 November 2009, Øyvind Harboe wrote: > > Does this change the syntax for scripts? > > And what might have caused "nand list" output to repeat? As if > the command got called twice... > > > nand list > #0: NAND 1GiB 3,3V 8-b

Re: [Openocd-development] [PATCH 5/8] add more stub handlers to testee target

2009-11-27 Thread Øyvind Harboe
On Fri, Nov 27, 2009 at 6:13 PM, Zach Welch wrote: > On Fri, 2009-11-27 at 07:56 +0100, Øyvind Harboe wrote: >> What's this??? A pure virtual test target? >> >> Does it work with the dummy interface and faux flash driver? >> >> Would be neat :-) > > That's the idea.  It's a work in progress that w

Re: [Openocd-development] [PATCH 5/8] add more stub handlers to testee target

2009-11-27 Thread Zach Welch
On Fri, 2009-11-27 at 07:56 +0100, Øyvind Harboe wrote: > What's this??? A pure virtual test target? > > Does it work with the dummy interface and faux flash driver? > > Would be neat :-) That's the idea. It's a work in progress that went in during my initial command registration restructuring,

Re: [Openocd-development] [Patch 0/8] more command cleaning

2009-11-27 Thread Zach Welch
On Fri, 2009-11-27 at 07:55 +0100, Øyvind Harboe wrote: > Does this change the syntax for scripts? No, but it does extend it. All relevant top-level commands have been made available underneath the jtag and target-instance commands. --Z ___ Openocd-dev

Re: [Openocd-development] AT91SAM9 NAND Driver

2009-11-27 Thread Dean Glazeski
On Fri, Nov 27, 2009 at 2:12 AM, David Brownell wrote: > On Monday 23 November 2009, Dean Glazeski wrote: > > point. The new play area is http://repo.or.cz/w/openocd/dnglaze.git. > I've > > I merged a few of these. The page command refactoring: > > + if (oob && NAND_CMD_READ0 && nand->pa

Re: [Openocd-development] AT91SAM9 NAND Driver

2009-11-27 Thread David Brownell
On Monday 23 November 2009, Dean Glazeski wrote: > point.  The new play area is http://repo.or.cz/w/openocd/dnglaze.git.  I've I merged a few of these. The page command refactoring: + if (oob && NAND_CMD_READ0 && nand->page_size <= 512) { + cmd = NAND_CMD_READOOB; + }

Re: [Openocd-development] Radically improving out of the boxperformance for armX

2009-11-27 Thread Øyvind Harboe
On Fri, Nov 27, 2009 at 8:58 AM, Nico Coesel wrote: >> -Original Message- >> From: openocd-development-boun...@lists.berlios.de [mailto:openocd- >> development-boun...@lists.berlios.de] On Behalf Of Øyvind Harboe >> Sent: vrijdag 27 november 2009 7:59 >> To: openocd-development@lists.berli