public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] .mlt and .ldi file format
@ 2001-07-25  6:10 A Roturier
  2001-07-25  7:27 ` Robin Farine
  0 siblings, 1 reply; 2+ messages in thread
From: A Roturier @ 2001-07-25  6:10 UTC (permalink / raw)
  To: ecos-discuss

hi,

is there any manual/documentation about mlt_arch_platform_rom(ram).mlt and
mlt_arch_platform_rom(ram).ldi ? i'd like to dig more into these files and
change some parameters like ecos entry poiny.

thanx for help.

kc

ps: according to 
http://sources.redhat.com/ecos/docs-latest/ref/ecos-ref.b.html ,
config tool can change values in these files. but i can't find in the tool 
where
to change some values like ecos starting point. i am trying to build redboot
image for arm aeb2 board.


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] .mlt and .ldi file format
  2001-07-25  6:10 [ECOS] .mlt and .ldi file format A Roturier
@ 2001-07-25  7:27 ` Robin Farine
  0 siblings, 0 replies; 2+ messages in thread
From: Robin Farine @ 2001-07-25  7:27 UTC (permalink / raw)
  To: A Roturier; +Cc: ecos-discuss

"A Roturier" <roturier@hotmail.com> writes:

[...]

> is there any manual/documentation about mlt_arch_platform_rom(ram).mlt and
> mlt_arch_platform_rom(ram).ldi ? i'd like to dig more into these files and
> change some parameters like ecos entry poiny.

For the .mlt files, look in the eCos graphical configuration tool (which I have
never tested myself, though), it should allow you to edit the content of these
file. Then, it will generate correct .ldi & .h files according to your settings.

If you want to edit by hand, then forget the .mlt files and edit the .ldi & .h
files so that they remain coherent. The .ldi file contains CPP macros invocation.
The main hal directory for your architecture defines these macros so that the
result of passing the .ldi file through the C preprocessor will results into
your "target.ld" script. This script tells the linker, GNU ld, how to make an
output file from the objects and libraries it receives in input. Look at the GNU
ld documentation to find more about the format of such a script.

If your target uses the ELF format, you could search the web for a PDF paper
about ELF which will tell you everything about the remaining magic.

Now, if you want to change the start address of a *RAM* application, then modify
the second parameter of the line in ..._ram.ldi that defines the rom_vectors
output section:

        SECTION_rom_vectors (ram, 0x20000, LMA_EQ_VMA)

and delete your build directory completely before reconfiguring and rebuilding
eCos. However, if you want to change the start address of a *ROM* bootable
version of RedBoot, you may need to modify other files as well, such as
"vectors.S" for instance.

[...]

Robin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-07-25  7:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-25  6:10 [ECOS] .mlt and .ldi file format A Roturier
2001-07-25  7:27 ` Robin Farine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).