* [ECOS] romfs on linux synthetic
@ 2002-05-29 4:41 Morten Laursen
2002-05-29 5:19 ` Andrew Lunn
0 siblings, 1 reply; 2+ messages in thread
From: Morten Laursen @ 2002-05-29 4:41 UTC (permalink / raw)
To: 'ecos-discuss@sources.redhat.com'
Hi
I can see from the archives that some of you use romfs on linux synthetic,
but not how.
I particular, how do you link the rom image into the synthetic target?
Thanks,
Morten
--
Morten Laursen, M.Sc.S.E.
RTX Telecom A/S - http://www.rtx.dk/
Direct phone: (+45) 96 32 24 03
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] romfs on linux synthetic
2002-05-29 4:41 [ECOS] romfs on linux synthetic Morten Laursen
@ 2002-05-29 5:19 ` Andrew Lunn
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2002-05-29 5:19 UTC (permalink / raw)
To: Morten Laursen; +Cc: 'ecos-discuss@sources.redhat.com'
On Wed, May 29, 2002 at 01:41:00PM +0200, Morten Laursen wrote:
> Hi
>
> I can see from the archives that some of you use romfs on linux synthetic,
> but not how.
>
> I particular, how do you link the rom image into the synthetic target?
Two ways
1) Don't! malloc a block of memory, read the image in from the file
using the host OS backdoor access functions and then mount it.
2) Jifl wrote a script that takes a binary image and turns it into an
initialized C array. This is compiled into object form and linked
in like any other C file. You pass the array to mount. See
file2c.tcl and the test case in the sources.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-29 12:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-29 4:41 [ECOS] romfs on linux synthetic Morten Laursen
2002-05-29 5:19 ` Andrew Lunn
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).