Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 1997 11:49:03 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        imp@village.org (Warner Losh)
Cc:        dfr@nlsystems.com, jkh@time.cdrom.com, current@freebsd.org
Subject:   Re: A new Kernel Module System
Message-ID:  <199703311849.LAA09880@phaeton.artisoft.com>
In-Reply-To: <E0wBlCc-0006sH-00@rover.village.org> from "Warner Losh" at Mar 31, 97 10:49:05 am

next in thread | previous in thread | raw e-mail | index | archive | help
> : Almost.  You would load /lkm/devs/isa/foo.so.  The driver object does not
> : need an instance number since the same driver could support many different
> : instances:
> : 
> : isaconf -a foo0 port=320 irq=10 iomem=0xd0000
> : isaconf -a foo1 port=330 irq=11 iomem=0xd8000
> : isaconf -a foo2 port=340 irq=12 iomem=0xe0000
> : modload /lkm/devs/isa/foo.so
> 
> That would be way cool.  I'd especially like to be able to do this
> with the GENERIC kernel.  Right now there is no way to do this, short
> of booting -c.  When you install a new kernel on a machine at a remote
> office and thinkn that you are set because the old kernel was generic
> too and do a reboot, only to find out that it really wasn't generic
> GENERIC....

It seems to me that either the isaconf and the modload order is
inverted, or that the kernel should be demand loading the driver
for the isaconf case if the driver were not already present (the
loading done by the *kernel*, not the *isaconf*)... in which case
there should not be a modload at all.

> That is I'd like to be able to boot a generic thing, and have it
> preserve my deltas to the "settings" of the device drivers across
> upgrades.  It is often nice to have one GENERIC kernel that gets
> pushed out to n sites who's only differences are the IRQs and I/O
> addresses of some of the ethernet cards, etc.

Me too; when are we going to data-drive all of the system settings
like we were first talking about in October of 1993?  That way I
can upgrade my /etc/rc* without the machine not working...

Heh.


					Regards,
					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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