This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: RE: Running a program from


Is there documentation on editing these files?  I tried editing
target.ld, and it still doesn't work.  Do I have to do the
"-Wl,--entry=0xe0040000" as well?

In the SECTIONS part, I changed the following.
.rom_vectors   0xe0040000

I also tried changing
MEMORY
{
    ram : ORIGIN = 0, LENGTH = 0xfd7000
    sram : ORIGIN = 0x60000000, LENGTH = 0x9c00
    rom : ORIGIN = 0xe0040000, LENGTH = 0x800000
}


-----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 12:11 PM
To: Trenton D. Adams
Cc: eCos Discussion
Subject: RE: [ECOS] RE: Running a program from



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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]