* 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
* RE: Basic question: how to flash omap system with ccs?
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 15:18 ` Basic question: how to flash omap system with ccs? Olav Kongas
1 sibling, 1 reply; 10+ messages in thread
From: Li Weichen @ 2005-11-28 13:36 UTC (permalink / raw)
To: 'Kipisz, Steven', 'Olav Kongas'; +Cc: linux-omap-open-source
Hi Steven,
Thank you for your reply. But I cannot find how to download a file to the
board in CCS since I am quite unfamiliar with this software. Could you
please be so kind to show me?
Thanks and best regards!
Li Weichen
2005-11-28
> -----Original Message-----
> From: Kipisz, Steven [mailto:s-kipisz2@ti.com]
> Sent: Monday, November 28, 2005 9:20 PM
> To: Olav Kongas; Li Weichen
> Cc: linux-omap-open-source@linux.omap.com
> Subject: RE: Basic question: how to flash omap system with ccs?
>
> 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
* is the OMAP5912 support boot by NAND flash?
2005-11-28 13:36 ` Li Weichen
@ 2005-11-28 14:09 ` andy
2005-11-28 23:59 ` Kyungmin Park
0 siblings, 1 reply; 10+ messages in thread
From: andy @ 2005-11-28 14:09 UTC (permalink / raw)
To: linux-omap-open-source
Dear all,
Is the OMAP5912 support boot by NAND flash , Please ?
Best Regards
Andy Lu
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: is the OMAP5912 support boot by NAND flash?
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
0 siblings, 1 reply; 10+ messages in thread
From: Kyungmin Park @ 2005-11-28 23:59 UTC (permalink / raw)
To: 'andy', linux-omap-open-source
Hi
> Is the OMAP5912 support boot by NAND flash , Please ?
>
Since OMAP5912 don't have a NAND or OneNAND flash, we need some daughter
board,
First check the following URL.
http://source.mvista.com/git/gitweb.cgi?p=xloader.git;a=log
Now OMAP5912 can boot with OneNAND instead of NAND
But IMHO It can also boot with NAND.
Regards
Kyungmin Park
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: is the OMAP5912 support boot by NAND flash?
2005-11-28 23:59 ` Kyungmin Park
@ 2005-11-29 0:25 ` andy
2005-11-29 2:14 ` Kyungmin Park
0 siblings, 1 reply; 10+ messages in thread
From: andy @ 2005-11-29 0:25 UTC (permalink / raw)
To: kyungmin.park, linux-omap-open-source
Dear Kyungmin,
Did you mean that I can use NOR interface and configure to NAND protocol?
Best Regards
Andy Lu
-----Original Message-----
From: Kyungmin Park [mailto:kyungmin.park@samsung.com]
Sent: Tuesday, November 29, 2005 7:59 AM
To: 'andy'; linux-omap-open-source@linux.omap.com
Subject: RE: is the OMAP5912 support boot by NAND flash?
Hi
> Is the OMAP5912 support boot by NAND flash , Please ?
>
Since OMAP5912 don't have a NAND or OneNAND flash, we need some daughter
board,
First check the following URL.
http://source.mvista.com/git/gitweb.cgi?p=xloader.git;a=log
Now OMAP5912 can boot with OneNAND instead of NAND
But IMHO It can also boot with NAND.
Regards
Kyungmin Park
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: is the OMAP5912 support boot by NAND flash?
2005-11-29 0:25 ` andy
@ 2005-11-29 2:14 ` Kyungmin Park
2005-11-29 2:31 ` andy
0 siblings, 1 reply; 10+ messages in thread
From: Kyungmin Park @ 2005-11-29 2:14 UTC (permalink / raw)
To: 'andy', linux-omap-open-source
>
> Did you mean that I can use NOR interface and configure to
> NAND protocol?
No. NAND can't use NOR interface.
That for OneNAND which has NOR interface with NAND core
You can also refer to http://linux.omap.com/pub/xloader/source/
The old version has NAND boot on omap730
But I'm not sure it's code is working?
Thank you
Kyungmin Park
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: is the OMAP5912 support boot by NAND flash?
2005-11-29 2:14 ` Kyungmin Park
@ 2005-11-29 2:31 ` andy
2005-11-29 2:41 ` Kyungmin Park
0 siblings, 1 reply; 10+ messages in thread
From: andy @ 2005-11-29 2:31 UTC (permalink / raw)
To: kyungmin.park, linux-omap-open-source
Dear Kyungmin,
As TRM said, we can configure to Address/data multiplexed
Mode for EMIF port, so I think we can use NOR interface,
Do you think so?
Best Regards
Andy Lu
-----Original Message-----
From: Kyungmin Park [mailto:kyungmin.park@samsung.com]
Sent: Tuesday, November 29, 2005 10:14 AM
To: 'andy'; linux-omap-open-source@linux.omap.com
Subject: RE: is the OMAP5912 support boot by NAND flash?
>
> Did you mean that I can use NOR interface and configure to
> NAND protocol?
No. NAND can't use NOR interface.
That for OneNAND which has NOR interface with NAND core
You can also refer to http://linux.omap.com/pub/xloader/source/
The old version has NAND boot on omap730
But I'm not sure it's code is working?
Thank you
Kyungmin Park
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: is the OMAP5912 support boot by NAND flash?
2005-11-29 2:31 ` andy
@ 2005-11-29 2:41 ` Kyungmin Park
2005-11-29 2:52 ` andy
0 siblings, 1 reply; 10+ messages in thread
From: Kyungmin Park @ 2005-11-29 2:41 UTC (permalink / raw)
To: 'andy', linux-omap-open-source
>
> As TRM said, we can configure to Address/data multiplexed
> Mode for EMIF port, so I think we can use NOR interface,
> Do you think so?
>
Maybe you mean NOR interface is EMIFS, yes, NAND can use EMIFS
we also tested NAND on OMAP5912 but not tested NAND booting.
Regards
Kyungmin Park
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: is the OMAP5912 support boot by NAND flash?
2005-11-29 2:41 ` Kyungmin Park
@ 2005-11-29 2:52 ` andy
0 siblings, 0 replies; 10+ messages in thread
From: andy @ 2005-11-29 2:52 UTC (permalink / raw)
To: kyungmin.park, linux-omap-open-source
Good , I will try it later.
Thank you very much!!
Best Regards
Andy Lu
-----Original Message-----
From: Kyungmin Park [mailto:kyungmin.park@samsung.com]
Sent: Tuesday, November 29, 2005 10:42 AM
To: 'andy'; linux-omap-open-source@linux.omap.com
Subject: RE: is the OMAP5912 support boot by NAND flash?
>
> As TRM said, we can configure to Address/data multiplexed
> Mode for EMIF port, so I think we can use NOR interface,
> Do you think so?
>
Maybe you mean NOR interface is EMIFS, yes, NAND can use EMIFS
we also tested NAND on OMAP5912 but not tested NAND booting.
Regards
Kyungmin Park
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Basic question: how to flash omap system with ccs?
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 15:18 ` Olav Kongas
1 sibling, 0 replies; 10+ messages in thread
From: Olav Kongas @ 2005-11-28 15:18 UTC (permalink / raw)
To: Kipisz, Steven; +Cc: linux-omap-open-source
Hi Steven,
On Mon, 28 Nov 2005, Kipisz, Steven wrote:
> 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.
I did not know about ELF format support. Thanks. Knowing
that would have saved me a half day.
I'll look into the gel files to see, whether setting up the
EMIFS for my flash (if I need to do this at all) is easier
in gel files than in my flash programmer. Though, I really
prefer the situation, where just calling 'make' would build
me an image (COFF or ELF) that can be directly loaded also
by future versions of CCS without the need to hack gel
files.
> 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.
I tried converting u-boot to run from SRAM. I managed to
change the relevant bits like TEXT_BASE, stack location,
heap size, etc. But when u-boot, already running in SRAM,
changed SoC's clocks then my jtag started to report "cannot
halt processor" or the like. Is my jtag connection fragile
or what, but I decided to minimize the dependence on it and
go with a dedicated, tiny, non-time-critical flash
programmer.
For omap5912, I don't see a reason of initializing sdram in
the flash burning phase at all. Even if one would burn with
an sram-specific u-boot (instead of a dedicated flash
programmer), both sram-specific and sdram-specific u-boot
images should fit simultaneously into the 250k of sram. For
SoC's with smaller srams it may be necessary, however.
Thanks a lot for the info,
Olav
^ 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