Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 1997 18:37:30 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, msmith@atrad.adelaide.edu.au
Cc:        config@freebsd.org
Subject:   Re: Startup userconfig parsing
Message-ID:  <199704300837.SAA13095@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> Yes, only 8K is reserved for the boot blocks, and 15spt media is not
>> uncommon.
>
>Hmm.  Full-circle back to the three-stage boot I guess.

Nope.  That would be overengineered.

>At this point, I'm inclined to seriously question whether you would 
>consider anything other than a rock to be appropriately engineered.

`cat' with no options was fine :-).

>How would you go about "rightsizing" the proposal then?  Consider : it is
>desired to be able to access arbitrary, user-specified configuration data
>from a data entity other than the kernel, for use in the kernel prior to
>the availability of filesystem or network services.

No, it's desired to have no user-specified configuration data then.
Userconfig etc. are "temporary" kludges to get around h/w and BIOS
braindamage.

>> Config files are prepared with a text editor.
>
>Not necessarily.  And at any rate, the entity editing the data is

Necessarily, by definition :-).

>expected to perform the interpretation.  I still don't understand how
>ed is meant, one way or another, to have anything to do with arbitrary
>data intended for consumption by the kernel.

boot: -s
...
# mount /
# ed /boot.config	# fix up booting problems
# ed /etc/fstab		# fix up mounting problems
...

>"sane" is a difficult question.  It'd be good to have the area created
>by the bootloader preserved as part of the kernel's space, at least until
>the information could be copied into a malloced area.

Page 0 is always preserved, and there's 2.5K or 3.5K to spare in it.  This
is a nice limit for a config file size (stops you from overengineering it
:-) but is too small for splash screens.  It would probably be simplest
for the bootstrap to put things below 640K and delay use of some pages
below 640K.

Bruce



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