This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: RE: Running a program from
- To: "Trenton D. Adams" <tadams at theone dot dnsalias dot com>
- Subject: RE: [ECOS] RE: Running a program from
- From: Gary Thomas <gthomas at redhat dot com>
- Date: Fri, 24 Aug 2001 12:11:03 -0600 (MDT)
- Cc: eCos Discussion <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat, Inc.
On 24-Aug-2001 Trenton D. Adams wrote:
> I know, my outlook screwed up. eCos Discussion was supposed to be the
> first one in my list, but Outlook seems to like to change that once in
> awhile. Don't know if you received it yet or not, but I did send an
> apology already! :) I also reposted it to the eCos Discussion list!
>
> Linker script? I assume you mean my Makefile? Nope, didn't even think
> about changing the entry point if that's what you mean!
>
> I have now changed my GCC line to contain "-Wl,--entry=0xe0040000". Is
> that what you mean?
>
No, you'll have to edit either the .ldi file or the resulting target.ld.
eCos programs are linked at specific addresses in specific modes (RAM vs
ROM). They aren't position nor mode independent - you have to adjust
things if you want them to move.
> Still doesn't work.
>
> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Gary Thomas
> Sent: Friday, August 24, 2001 11:15 AM
> To: Trenton D. Adams
> Cc: eCos Discussion
> Subject: [ECOS] RE: Running a program from
>
>
> Firstly - don't send messages to ecos-maintainers use ecos-discuss.
>
> On 24-Aug-2001 Trenton D. Adams wrote:
>> I do the following after loading my image into redboot at 0x20000.
> I'm
>> not running a RAM version of RedBoot so this should be ok at 0x20000
>> right?
>> RedBoot> fis create -b 0x20000 -l 0x64700 -f 0xe0040000 RigSystem
>> ... Erase from 0xe0040000-0xe00c0000: ....
>> ... Program from 0x00020000-0x00084700 at 0xe0040000: ....
>> ... Erase from 0xe0fe0000-0xe1000000: .
>> ... Program from 0x00fa7000-0x00fc7000 at 0xe0fe0000: .
>> RedBoot> go 0xe0040000
>
> Was this program configured for ROM startup? Did you adjust the
> linker script so that it would run from 0xE0040000?