On 26 Oct, 2009, at 16:30, David Kaplan wrote:

> I'm a JTAG newbie and I was wondering if anyone would be kind enough  
> to help me out.
>
> I have managed to get hold of some GPS replacement boards that have  
> a Samsung S3C2410A (ARM9) chip and Samsung K9F5608U0D flash mem.
> I have managed to install OpenOCD (linux version) and it seems that  
> it's recognising my Amontec JTAG key correctly.
> I am going to be soldering the prerequisite JTAG interface onto the  
> board this evening.
> However I have a few questions of how to proceed from there.
>
> The aim at the moment is to flash u-boot to the flash. But I have no  
> idea how to do that. My current openocd config looks as follows:
>
> interface ft2232
> ft2232_device_desc "Amontec JTAGkey A"
> ft2232_layout jtagkey
> ft2232_vid_pid 0x0403 0xcff8
> jtag_speed 0
>
> How to I now tell the JTAG that it needs to deal with an ARM9 chip,  
> flash a .bin file to it etc. etc.?
>
> I've tried searching the net for this info but everything seems a  
> bit confusing and I was wondering if anyone would be happy to help  
> clear it up for me?

Google may be your friend, but your *best* friend is still grep :-)

So I hope you read the README when compiling openOCD - there's some  
Amontec specific stuff there.

Then the docs say that ideally you want to use a config file that  
someone has already written.

Your friendly grep will tell you that the sneakily named tcl/interface/ 
chameleon.cfg, jtagkey-tiny.cfg and jtagkey.cfg have Amontec-specific  
stuff. I hope one of them works for you.

Then you need a .cfg for your board and possibly the target chip. I  
found tcl/target/samsung_s3c2440.cfg and samsung_s3c6410 AND  
smdk6410.cfg for Samsung chips. I don't know f they're close enough.

Want 2410. Have 2440 and 6410. Hmmm. Perhaps take the first half of  
the 24.40 file and the second half of one of the 64.10 files?  :-)

I don't know what a GPS replacement board is, but some of the boards  
have Samsung flash. E.g.

tcl/board/unknown-board-atmel-at91sam9260.cfg:  #mww 0xffffea08  
0x85227259         # SDRAMC_CR : Configure SDRAM (2 x Samsung  
K4S561632H-UC75 : 4M x 16Bit x 4 Banks)

If you need to create your own board .cfg file, they might be good to  
start looking.


In the end, you want your openocd.cfg to look something like

source [find interface/jtagkey.cfg]
source [find board/my_gps_board.cfg]
source [find target/samsung_s3c2410.cfg]

(if you put your created board and target .cfg files with wherever the  
others were installed.)

Then, if openocd starts up OK (as a server) you can telnet to it using:

telnet localhost 4444

That gives you an OpenOCD prompt, at which you type:

help

Then you can inspect memory and dump_image and load stuff into etc.


I hope that's some help - but I'm not an expert so caveat emptor, or  
cave canem or something.

--colin

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to