From owner-freebsd-current Thu Oct 7 2:42:28 1999 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id D96FE1584F for ; Thu, 7 Oct 1999 02:42:22 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p23-dn02kiryunisiki.gunma.ocn.ne.jp [210.163.200.120]) by peach.ocn.ne.jp (8.9.1a/OCN) with ESMTP id SAA20182; Thu, 7 Oct 1999 18:42:04 +0900 (JST) Message-ID: <37FC6A10.95E59914@newsguy.com> Date: Thu, 07 Oct 1999 18:38:24 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: The Hermit Hacker Cc: freebsd-current@FreeBSD.ORG Subject: Re: modules: how to use? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The Hermit Hacker wrote: > > Figuring one of the things a friend of mine raves about Linux for is their > kld's, I'd start playing with ours... > > Looking in /modules, I saw 'procfs', so, cool, a place to start...remove > "options PROCFS" from kernel config, rebuild, install and reboot ... > > crashes... > > so, I figure that I somehow have to tell the kernel to load that module? fs modules are automagically loaded. Alas, that's the general direction for a lot of modules. The network ones, for instance. No more need to put in the device lines in the kernel configuration file, it will be automagically loaded by ifconfig. I don't know if this is working already or not, though. Now, how to tell the kernel to load modules. Well, some stuff you can set with rc.conf(5). Other stuff you may load explicitly through kldload. And, finally, you don't need to have the _kernel_ load it. You may edit loader.conf(5) to have it loaded at the same time the kernel is loaded by, well, the loader(8). :-) (the bootstrap loader) > checked the kld man page, and nothing in there appears to be > appropriate...and just looked at my /usr/src/etc/rc* files to see if maybe > it was something I was supposed to configure in there, but nothing appears > to be in tehre either... > > Help? Wild shot: are your kernel & world in sync? For isntance, you made a new kernel when you edited your kernel configuration file to remove the option line, right? If you just happened to have newer sources, the new kernel might have become incompatible with the older modules, which are not made automatically (except during world). cd /sys/modules; make all install. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org "I always feel generous when I'm in the inner circle of a conspiracy to subvert the world order and, with a small group of allies, just defeated an alien invasion. Maybe I should value myself a little more?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message