From: "Li Weichen" <iaadoa@gmail.com>
To: "'Hunter, Jon'" <jon-hunter@ti.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: RE: Basic question: how to flash omap system with ccs?
Date: Fri, 2 Dec 2005 09:36:17 +0800 [thread overview]
Message-ID: <438fa51b.56e049f5.60f0.ffffe5d2@mx.gmail.com> (raw)
In-Reply-To: <C51F43ABFC95844490F0529B60753BF402B6B8D9@dlee02.ent.ti.com>
Hi Jon,
I have tried your instructions in CCS3.1, but it seems that there is
something wrong. When I use "Load Program..." command to load the file, I
usually get some error messages like "Data verification failed at address
0x10000000.Please verify target memory and memory map." and if I ignore this
and proceed to run, it seems that the u-boot is not flashed into the flash.
Does it mean that I still need a flash programmer as Olav said with CCS
loading the elf file?
p.s. I find that the CCS does not work steady and usually give me some
address error message. What may the problem be?
Thanks again.
Regards,
Li Weichen
> -----Original Message-----
> From: Hunter, Jon [mailto:jon-hunter@ti.com]
> Sent: Thursday, December 01, 2005 10:02 PM
> To: Li Weichen
> Subject: RE: Basic question: how to flash omap system with ccs?
>
> Hi Li,
>
> The "Load Program..." is the correct method. However, you must have CCS
> v3.x. Earlier versions of CCS does not support ELF loading.
>
> If possible, please post your questions to the linux-omap list and I
> will try to answer questions when I can.
>
> Regards,
> Jon
>
>
>
> > -----Original Message-----
> > From: Li Weichen [mailto:iaadoa@gmail.com]
> > Sent: Wednesday, November 30, 2005 7:47 PM
> > To: Hunter, Jon
> > Subject: RE: Basic question: how to flash omap system with ccs?
> >
> > Then how to download the elf file? I have tried the "load
> > program" command but got a lot of error messages. What
> > command should I use?
> >
> > Regards,
> > Li Weichen
> >
> > > -----Original Message-----
> > > From: Hunter, Jon [mailto:jon-hunter@ti.com]
> > > Sent: Thursday, December 01, 2005 1:51 AM
> > > To: Li Weichen
> > > Subject: RE: Basic question: how to flash omap system with ccs?
> > >
> > > Hi Li,
> > >
> > > The "u-boot" file is the ELF file. If you open this file
> > with a test
> > > editor you will see that it has the letters "ELF" as part
> > of the header.
> > >
> > >
> > > Regards,
> > > Jon
> > >
> > >
> > > > -----Original Message-----
> > > > From: Li Weichen [mailto:iaadoa@gmail.com]
> > > > Sent: Wednesday, November 30, 2005 11:31 AM
> > > > To: Hunter, Jon
> > > > Subject: RE: Basic question: how to flash omap system with ccs?
> > > >
> > > > Hi Jon,
> > > >
> > > > Firstly I'd like to thank you for your so quick reply.
> > > >
> > > > I didn't find the ELF file after compiling u-boot. I got u-boot,
> > > > u-boot.bin, u-boot.map and u-boot.srec. Where can I find the ELF
> > > > file?
> > > >
> > > > And if I finally got the ELF file, how to download it
> > using CCS? I
> > > > am sorry but I am so unfamiliar with this software that I
> > can't find
> > > > the command to download the ELF file.
> > > >
> > > > Thanks again and still waiting for your reply.
> > > >
> > > >
> > > > Regards,
> > > >
> > > > Li Weichen
> > > > 2005-12-1
> > > >
> > > > > -----Original Message-----
> > > > > From: Hunter, Jon [mailto:jon-hunter@ti.com]
> > > > > Sent: Thursday, December 01, 2005 1:16 AM
> > > > > To: Li Weichen
> > > > > Subject: RE: Basic question: how to flash omap system with ccs?
> > > > >
> > > > > Hi Li,
> > > > >
> > > > > Unfortunately, there is no easy way to do this unless you
> > > > create a CCS
> > > > > project for uboot. I have tried in the past but this is not
> > > > trivial to
> > > > > do. However, the good news is that you really do not need
> > > > to do this.
> > > > > If you compile uboot with the gcc tools on a linux
> > machine it will
> > > > > generate an ELF formated file of the uboot executable and
> > > > CCS can be
> > > > > used to download this ELF file. Let me know if I am missing
> > > > something.
> > > > >
> > > > > Regards,
> > > > > Jon
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Li Weichen [mailto:iaadoa@gmail.com]
> > > > > > Sent: Wednesday, November 30, 2005 10:50 AM
> > > > > > To: Hunter, Jon
> > > > > > Subject: RE: Basic question: how to flash omap system
> > with ccs?
> > > > > >
> > > > > > Hi Jon,
> > > > > >
> > > > > > I can flash the factory osk5912 u-boot now, but what what
> > > > can I do
> > > > > > to generate my own u-boot.out? I need to compile a
> > u-boot for
> > > > > > my custom board other than osk. Could you please be so kind
> > > > to offer
> > > > > > me more information?
> > > > > >
> > > > > > Regars,
> > > > > > Li Weichen
> > > > > > 2005-12-1
> > > > > > > The flash device is connected to CS3 on the device which by
> > > > > > default is
> > > > > > > actually mapped to address 0x0c000000. The internal
> > boot-rom
> > > > > > > on the device is mapped to address 0x0. When the
> > device starts
> > > > > > > up
> > > > > > it always
> > > > > > > starts running code from the internal boot-rom.
> > However, one
> > > > > > > of the first things the boot-rom does is read gpio13. If
> > > > > > > gpio13 is
> > > > > > pulled low
> > > > > > > (JP3 in position 2-3) then the boot-rom will jump to CS3
> > > > > > and execute
> > > > > > > whatever is in the flash device when the device starts up.
> > > > > > >
> > > > > > > Did you have jumper JP3 in position 1-2 when you
> > > > downloaded u-boot
> > > > > > > with CCS?
> > > > > > >
> > > > > > > If you do, can you read address 0xfffecc0c on the
> > > > device using CCS.
> > > > > > > This is the address of the EMIFS_CONFIG register. Bit 1 in
> > > > > > > this register allows you to swap the physical mapping of CS0
> > > > and CS3.
> > > > > > > If bit 1 is 0 then CS0 is mapped to address 0x0 and CS3
> > > > is mapped
> > > > > > > to address 0x0c000000. Otherwise, if this bit is 1 then, CS0
> > > > > > is mapped to
> > > > > > > address 0x0c000000 and CS3 is mapped to address 0x0. If
> > > > > > this is set to
> > > > > > > 1 then you could manually try clearing this bit before you
> > > > > > > download and run u-boot.
> > > > > >
> > > > > >
> > > >
> > > >
> >
> >
next parent reply other threads:[~2005-12-02 1:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <C51F43ABFC95844490F0529B60753BF402B6B8D9@dlee02.ent.ti.com>
2005-12-02 1:36 ` Li Weichen [this message]
2005-12-02 14:40 Basic question: how to flash omap system with ccs? Hunter, Jon
[not found] <438dd76f.621835a8.5534.1d69@mx.gmail.com>
2005-12-01 10:55 ` Olav Kongas
2005-12-02 1:09 ` Li Weichen
2005-12-05 13:42 ` Olav Kongas
2005-12-05 13:54 ` Li Weichen
-- strict thread matches above, loose matches on Subject: below --
2005-11-29 15:13 Hunter, Jon
[not found] <C51F43ABFC95844490F0529B60753BF402A3AF75@dlee02.ent.ti.com>
2005-11-29 3:07 ` Li Weichen
2005-11-28 15:46 Hunter, Jon
2005-11-28 13:19 Kipisz, Steven
2005-11-28 13:36 ` Li Weichen
2005-11-28 15:18 ` Olav Kongas
2005-11-27 8:06 Li Weichen
2005-11-27 21:55 ` Olav Kongas
2005-11-28 12:29 ` Li Weichen
2005-11-28 15:30 ` Olav Kongas
2005-11-29 14:42 ` Olav Kongas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=438fa51b.56e049f5.60f0.ffffe5d2@mx.gmail.com \
--to=iaadoa@gmail.com \
--cc=jon-hunter@ti.com \
--cc=linux-omap-open-source@linux.omap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.