Re: [Openocd-development] build openocd for arm

2010-04-27 Thread Nico Coesel
 -Original Message-
 From: Øyvind Harboe [mailto:oyvind.har...@zylin.com]
 Sent: dinsdag 27 april 2010 1:32
 To: Nico Coesel
 Cc: openocd-development@lists.berlios.de
 Subject: Re: [Openocd-development] build openocd for arm
 
 This no longer applies against origin/master.
 
 Could you update and repost the patches?

I'm afraid not. Moving to a new version of OpenOCD would require a lot of work 
which I don't have time for (blame the Boss). I had to modify some parts of 
OpenOCD quite heavily to get more speed out of it. Besides that, the apparatus 
which runs OpenOCD is at the assembly house so I have no means of testing 
anyway.
 
 Did you have to fix *all* those locations in jim.c?

For -Werror to shut up: yes.  I was almost tempted to turn -Werror off but I 
felt the 'this variable may be used unitialized' messages where too severe to 
dismiss :-)

Nico Coesel

___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] build openocd for arm

2010-04-26 Thread Nico Coesel
Øyvind, Yu,
I needed the attached patches to get OpenOCD 0.2 to compile for MIPS.

Met vriendelijke groet / Best regards,
DEA bv

ing. Nico Coesel 

Kweekgrasstraat 18
1313BX  Almere
tel: +31 (0)36 5343888
fax: +31 (0)36 5342244
e-mail: ncoe...@dealogic.nl
www.c-lock.nl
www.dealogic.nl

(op al onze leveringen van goederen en diensten zijn onze algemene voorwaarden 
van toepassing zoals gedeponeerd bij de KvK te Lelystad, inschrijfnummer 
39046783)

 -Original Message-
 From: Øyvind Harboe [mailto:oyvind.har...@zylin.com]
 Sent: zondag 25 april 2010 18:29
 To: Nico Coesel
 Cc: Yu Li; openocd-development@lists.berlios.de
 Subject: Re: [Openocd-development] build openocd for arm
 
 Please repost the patch if it was simply forgotten.
 
 The warning here is actually benign, but there is no way the
 compiler can know that.
 
 
 
 
 --
 Meet Zylin at ESC 2010 San Jose
 April 26 - 30. 2010
 http://www.zylin.com/events_esc2010.html
 
 
 Ø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 debugger and flash programmer


xscale_typecast.patch
Description: xscale_typecast.patch


arm_jtag_typecast.patch
Description: arm_jtag_typecast.patch


at91sam3_init.patch
Description: at91sam3_init.patch


jim_init.patch
Description: jim_init.patch
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] build openocd for arm

2010-04-26 Thread Øyvind Harboe
This no longer applies against origin/master.

Could you update and repost the patches?

Nit: remove commented out code.

Did you have to fix *all* those locations in jim.c?

If only some of those were necessary, then I would like to have those
split out into a separate commit.


-- 
Meet Zylin at ESC 2010 San Jose
April 26 - 30. 2010
http://www.zylin.com/events_esc2010.html


Ø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 debugger and flash programmer
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] build openocd for arm

2010-04-25 Thread Nico Coesel
Yu,
IMHO this has to do with the way arm_jtag.h is doing some obfusticated casts. 
IIRC I posted a patch to this list a couple of months ago. I ran into the same 
problem when compiling for MIPS.

Nico Coesel

-Oorspronkelijk bericht-
Van: openocd-development-boun...@lists.berlios.de namens Yu Li
Verzonden: za 4/24/10 15:44
Aan: openocd-development@lists.berlios.de
Onderwerp: [Openocd-development] build openocd for arm
 
hi,
i want to build openocd that can run on arm9.
i use,
$ CC=arm-linux-gcc ./configure --prefix=/opt/arm-openocd
--build=i686-pc-linux-gnu --host=arm-linux --target=arm-linux
--enable-parport --enable-maintainer-mode
$ make

but i got the error
arm_jtag.h: 81: error: cast increases required alignment of target type.
 even though i delete the -Werror option in Makefile, the error still
holded.

someone help me please.

My enviroment
gcc v4.3.2
openocd v0.4.0
Vmware kubuntu 9.04

___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] build openocd for arm

2010-04-25 Thread Øyvind Harboe
Please repost the patch if it was simply forgotten.

The warning here is actually benign, but there is no way the
compiler can know that.




-- 
Meet Zylin at ESC 2010 San Jose
April 26 - 30. 2010
http://www.zylin.com/events_esc2010.html


Ø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 debugger and flash programmer
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


[Openocd-development] build openocd for arm

2010-04-24 Thread Yu Li
hi,
i want to build openocd that can run on arm9.
i use,
$ CC=arm-linux-gcc ./configure --prefix=/opt/arm-openocd
--build=i686-pc-linux-gnu --host=arm-linux --target=arm-linux
--enable-parport --enable-maintainer-mode
$ make

but i got the error
arm_jtag.h: 81: error: cast increases required alignment of target type.
 even though i delete the -Werror option in Makefile, the error still
holded.

someone help me please.

My enviroment
gcc v4.3.2
openocd v0.4.0
Vmware kubuntu 9.04
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] build openocd for arm

2010-04-24 Thread Jörg Fischer
Hi,
Yu Li schrieb:

 i want to build openocd that can run on arm9.
 i use,
 $ CC=arm-linux-gcc ./configure --prefix=/opt/arm-openocd
 --build=i686-pc-linux-gnu --host=arm-linux --target=arm-linux
 --enable-parport --enable-maintainer-mode
 $ make
 
 but i got the error
 arm_jtag.h: 81: error: cast increases required alignment of target type.
  even though i delete the -Werror option in Makefile, the error still
 holded.

You could try adding --disable-werror  option to the configure script...

-- J. Fischer


___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development