From: Justin Carlson <justinca@cs.cmu.edu>
To: turcotte@broadcom.com
Cc: linux-mips@linux-mips.org
Subject: Re: Exec from Memory
Date: 18 Feb 2003 17:22:29 -0500 [thread overview]
Message-ID: <1045606950.1164.294.camel@PISTON.AHS.RI.CMU.EDU> (raw)
In-Reply-To: <NDBBKEAAOJECIDBJKLIHCEOGCHAA.turcotte@broadcom.com>
On Tue, 2003-02-18 at 17:08, Maurice Turcotte wrote:
> Greetings:
>
> I have a hypothetical linux-mips question posed by a colleage.
>
> Suppose there is no file system available, since there is no disk. And
> suppose that I had the capability to place an elf file in a known location
> in memory. How would I execute it? It seems like exec really wants a file
> name. BTW, this needs to run in use space, not kernel.
>
There's no easy way (that know of) around the filesystem abstraction.
You're going to have to deal with it in some manner. Really basic
stuff, like the elf loader, depends on vfs abstractions. While it's
possible to bypass all that, it would be a *lot* of work, and a lot of
nearly-duplicated code.
I can see a couple of options. Other people might have better
suggestions. :)
1) Use the embedded root ramdisk functionality in the kernel. Make your
elf file /sbin/init, and run with it.
2) Hack a quick filesystem that uses a contiguous chunk of memory that
you either hardcode or pass in on the kernel command line.
-Justin
next prev parent reply other threads:[~2003-02-18 22:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-18 22:08 Exec from Memory Maurice Turcotte
2003-02-18 22:15 ` Greg Lindahl
2003-02-18 22:22 ` Justin Carlson [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-18 22:26 Mitchell, Earl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1045606950.1164.294.camel@PISTON.AHS.RI.CMU.EDU \
--to=justinca@cs.cmu.edu \
--cc=linux-mips@linux-mips.org \
--cc=turcotte@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox