public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Basic question: how to flash omap system with ccs?
@ 2005-11-28 13:19 Kipisz, Steven
  2005-11-28 13:36 ` Li Weichen
  2005-11-28 15:18 ` Basic question: how to flash omap system with ccs? Olav Kongas
  0 siblings, 2 replies; 10+ messages in thread
From: Kipisz, Steven @ 2005-11-28 13:19 UTC (permalink / raw)
  To: Olav Kongas, Li Weichen; +Cc: linux-omap-open-source

CCS 3.1 supports ELF file formats, which is the same format as the
u-boot executable.  You should be able to use a CCS gel file to
configure SDRAM, peripherals, etc. so that CCS can load u-boot into
SDRAM and run it.  Once u-boot is running, you download u-boot.bin and
write it to flash.  If anybody has a gel file for a 5912, he/she could
probably send it to you.  I've don't this with other OMAP platforms.

The SRAM option sounds interesting.  You could probably build u-boot for
SDRAM (the normal build) and save the binary file as something like
u-boot-sdram.bin.  Then build a SRAM version - look at
u-boot/board/omap5912osk/config.mk.  The TEXT_BASE value is where u-boot
will load.  Change this to a SRAM area, rebuild u-boot, and use CCS to
download the ELF format u-boot.  Once that is running in SRAM, download
and flash the SDRAM version .bin file.  I've never tried this, but it
sounds like it might work, assuming the binary image and the executing
image fit into the 250k SRAM.

Steve K.

-----Original Message-----
From: linux-omap-open-source-bounces@linux.omap.com
[mailto:linux-omap-open-source-bounces@linux.omap.com] On Behalf Of Olav
Kongas
Sent: Sunday, November 27, 2005 3:55 PM
To: Li Weichen
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: Basic question: how to flash omap system with ccs?



On Sun, 27 Nov 2005, Li Weichen wrote:

> Hi all,
> 
> I have an TI XDS560 emulator and CCS 3.1 by hand.  Can I load the
> bootloader, kernel and file system with them?  I have never used CCS
before,
> so I eagerly hope someone could show me the steps or where I can find
the
> answer.

I'm right now working on the same problem. I'm using XDS510 
if that matters. The aim is to transfer u-boot to omap5912's 
SRAM and then burn it into the virgin onboard flash of our 
custom board. I plan to transfer kernel and the rest later 
when already booted up from u-boot.

Initially I started to modify u-boot so that it could run in 
SRAM, with jtag connected, so that I could use u-boot 
functionality to burn itself into flash. However, it turned 
out more and more changes to u-boot were needed so I decided 
to whip up a little custom flash programmer for that.

The scheme is the following: the u-boot image will be 
appended to the flash programmer image, the result will be 
converted to the TI's COFF format and transferred from CCS 
over jtag to omap's SRAM, where the programmer will be 
started.

I have CCS and jtag emulator working. I really recommend to 
carefully read the instructions at Spectrum Digital's 
webpage on how to set it all correctly up. I have written a 
little COFF header generator to convert raw images into TI's 
COFF; that's the format the CCS agrees to load over jtag. If 
you want the tool just let me know. Currently I am working 
on the flash programmer. 

Olav

_______________________________________________
Linux-omap-open-source mailing list
Linux-omap-open-source@linux.omap.com
http://linux.omap.com/mailman/listinfo/linux-omap-open-source

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-11-29  2:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-28 13:19 Basic question: how to flash omap system with ccs? Kipisz, Steven
2005-11-28 13:36 ` Li Weichen
2005-11-28 14:09   ` is the OMAP5912 support boot by NAND flash? andy
2005-11-28 23:59     ` Kyungmin Park
2005-11-29  0:25       ` andy
2005-11-29  2:14         ` Kyungmin Park
2005-11-29  2:31           ` andy
2005-11-29  2:41             ` Kyungmin Park
2005-11-29  2:52               ` andy
2005-11-28 15:18 ` Basic question: how to flash omap system with ccs? Olav Kongas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox