From owner-freebsd-current@FreeBSD.ORG Wed Mar 16 21:25:04 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8A0116A4CE; Wed, 16 Mar 2005 21:25:04 +0000 (GMT) Received: from 62-15-215-140.inversas.jazztel.es (62-15-215-140.inversas.jazztel.es [62.15.215.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0721743D1F; Wed, 16 Mar 2005 21:25:03 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) j2GLP0is014295; Wed, 16 Mar 2005 22:25:00 +0100 (CET) (envelope-from freebsd@redesjm.local) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.3/8.13.3/Submit) id j2GLPJ10006375; Wed, 16 Mar 2005 22:25:19 +0100 (CET) (envelope-from freebsd@redesjm.local) From: Jose M Rodriguez To: Doug Barton Date: Wed, 16 Mar 2005 22:25:17 +0100 User-Agent: KMail/1.7.2 References: <200503142306.54642.freebsd@redesjm.local> <200503152107.23496.freebsd@redesjm.local> <42375FD2.2080706@freebsd.org> In-Reply-To: <42375FD2.2080706@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200503162225.18726.freebsd@redesjm.local> X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-3; AVE: 6.30.0.7; VDF: 6.30.0.31; host: antares.redesjm.local) cc: Jose M Rodriguez cc: current@freebsd.org Subject: Re: rcNG changes/aditions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2005 21:25:04 -0000 El Martes, 15 de Marzo de 2005 23:21, Doug Barton escribi=F3: > Jose M Rodriguez wrote: > > El Martes, 15 de Marzo de 2005 02:43, Doug Barton escribi=F3: > >>Jose M Rodriguez wrote: > >>>Hi, > >>>I'll glad to know if this is of interest: > >>> > >>>update to PR conf/75137 (sound modules): I rework this adding > >>>support for preloaded modules to /etc/rc.subr > >> > >>Why is this necessary? My understanding is that modules load > >>themselves when called. Do the sound modules do this differently? > > > > This is not needed (I think). You can load modules > > via /boot/loader.conf, but may be more confortable if we 'go > > modules' in a future. > > I don't think you understand what I'm saying. For most modules, it is > not actually necessary to pre-load them at all. For example, I have > cd9660 as a module, it's not compiled into my kernel. When I mount a > cd9660 file system the kernel module is automatically loaded. There > is no need to pre-load it. The same is true of (most) modules that > create devices, such as ndis. This is true for, more or less 'logical' modules, But not for 'hard'=20 ones. You must have the sound support compiled into the kernel or the=20 needed modules loaded for sound to be detected. I think this can be needed also for buses like firewire or usb. And for=20 net 'hard' modules like if_fxp. > > I don't know the specifics of the sound module, I compile it into my > kernel. However, as you pointed out in the rare case that it's > necessary to actually pre-load a kernel module (such as agp), we have > a mechanism for that in loader.conf already. I don't think that > adding that code to rc.subr is a useful exercise, and in fact I would > oppose it as needless duplication of effort. > Allthough there are things like agp (now in generic kernel) that really=20 need to be loaded at boot, doing this at rc time is now used (grep=20 kldload /etc/rc.d/*) and have also pros. In the sound case, you may boot in a just installed system, add=20 'mixer_modules' to /etc/rc.conf as needed for your sound car, and do an=20 `/etc/rc.d/mixer restart'. You may get your sound configured and working without needing a reboot. Also, I think that our module system is now strong enough to comment out=20 things like usb or firewire from GENERIC and use module support in rc=20 for that. But this may require more work and testing. This kind of patches may=20 open the way to 'go modules' for many things now in GENERIC, or of=20 general use like sound. > >>>update to PR conf/74006 (named minor fixes): Fix a typo and umount > >>>dev in chroot in post_stop works > >> > >>Please submit this as followup to the PR. > > > > Will do. > > Thanks. > > Doug =2D- josemi