From owner-freebsd-questions@FreeBSD.ORG Thu Jun 11 20:00:50 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15640106566B for ; Thu, 11 Jun 2009 20:00:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id C4CF08FC1A for ; Thu, 11 Jun 2009 20:00:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-65-8.dynamic.qsc.de [92.195.65.8]) by mx01.qsc.de (Postfix) with ESMTP id 90B4C3CDF4; Thu, 11 Jun 2009 22:00:48 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n5BK0gtr003355; Thu, 11 Jun 2009 22:00:42 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 11 Jun 2009 22:00:42 +0200 From: Polytropon To: Bernt Hansson Message-Id: <20090611220042.5aae7121.freebsd@edvax.de> In-Reply-To: <4A315EB8.1080803@bah.homeip.net> References: <20090610222823.GA7364@slackbox.xs4all.nl> <4A311DD9.7040405@bah.homeip.net> <20090611162538.GA35956@slackbox.xs4all.nl> <4A314577.8000102@bah.homeip.net> <20090611181307.GA38748@slackbox.xs4all.nl> <4A315180.7070200@bah.homeip.net> <20090611211146.bbf19c46.freebsd@edvax.de> <4A315EB8.1080803@bah.homeip.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: carmel_ny@hotmail.com, Roland Smith , freebsd-questions@freebsd.org Subject: Re: Compiling in sound driver in kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 20:00:50 -0000 On Thu, 11 Jun 2009 21:44:56 +0200, Bernt Hansson wrote: > Polytropon skrev: > > On Thu, 11 Jun 2009 20:48:32 +0200, Bernt Hansson wrote: > >> Yes. No go. I even tested to put "snd_hda="YES"" in /etc/rc.conf > > Even tested "kldload snd_hda="YES"" in rc.conf > In 7.1 it dit work with some errors. Of course. /etc/rc.conf is "executed", in the normal way it is used it simply associates values to variables. If you would put echo "Get me beer!" into /etc/rc.conf, you would see this message. So what you did: You executed kldload snd_hda="YES" which you could also have tried the same command at the command line (sh). > Indeed. But it does not load snd_hda Of course not. You could put kldload snd_hda.ko into /etc/rc.conf, but that isn't the way such things are done. > None. No driver. Always have to add it manually. Which would not work if the driver was actually compiled int the kernel. Example: I have compiled snd_cmi and sound into my kernel. So my kldstat looks like this: # kldstat Id Refs Address Size Name 1 3 0xc0400000 6959cc kernel 2 1 0xc0a96000 683b4 acpi.ko If I now try to load the snd_cmi kernel module, this happens: # kldload snd_cmi.ko kldload: can't load snd_cmi.ko: File exists This indicates that the driver is already present. It has been preloaded by the kernel (it is IN the kernel), so it cannot be loaded by kldload. So if you ARE able to kldload the module, it hasn't been in the kernel (or at least not loaded). Maybe you can check your hints file for some strange entries? > I'm going to reboot now so i get a fresh dmesg. OAU Good luck. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...