Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 22:00:42 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Bernt Hansson <bernt@bah.homeip.net>
Cc:        carmel_ny@hotmail.com, Roland Smith <rsmith@xs4all.nl>, freebsd-questions@freebsd.org
Subject:   Re: Compiling in sound driver in kernel
Message-ID:  <20090611220042.5aae7121.freebsd@edvax.de>
In-Reply-To: <4A315EB8.1080803@bah.homeip.net>
References:  <BLU0-SMTP462B5A385FA31495A8FBC993450@phx.gbl> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Jun 2009 21:44:56 +0200, Bernt Hansson <bernt@bah.homeip.net> wrote:
> Polytropon skrev:
> > On Thu, 11 Jun 2009 20:48:32 +0200, Bernt Hansson <bernt@bah.homeip.net> 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, ...



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