Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2015 11:20:32 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        Don whY <Don.whY@gmx.com>, FreeBSD-Hackers Mailing List <freebsd-hackers@freebsd.org>
Subject:   Re: PXE boot an XIP image?
Message-ID:  <557E4480.6000603@freebsd.org>
In-Reply-To: <557C844F.1010107@gmx.com>
References:  <557C073E.1060702@gmx.com> <557C2BD7.1000104@freebsd.org> <557C844F.1010107@gmx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/14/15 3:28 AM, Don whY wrote:
> On 6/13/2015 6:10 AM, Julian Elischer wrote:
>> On 6/13/15 6:34 PM, Don whY wrote:
>>
>>> I'd like to PXE boot a kernel then fetch (any choice of protocol)
>>> a *single* image to load into RAM thereafter not requiring any
>>> access to external media to operate.  I.e., as if the image
>>> had resided in the device all along.
>>
>> what do you mean by "single"? any PXE boot is by definition a 
>> number of
>> transactions.
>
> Load kernel, load *an* executable, CUT NETWORK CORD.  Thereafter, 
> behave
> as if the device was operating from built-in FLASH.
>
>> The regular PXE boot code from FreeBSD is capable of loading a 
>> kernel and a
>> matching ram filesystem, which when executed, will boot up as a 
>> running
>> system and not touch any medium. I haven't done it for a while but at
>> one stage there used to be a suitable memory filesystem on one fo 
>> the boot media.
>> (that may no longer be true)
>
> A memory filesystem is not the same as XIP.  You'd have *two* copies of
> anything that is executing in RAM at any given time:  the one stored
> in the filesystem and the one that is executing in process memory.
you didn't explain clearly you wanted "execute in place"  (XIP) (or if 
you did you
didn't explain  what it means becasue I only figured it out from your 
other email).

As far as I know there is no facility for that. It's an interesting 
concept..
You could probably start from tmpfs and add a 'preloaded image' 
feature and
a vfs layer that uses a copy-on-write getpages entrypoint. But I think 
it's going to be
you doing much of the work. You may need a special image activator to 
handle the loading.

Others may chime in if there is work underway already but I don't 
recall hearing about such.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?557E4480.6000603>