Re: [Openocd-development] platform survey

2009-06-25 Thread Zach Welch
Whoops. With multiple concurrent choices, the data won't tell me about "user count", as designed. *sigh*. However, your survey could still be useful, because it can gather information about all of the platforms on which OpenOCD is being used (if people figure out they can fill in their own "othe

Re: [Openocd-development] Dynamic library loading

2009-06-25 Thread Øyvind Harboe
> FWIW, this will not bring GPL-compliance.  Is that the goal, or just > loadable library support?  I am in favor of this later, but I thought > you were pushing for the former. Under Windows an executable will fail to load if it links implicitly to a dll even if that dll is not used. It's prefec

[Openocd-development] packaging OpenOCD for 0.2.0

2009-06-25 Thread Zach Welch
Hi all, Here is my summary of what I think needs to be done to prepare for a "source-only" 0.2.0 release, which will help promote OpenOCD and maybe attract new developers that can help fix the binary distribution issue. Solutions for that problem can manifest themselves and be used with this relea

Re: [Openocd-development] Fix Rev 2403 build on Windows

2009-06-25 Thread Øyvind Harboe
On Fri, Jun 26, 2009 at 1:01 AM, Martin Panter wrote: > On 25/06/2009, Øyvind Harboe wrote: >>  Attached is a patch that removes alloca(). > > From the patch: > -       return ERROR_OK; > + > +       r=ERROR_OK; > +exit_fn: > +       free(pagebuffer); > +       return retval; > > Is it just me, or

Re: [Openocd-development] Dynamic library loading

2009-06-25 Thread Freddie Chopin
Zach Welch pisze: > FWIW, this will not bring GPL-compliance. How could that possibly bring GPL compliance? > Is that the goal, or just > loadable library support? I am in favor of this later, but I thought > you were pushing for the former. Later. > I want to see a patch before commenting abo

Re: [Openocd-development] platform survey

2009-06-25 Thread Dean Glazeski
This poll does allow you to vote for more than one choice and the other is actually has an input box so people can enter something if it isn't there. Not sure if that's the best, but I've never made a survey before :). // Dean On 06/25/2009 08:16 PM, Zach Welch wrote: Thanks for the construc

Re: [Openocd-development] platform survey

2009-06-25 Thread Zach Welch
Thanks for the constructive alternative; I knew someone would fine one. This would be acceptable too, except it can be gamed. Unfortunately, this is a tricky proposition... I am not sure if on-line voting can be fully trusted in any form at this point in time, even with registration. So, we might

Re: [Openocd-development] platform survey

2009-06-25 Thread Dean Glazeski
Hi all, Here's some random place I found that hosts polls. See if you can vote here. It doesn't appear to require a login to work: http://www.freepollhosting.com/directory.php?id=437&page=6&pop= The site seems still beta, b

Re: [Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread Alain Mouette
Michel Catudal escreveu: >> >> I am curious... what hosts does it build properly right out of the box? > > Fedora, SuSE, Mandriva and most likely Slackware. Not really. It does compile but it is difficult to get it to compile the first time, problems usualy with dependecies and figuring out how

Re: [Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread Michel Catudal
Thomas A. Moulton a écrit : > On Thu, 2009-06-25 at 17:05 -0300, Alain Mouette wrote: > >> Building OpenOCD is far more complex then it should be :( >> >> I also had a few problems building on Ubuntu 8.04. I made a detailed >> report on the problems, so that they could be improved. Unfortunatel

Re: [Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread Thomas A. Moulton
On Thu, 2009-06-25 at 13:26 -0700, David Brownell wrote: > On Thursday 25 June 2009, Alain Mouette wrote: > > Building OpenOCD is far more complex then it should be :( > > > > I also had a few problems building on Ubuntu 8.04. I made a detailed > > report on the problems, so that they could be im

Re: [Openocd-development] Fix Rev 2403 build on Windows

2009-06-25 Thread Martin Panter
On 25/06/2009, Øyvind Harboe wrote: > Attached is a patch that removes alloca(). From the patch: - return ERROR_OK; + + r=ERROR_OK; +exit_fn: + free(pagebuffer); + return retval; Is it just me, or are you assigning everything to "r" and then returning "retval" ins

Re: [Openocd-development] License

2009-06-25 Thread Zach Welch
On Thu, 2009-06-25 at 17:01 +0200, Freddie Chopin wrote: > Zach Welch pisze: > > Technically, I agree. Politically, I think it better to find a solution > > for binary distribution. That said, the technical argument probably > > deserves to win. Others need to provide feedback; I will not dictat

Re: [Openocd-development] [windows + openocd] GPL implementation of libd2xx.dll ?

2009-06-25 Thread Zach Welch
On Fri, 2009-06-26 at 00:21 +0159, Maciej Grela wrote: > Hi, > > A friend of mine pointed me to the threads concerning > GPL/windows/building/libftdi/libusb/libd2xx. After reading all this an > idea came to my head - what if we implement our own GPL/LGPL version > of libd2xx.dll ? [snip] My conce

Re: [Openocd-development] Dynamic library loading

2009-06-25 Thread Zach Welch
On Thu, 2009-06-25 at 22:25 +0100, Spencer Oliver wrote: > > > you are using the wrong calling convention if this happens. > > > Note the WINAPI > > > > Dude - you rule! That was exactly the problem - I've copied > > the typedef for pointers from msdn and the example used > > __cdecl instead of

Re: [Openocd-development] platform survey

2009-06-25 Thread Zach Welch
On Thu, 2009-06-25 at 19:19 +0200, Michael Schwingen wrote: > Zach Welch wrote: > > Hi all, > > > > Michael Fischer posted the following survey on the SparkFun forum: > > > > http://forum.sparkfun.com/viewtopic.php?t=16044 > > > > Please _everyone_ register (sorry) and tell us what host OS you wan

[Openocd-development] [windows + openocd] GPL implementation of libd2xx.dll ?

2009-06-25 Thread Maciej Grela
Hi, A friend of mine pointed me to the threads concerning GPL/windows/building/libftdi/libusb/libd2xx. After reading all this an idea came to my head - what if we implement our own GPL/LGPL version of libd2xx.dll ? >From my investigation it seems, that the driver does all the hard work, the DLL it

Re: [Openocd-development] Compiling from svn on ubuntu 8.04 fails...

2009-06-25 Thread Alain Mouette
David Brownell escreveu: > On Thursday 25 June 2009, Alain Mouette wrote: >>> The 8.04 version is "too old" to work with current source. >> It is not too old, I managed to compile ok, in the end... >> >> The problem with that error is that it was trying to make a test program >> linking to /usr/

Re: [Openocd-development] Compiling from svn on ubuntu 8.04 fails...

2009-06-25 Thread David Brownell
On Thursday 25 June 2009, Alain Mouette wrote: > > > The 8.04 version is "too old" to work with current source. > > It is not too old, I managed to compile ok, in the end... > > The problem with that error is that it was trying to make a test program >   linking to /usr/lib/libftd2xx.so and it w

Re: [Openocd-development] Dynamic library loading

2009-06-25 Thread Spencer Oliver
> > you are using the wrong calling convention if this happens. > > Note the WINAPI > > Dude - you rule! That was exactly the problem - I've copied > the typedef for pointers from msdn and the example used > __cdecl instead of WINAPI. > Changing that with your suggestion fixed the problem [; >

Re: [Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread Alain Mouette
David Brownell escreveu: > On Thursday 25 June 2009, Alain Mouette wrote: >> Building OpenOCD is far more complex then it should be :( >> >> I also had a few problems building on Ubuntu 8.04. I made a detailed >> report on the problems, so that they could be improved. Unfortunately I >> got no e

Re: [Openocd-development] Compiling from svn on ubuntu 8.04 fails...

2009-06-25 Thread Alain Mouette
David Brownell escreveu: > On Thursday 11 June 2009, Alain Mouette wrote: >> and I get this error: >> checking for ftd2xx.h... yes >> checking for library containing FT_GetLibraryVersion... no >> configure: error: You appear to be missing the FTD2xx driver library. > > https://lists.berlios.de/pi

Re: [Openocd-development] Dynamic library loading

2009-06-25 Thread Freddie Chopin
Michael Fischer pisze: > this looks great. If you need someone for testing, > give me a note. > > Does it mean you need for each interface a dll? > In this case, perhapse I can try to "translate" > an interface for you. Unfortunatelly I'm not trying to implement drivers/modularity in OpenOCD,

Re: [Openocd-development] Dynamic library loading

2009-06-25 Thread Freddie Chopin
Spencer Oliver pisze: > you are using the wrong calling convention if this happens. > Note the WINAPI Dude - you rule! That was exactly the problem - I've copied the typedef for pointers from msdn and the example used __cdecl instead of WINAPI. Changing that with your suggestion fixed the proble

Re: [Openocd-development] Compiling from svn on ubuntu 8.04 fails...

2009-06-25 Thread David Brownell
On Thursday 11 June 2009, Alain Mouette wrote: > and I get this error: > checking for ftd2xx.h... yes > checking for library containing FT_GetLibraryVersion... no > configure: error: You appear to be missing the FTD2xx driver library. https://lists.berlios.de/pipermail/openocd-development/2009-Jun

Re: [Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread David Brownell
On Thursday 25 June 2009, Alain Mouette wrote: > Building OpenOCD is far more complex then it should be :( > > I also had a few problems building on Ubuntu 8.04. I made a detailed > report on the problems, so that they could be improved. Unfortunately I > got no echo from the list on these matte

Re: [Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread David Brownell
On Thursday 25 June 2009, Thomas A. Moulton wrote: > ./configure --enable-ft2232_libftdi --enable-jlink --enable-arm-jtag-ew > --enable-ioutil > > and I get > > checking Build & Link with libftdi.. configure: error: Cannot build > & run test program using libftdi Did you "sudo apt-get insta

Re: [Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread Thomas A. Moulton
On Thu, 2009-06-25 at 17:05 -0300, Alain Mouette wrote: > Building OpenOCD is far more complex then it should be :( > > I also had a few problems building on Ubuntu 8.04. I made a detailed > report on the problems, so that they could be improved. Unfortunately I > got no echo from the list on th

Re: [Openocd-development] Dynamic library loading

2009-06-25 Thread Spencer Oliver
> > The FT_Read is executed (via a function pointer of course), > and it returns. There is no OpenOCD error (so some status is > returned, the number of bytes is ok, and so on). The function > gets to it's end, but never returns to the caller. Windows > shows "access violation" exception, so I

Re: [Openocd-development] FT2232 & Windows - summary of options

2009-06-25 Thread Nico Coesel
>On Thu, Jun 25, 2009 at 7:20 PM, Nico Coesel wrote: >>> >>>I *know* there are hardware vendors out there that >>>are aching to use OpenOCD together with closed source target support, >>>and they *would* find any tiny loophole and throw money at lawyers to >>>exploit it. >> >> Sorry to hijack thi

Re: [Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread Alain Mouette
Building OpenOCD is far more complex then it should be :( I also had a few problems building on Ubuntu 8.04. I made a detailed report on the problems, so that they could be improved. Unfortunately I got no echo from the list on these matters :( Alain Thomas A. Moulton escreveu: > Ok this shoul

Re: [Openocd-development] first ftd2xx fix: documentation!

2009-06-25 Thread Freddie Chopin
Gene Smith pisze: > Maybe I'm missing the point but you can also build openocd with cygwin > using the gcc flag -mno-cygwin. You do need a finite number of cygwin > packages such as gcc, make etc beyond the default install. So more or less the same as with msys [; > The howto on this is on Spar

[Openocd-development] Building on Ubuntu (9.04)

2009-06-25 Thread Thomas A. Moulton
Ok this should be an easy one compared to what we have been dealing with :) I have check out out svn, ./bootstrap ./configure --enable-ft2232_libftdi --enable-jlink --enable-arm-jtag-ew --enable-ioutil and I get checking Build & Link with libftdi.. configure: error: Cannot build & run test

Re: [Openocd-development] first ftd2xx fix: documentation!

2009-06-25 Thread Gene Smith
Freddie Chopin wrote: > Main problem with build environment for Windows is that MinGW itself is > just a compiler, and MSYS is just a shell. You need like a dozen of > different addons for MSYS, and you need to compile them and install > them. It's not common knowledge for Windows user what is t

[Openocd-development] Dynamic library loading

2009-06-25 Thread Freddie Chopin
Hello list! I'm trying to make loading of libraries dynamic, so that those would not be required always - just when needed. I've created globals for function pointers, library handle. I open the library - everything is cool. I get processes addresses - still cool. I use some functions - cool.

Re: [Openocd-development] FT2232 & Windows - summary of options

2009-06-25 Thread Øyvind Harboe
> What I state here is not lack of respect to the license but what I ask > for is to interpret GPL as it was meant, not in some kind of tendentious > way. You know, if we *all* were reasonble and would intrepret things in the best meaning, then we wouldn't need a license at all. The license is th

Re: [Openocd-development] platform survey

2009-06-25 Thread Øyvind Harboe
On Thu, Jun 25, 2009 at 7:19 PM, Michael Schwingen wrote: > Zach Welch wrote: >> Hi all, >> >> Michael Fischer posted the following survey on the SparkFun forum: >> >>  http://forum.sparkfun.com/viewtopic.php?t=16044 >> >> Please _everyone_ register (sorry) and tell us what host OS you want to >> u

Re: [Openocd-development] FT2232 & Windows - summary of options

2009-06-25 Thread Øyvind Harboe
On Thu, Jun 25, 2009 at 7:20 PM, Nico Coesel wrote: >> >>I *know* there are hardware vendors out there that >>are aching to use OpenOCD together with closed source target support, >>and they *would* find any tiny loophole and throw money at lawyers to >>exploit it. > > Sorry to hijack this message.

Re: [Openocd-development] License

2009-06-25 Thread Michael Schwingen
Rob Barris wrote: > I have a few questions which I would like each regular contributor to > assess, if you can spare a few moments: > > a) is Rick's last sentence above one that you agree or disagree with ? > I agree technically. A release can be made in the current state, and I could live wit

Re: [Openocd-development] Fix Rev 2403 build on Windows

2009-06-25 Thread Øyvind Harboe
alloca()? That's very unfriendly towards non-MMU targets. Attached is a patch that removes alloca(). -- Øyvind Harboe Embedded software and hardware consulting services http://www.zylin.com Index: C:/workspace/openocd/src/flash/at91sam3.c

Re: [Openocd-development] FT2232 & Windows - summary of options

2009-06-25 Thread Nico Coesel
> >I *know* there are hardware vendors out there that >are aching to use OpenOCD together with closed source target support, >and they *would* find any tiny loophole and throw money at lawyers to >exploit it. Sorry to hijack this message. The whole situation made me wonder about MySQL several tim

[Openocd-development] [patch] openocd.texi - svf and xsvf commands

2009-06-25 Thread David Brownell
Add a short chapter on boundary scan support, which currently just documents the SVF and XSVF commands. --- doc/openocd.texi | 50 +- 1 file changed, 49 insertions(+), 1 deletion(-) Add a short chapter on boundary scan support, which currently jus

Re: [Openocd-development] platform survey

2009-06-25 Thread Michael Schwingen
Zach Welch wrote: > Hi all, > > Michael Fischer posted the following survey on the SparkFun forum: > > http://forum.sparkfun.com/viewtopic.php?t=16044 > > Please _everyone_ register (sorry) and tell us what host OS you want to > use OpenOCD with. It's not scientific or accurate, but comments cou

[Openocd-development] Fix Rev 2403 build on Windows

2009-06-25 Thread Freddie Chopin
Rev 2403 fails on Windows/MinGW, because: 1. there is no strtok_r(), but strtok() is reentrant, so use that patch file -> win32-strtok.patch That was discussed earlier in "[Openocd-development] [Openocd-svn] r2381 - trunk/src/helper" thread 2. alloca() needs malloc.h included patch file -> wi

Re: [Openocd-development] FT2232 & Windows - summary of options

2009-06-25 Thread Øyvind Harboe
Hi Pavel, welcome back it's been a while! I hope that you'll stick around to submit some more good patches. You've contributed lots of nice stuff in the past! GPL stops closed source target & interface for OpenOCD. That's one of the *main* reasons I got involved with OpenOCD in the first place.

Re: [Openocd-development] License

2009-06-25 Thread Freddie Chopin
Zach Welch pisze: > Technically, I agree. Politically, I think it better to find a solution > for binary distribution. That said, the technical argument probably > deserves to win. Others need to provide feedback; I will not dictate > our release goals, but I will help lead us to them. As Engli

Re: [Openocd-development] Creative summary of options for OpenOCDdistros

2009-06-25 Thread Freddie Chopin
Nico Coesel pisze: > Talking over de network may not be an option for Windows. A couple of > years aho I worked on a portable (Linux / Windows) client - server > application that used tcp/ip. On Linux this worked fine but on Windows > XP we quickly learned that many short packets takes a lot of CPU

Re: [Openocd-development] FT2232 & Windows - summary of options

2009-06-25 Thread Pavel Chromy
Hello list! Wookey napsal(a): > +++ Freddie Chopin [2009-06-24 16:56 +0200]: >> Important Qestion - Is OpenOCD meant for users to use, or just to be >> "100%-GPL-at-any-cost"? Good question! GPL is to bring free software to users, to support evolution of software, this is what was meant when th

Re: [Openocd-development] first ftd2xx fix: documentation!

2009-06-25 Thread Pavel Chromy
Hello Zach and the list, Zach Welch napsal(a): > It remains somewhat unclear to me exactly how badly distributors need to > see a solution today, when users (who are all developers, right?) should > be able to compile the code themselves and use the FTD2XX driver. I would like draw attention to

Re: [Openocd-development] Breakpoints do not work for LM3S6918 / Eclipse

2009-06-25 Thread Duane Ellis
Joe, Try adding this to your configuration file # gdb_memory_map enable # This tells openocd to inform GDB where 'flash lives' - thus GDB will attempt to use hardware breakpoints. You are also not paying attention to what GDB is telling you - when it "cannot find the bounds

Re: [Openocd-development] Summer coding project proposal

2009-06-25 Thread Zach Welch
On Thu, 2009-06-25 at 14:55 +0200, Michael Bruck wrote: > On Wed, Jun 24, 2009 at 17:34, Zach Welch wrote: > > On Wed, 2009-06-24 at 16:00 +0200, Michael Bruck wrote: > >> > >> The libusb improvements certainly sound interesting, however no one > >> has stepped forward to implement them or to pay s

Re: [Openocd-development] Summer coding project proposal

2009-06-25 Thread Michael Bruck
On Wed, Jun 24, 2009 at 17:34, Zach Welch wrote: > On Wed, 2009-06-24 at 16:00 +0200, Michael Bruck wrote: >> >> The libusb improvements certainly sound interesting, however no one >> has stepped forward to implement them or to pay someone to implement >> them. They may or may not also require some

Re: [Openocd-development] openocd, ftd2xx

2009-06-25 Thread Michael Bruck
On Wed, Jun 24, 2009 at 23:30, Duane Ellis wrote: > Zach Welch wrote: >> Hi all, >> >> Here is the full list of GPL-compliant solutions for libftd2xx GPL >> compliance, after further review, consideration, and enumeration: >> >> 1) Documentation:  build it yourself! >> 2) Build-Kit: automate the bu

Re: [Openocd-development] proposed FASTDATA bulk write optimizationfor mips_m4k file transfers

2009-06-25 Thread Øyvind Harboe
> I gave it a try but it doesn't apply to OpenOCD 0.1.0 > (jtag_get_end_state missing). It wouldn't. OpenOCD 0.1.0 is pretty ancient by now. Please try again with svn head. -- Øyvind Harboe Embedded software and hardware consulting services http://www.zylin.com _

Re: [Openocd-development] [patch] MIPS/EJTAG watchpoints support

2009-06-25 Thread Øyvind Harboe
Committed. Thanks! his patch replaces only comments where we have a false positive ERROR_OK today and a /* TODO*/ comment, so even if I can't review it from a MIPS point of view, I don't have a problem with committing it. -- Øyvind Harboe Embedded software and hardware consulting services http

Re: [Openocd-development] License

2009-06-25 Thread Zach Welch
On Thu, 2009-06-25 at 01:09 -0700, Rob Barris wrote: > On Jun 23, 2009, at 7:53 PM, Rick Altherr wrote: > > > Technically, nothing is required from the project-side. The > > infringement happens solely at the time of distribution, not at the > > time of authoring or compilation. Since OpenOCD is

Re: [Openocd-development] platform survey

2009-06-25 Thread Zach Welch
On Thu, 2009-06-25 at 11:12 +0200, freddie_cho...@op.pl wrote: > "Zach Welch" napisał(a): > > Hi all, > > > > Michael Fischer posted the following survey on the SparkFun forum: > > > > http://forum.sparkfun.com/viewtopic.php?t=16044 > > There are already some more votes here: > > http:

Re: [Openocd-development] platform survey

2009-06-25 Thread freddie_chopin
"Zach Welch" napisał(a): > Hi all, > > Michael Fischer posted the following survey on the SparkFun forum: > > http://forum.sparkfun.com/viewtopic.php?t=16044 There are already some more votes here: http://www.elektroda.pl/rtvforum/topic1347875.html You have to register to see the poll

Re: [Openocd-development] License

2009-06-25 Thread Rob Barris
On Jun 23, 2009, at 7:53 PM, Rick Altherr wrote: > Technically, nothing is required from the project-side. The > infringement happens solely at the time of distribution, not at the > time of authoring or compilation. Since OpenOCD is only released as > source code, the project is not directly a

[Openocd-development] platform survey

2009-06-25 Thread Zach Welch
Hi all, Michael Fischer posted the following survey on the SparkFun forum: http://forum.sparkfun.com/viewtopic.php?t=16044 Please _everyone_ register (sorry) and tell us what host OS you want to use OpenOCD with. It's not scientific or accurate, but comments could help fill in information gap

Re: [Openocd-development] openocd, ftd2xx

2009-06-25 Thread Zach Welch
On Thu, 2009-06-25 at 01:17 -0700, Rob Barris wrote: > On Jun 24, 2009, at 1:32 PM, openocd-development-requ...@lists.berlios.de > wrote: > > >>> > >>> 4) libftdi-ftd2xx: ABI compatible with libftdi, wraps ftd2xx > >> > >> > >> > >> How would ftd2xx be linked here? Via LoadLibrary (dlopen) and

Re: [Openocd-development] openocd, ftd2xx

2009-06-25 Thread Rob Barris
On Jun 24, 2009, at 1:32 PM, openocd-development-requ...@lists.berlios.de wrote: >>> >>> 4) libftdi-ftd2xx: ABI compatible with libftdi, wraps ftd2xx >> >> >> >> How would ftd2xx be linked here? Via LoadLibrary (dlopen) and >> friends? >> I'd volunteer to create such a solution. > > We build

Re: [Openocd-development] The OpenOCD Foundation

2009-06-25 Thread Zach Welch
On Wed, 2009-06-24 at 23:48 +0100, Wookey wrote: > +++ Zach Welch [2009-06-24 14:00 -0700]: > > On Wed, 2009-06-24 at 09:30 -0700, Zach Welch wrote: > > """ > > I hereby commit myself to donating all profits recovered in the pursuit > > of OpenOCD GPL violations on my behalf to a non-profit. I wo

Re: [Openocd-development] proposed FASTDATA bulk write optimizationfor mips_m4k file transfers

2009-06-25 Thread Nico Coesel
>From: openocd-development-boun...@lists.berlios.de [mailto:openocd-development-boun...@lists.berlios.de] On Behalf Of Nico >Coesel >Sent: woensdag 24 juni 2009 22:28 >To: openocd-development@lists.berlios.de >Subject: Re: [Openocd-development] proposed FASTDATA bulk write optimizationfor mips_m4k