[ECOS] RE: Running a program from
Trenton D. Adams
tadams@theone.dnsalias.com
Mon Aug 27 08:54:00 GMT 2001
First of all, the file size is 0x646b4. The loading of the srec file
says address range was 0xe0040000-0xe00a46b4. Is this really correct?
That means there's an extra 1 byte loaded. Shouldn't it say
0xe0040000-0xe00a46b3?
Second of all, NOR flash on my board is physically located at 0x00000000
and not 0xe0000000. Considering this, should I change my
mlt_arm_edb7211_rom.ldi file to reflect this? eg. 0xe0040000 should in
fact be 0x00040000? I mean as far as my system is concerned when it
first starts, no memory has been remapped, right? I don't even really
know how the remapping takes place anyhow so I'm probably completely
wrong.
-----Original Message-----
From: Trenton D. Adams [ mailto:tadams@theone.dnsalias.com ]
Sent: Monday, August 27, 2001 8:52 AM
To: 'Gary Thomas'
Cc: 'eCos Discussion'
Subject: RE: [ECOS] RE: Running a program from
Before for some reason my ROM image wasn't working even by downloading
it directly into flash from the serial port. It was working yesterday
when I tried it. It's working again now though. Now I did as you
suggest, and it still doesn't work.
I got this output
RedBoot> load -v -m xmodem -b 0x20000
CEntry point: 0xe0040040, address range: 0xe0040000-0xe00a46b4
xyzModem - CRC mode, 9564(SOH)/0(STX)/0(CAN) packets, 3 retries
So I tried this with an srec because it says the entry point is
0xe0040040
fis create -b 0x20000 -l 0x646b4 -e 0xe0040040 RigSystem
and this with a binary file because it says the downloaded size was
0x64700
load -r -m xmodem -b 0x20000
fis create -b 0x20000 -l 0x64700 RigSystem
RigSystem of course already existed at 0xe0040000 so fis create used
previous "-f 0xe0040000"
-----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:49 PM
To: Trenton D. Adams
Cc: eCos Discussion
Subject: RE: [ECOS] RE: Running a program from
On 24-Aug-2001 Trenton D. Adams wrote:
> 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
> }
>
I think all you should need to do is change this one line (leave the
rest)
in the mlt_XXX.ldi file (in your install/build tree):
SECTION_rom_vectors (rom, 0xe0000000, LMA_EQ_VMA)
^^^^^^^^^^
0xe0040000
You might have to forceably remove "install/lib/target.ld" as the
makefile dependencies might not force it to be rebuilt.
>
> -----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?
More information about the Ecos-discuss
mailing list