Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 1998 02:52:40 +0100 (CET)
From:      Mikael Karpberg <karpen@ocean.campus.luth.se>
To:        mike@smith.net.au (Mike Smith)
Cc:        tlambert@primenet.com, wpaul@skynet.ctr.columbia.edu, current@FreeBSD.ORG
Subject:   Re: New drivers and install floppy space
Message-ID:  <199812070152.CAA13609@ocean.campus.luth.se>
In-Reply-To: <199812060741.XAA03107@dingo.cdrom.com> from Mike Smith at "Dec 5, 98 11:41:11 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
According to Mike Smith:
> > o	a mechanism for dumping drivers from the kernel after
> > 	installation so that they need not be installed twice:
> > 	once to boot, once to install; this probably implies
> > 	driver data areas be mapped copy-on-write to maintain
> > 	the data image integrity to allow it to be written
> > 	back out
> 
> This is actually fairly tough, as the entire ELF object is not loaded 
> in the first place.  My preference is simply to track the driver(s) 
> that are loaded, and request the use re-provide the media from which 
> the driver was read when it comes time to copy it.

Wouldn't the best and easiest solution here be something like this in
the loader:  save_drivers_in_ram = (total_ram_MB > 8);
And if the variable is set, you just don't load the driver, you also
store the complete file it was loaded from in a memory block which
can then just be dumped to file. If you don't have enough memory to do
that, you can ask for the disks again, instead.

  /Mikael

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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