Re: Compiling in sound driver in kernel
On Sat, 13 Jun 2009 12:35:42 +0200, Ruben de Groot wrote: > The handbook, IMO, is wrong. > The copy of GENERIC will in the course of upgrades deviate from the original > one. > You won't pick up improvements, like the scheduler change from 4BSD -> ULE I don't think the handbook is wrong, but you mentioned a different, but still completely valid solution: > What I do is include the GENERIC file and override things with > nooption/nodevice > directives. Never tried this, but surely will. The last time I compiled a kernel, I made a copy of GENERIC, edited the copy to only include what is really present on the system, and used KERNCONF with this file. So I "composed" a new file on the example of GENERIC. Of course I know that it's not possible to use a kernel config from 4.10 to build a kernel on 7.2, so caution is intended. :-) The benefit of "my" solution is that you are not depending on another file, or have to read it through in order to form the intended nodevice and nooption statements. Anyway, you have to review the file with each system update, to find out if something important changed (e. g. the default scheduler, as you mentioned). -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Fri, Jun 12, 2009 at 04:39:19PM +0200, Bernt Hansson typed: > > > Polytropon said the following on 2009-06-12 12:54: > >On Fri, 12 Jun 2009 04:45:59 +0200, Bernt Hansson > >wrote: > >>Mel Flynn said the following on 2009-06-12 01:23: > FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 > r...@fqdn:/usr/obj/usr/src/sys/GENERIC > >>> ^^^ > >>>Did you edit GENERIC > >>Yes. Added sound and snd_hda > > > >Polite note: This is NOT the way to create a custom kernel. The > >handbook mentions that it's advised to create a copy of GENERIC > >and work with that. The handbook, IMO, is wrong. The copy of GENERIC will in the course of upgrades deviate from the original one. You won't pick up improvements, like the scheduler change from 4BSD -> ULE What I do is include the GENERIC file and override things with nooption/nodevice directives. Ruben ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
Bernt Hansson wrote: Polytropon said the following on 2009-06-12 12:54: On Fri, 12 Jun 2009 04:45:59 +0200, Bernt Hansson wrote: Mel Flynn said the following on 2009-06-12 01:23: FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 r...@fqdn:/usr/obj/usr/src/sys/GENERIC ^^^ Did you edit GENERIC Yes. Added sound and snd_hda Polite note: This is NOT the way to create a custom kernel. The handbook mentions that it's advised to create a copy of GENERIC and work with that. That's what i've done. or did you forget to set KERNCONF during build/installkernel? No. cd /usr/src make buildkernel KERNCONF=GENERIC make installkernel KERNCONF=GENERIC reboot is what I did. No snd_hda If you copied GENERIC to another file and edited that file, then compiled and installed GENERIC, you're obviously not going to get the added drivers. You'll need to replace GENERIC with the name of the file you edited in the KERNCONF variable. It looks understandable (allthough not mentioned in the handbook). Just to be sure, try the recommended approach. If you're not using KERNCONF, GENERIC will be selected automatically. # cd /usr/src/sys/i386/conf # cp GENERIC MYKERNEL (or use any other descriptive name instead of MYKERNEL). edit MYKERNEL and add device sound device snd_hda That's what i added. # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # reboot Check /etc/make.conf and /etc/src.conf for any strange values that may be a reason for our strange observations. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" -- Vänligen / Sincerly, Rolf Nielsen P.S. Om du svarar på detta mail, placera svaret nedanför den tidigare texten, annars kommer ditt svar automatiskt att kasseras, och därför inte bli läst. Svaret kommer också att kasseras automatiskt, och alltså inte bli läst, om det innehåller HTML; skicka alltid e-post som oformaterad text. If you reply to this mail, please put the reply beneath the older text. Otherwise your reply will be automatically discarded, thus it will not be read. Your reply will also be discarded if it contains HTML; always send e-mail as plain text. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Friday 12 June 2009 04:43:46 Wojciech Puchar wrote: > > # cd /usr/src/sys/i386/conf > > # cp GENERIC MYKERNEL > > (or use any other descriptive name instead of MYKERNEL). > > edit MYKERNEL and add > > device sound > > device snd_hda > > # cd /usr/src > > # make buildkernel KERNCONF=MYKERNEL > > # make installkernel KERNCONF=MYKERNEL > > # reboot > > why not: > > > edit MYKERNEL > config MYKERNEL > cd ../compile/MYKERNEL make obj > make depend > make > make install > > ? Because it is more typing? One can actually put KERNCONF in /etc/src.conf. In fact, one can put multiple kernel files in KERNCONF and the first one in the list will be the one installed, all will be built. This is how I share kernels over nfs to multiple machines from one build machine by mounting /usr/src and /usr/obj on the target machines and just running make installkernel. The target machines have their kernelname set in their own /etc/src.conf. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
Polytropon said the following on 2009-06-12 12:54: On Fri, 12 Jun 2009 04:45:59 +0200, Bernt Hansson wrote: Mel Flynn said the following on 2009-06-12 01:23: FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 r...@fqdn:/usr/obj/usr/src/sys/GENERIC ^^^ Did you edit GENERIC Yes. Added sound and snd_hda Polite note: This is NOT the way to create a custom kernel. The handbook mentions that it's advised to create a copy of GENERIC and work with that. That's what i've done. or did you forget to set KERNCONF during build/installkernel? No. cd /usr/src make buildkernel KERNCONF=GENERIC make installkernel KERNCONF=GENERIC reboot is what I did. No snd_hda It looks understandable (allthough not mentioned in the handbook). Just to be sure, try the recommended approach. If you're not using KERNCONF, GENERIC will be selected automatically. # cd /usr/src/sys/i386/conf # cp GENERIC MYKERNEL (or use any other descriptive name instead of MYKERNEL). edit MYKERNEL and add device sound device snd_hda That's what i added. # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # reboot Check /etc/make.conf and /etc/src.conf for any strange values that may be a reason for our strange observations. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Fri, 12 Jun 2009 14:43:46 +0200 (CEST), Wojciech Puchar wrote: > why not: > > > edit MYKERNEL > config MYKERNEL > cd ../compile/MYKERNEL > make depend > make > make install > > ? Yes, why not? It still works. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
# cd /usr/src/sys/i386/conf # cp GENERIC MYKERNEL (or use any other descriptive name instead of MYKERNEL). edit MYKERNEL and add device sound device snd_hda # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # reboot why not: edit MYKERNEL config MYKERNEL cd ../compile/MYKERNEL make depend make make install ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Friday 12 June 2009 12:54:19 Polytropon wrote: > On Fri, 12 Jun 2009 04:45:59 +0200, Bernt Hansson wrote: > > Mel Flynn said the following on 2009-06-12 01:23: > > >> FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 > > >> r...@fqdn:/usr/obj/usr/src/sys/GENERIC > > > > > > ^^^ > > > Did you edit GENERIC > > > > Yes. Added sound and snd_hda > > Polite note: This is NOT the way to create a custom kernel. The > handbook mentions that it's advised to create a copy of GENERIC > and work with that. Just to emphasise this point: look at the other kernel configs supplied with source. They tend to include GENERIC, and then have a small list of changed options. Messing about with GENERIC is not a good idea. Jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Fri, 12 Jun 2009 04:45:59 +0200, Bernt Hansson wrote: > Mel Flynn said the following on 2009-06-12 01:23: > >> FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 > >> r...@fqdn:/usr/obj/usr/src/sys/GENERIC > > ^^^ > > Did you edit GENERIC > > Yes. Added sound and snd_hda Polite note: This is NOT the way to create a custom kernel. The handbook mentions that it's advised to create a copy of GENERIC and work with that. It's even possible to create a config file from scratch, including material from LINT and NOTES, as well as from GENERIC. In order to avoid problems, you should follow this advice given in the handbook. > > or did you forget to set KERNCONF during build/installkernel? > > No. cd /usr/src > make buildkernel KERNCONF=GENERIC > make installkernel KERNCONF=GENERIC > reboot > > is what I did. No snd_hda It looks understandable (allthough not mentioned in the handbook). Just to be sure, try the recommended approach. If you're not using KERNCONF, GENERIC will be selected automatically. # cd /usr/src/sys/i386/conf # cp GENERIC MYKERNEL (or use any other descriptive name instead of MYKERNEL). edit MYKERNEL and add device sound device snd_hda # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # reboot Check /etc/make.conf and /etc/src.conf for any strange values that may be a reason for our strange observations. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
Mel Flynn said the following on 2009-06-12 01:23: On Thursday 11 June 2009 12:22:04 Bernt Hansson wrote: Mel Flynn skrev: On Thursday 11 June 2009 11:36:16 Bernt Hansson wrote: Roland Smith skrev: On Thu, Jun 11, 2009 at 08:48:32PM +0200, Bernt Hansson wrote: Roland Smith skrev: That doesn't help me. snd_hda driver won't load either way. I always have to load it manualy. What is the exact error message that you get? None. No error message. So the kernel now builds correctly with 'device sound' and 'device snd_hda'? It's always built, sound or no sound. Than that is weird. Because if snd_hda is built into the kernel, you should not be able to load the module. Beats me! Is there any other info you might to have? Since you're not the OP, could you post your full kernel config and dmesg of that kernel? Yes of course. Dmesg: Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 r...@fqdn:/usr/obj/usr/src/sys/GENERIC ^^^ Did you edit GENERIC Yes. Added sound and snd_hda or did you forget to set KERNCONF during build/installkernel? No. cd /usr/src make buildkernel KERNCONF=GENERIC make installkernel KERNCONF=GENERIC reboot is what I did. No snd_hda ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Thursday 11 June 2009 12:22:04 Bernt Hansson wrote: > Mel Flynn skrev: > > On Thursday 11 June 2009 11:36:16 Bernt Hansson wrote: > >> Roland Smith skrev: > >>> On Thu, Jun 11, 2009 at 08:48:32PM +0200, Bernt Hansson wrote: > Roland Smith skrev: > That doesn't help me. snd_hda driver won't load either way. I > always have to load it manualy. > >>> > >>> What is the exact error message that you get? > >> > >> None. No error message. > > > > So the kernel now builds correctly with 'device sound' and 'device > > snd_hda'? > > It's always built, sound or no sound. > >>> > >>> Than that is weird. Because if snd_hda is built into the kernel, you > >>> should not be able to load the module. > >> > >> Beats me! Is there any other info you might to have? > > > > Since you're not the OP, could you post your full kernel config and dmesg > > of that kernel? > > Yes of course. > > Dmesg: > > Copyright (c) 1992-2009 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.2-STABLE #0: Thu Jun 11 21:56:24 CEST 2009 > r...@fqdn:/usr/obj/usr/src/sys/GENERIC ^^^ Did you edit GENERIC or did you forget to set KERNCONF during build/installkernel? -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Thu, Jun 11, 2009 at 10:11:56PM +0200, Bernt Hansson wrote: > > > >> I'm going to reboot now so i get a fresh dmesg. OAU > > > > Good luck. > > No luck. I've just rebuilt and installed a new kernel. > No snd_hda is loaded. > > testbox# kldload snd_hda > testbox# This indicates that kldload was able to load the module. That means that snd_hda in _not_ compiled into the kernel! Are you sure you built and installed your custom kernel and not the GENERIC kernel? (you can check with 'uname -i'.) Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpILl2U0PZpT.pgp Description: PGP signature
Re: Compiling in sound driver in kernel
On Thu, 11 Jun 2009 11:51:03 -0800, Mel Flynn wrote: > On Thursday 11 June 2009 11:11:46 Polytropon wrote: > > Of course, it won't show up in kldstat then > > It will if you add -v to kldstat. Hmmm... true! % kldstat -v ... 118 pci/snd_cmi 119 sound ... But anyway, if you would kldload snd_something AFTER the kernel or through the means of /boot/loader.conf, kldstat without -v would show it, with .ko appended, as far as I remember. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
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 AddressSize Name 13 0xc040 6959cc kernel 21 0xc0a96000 683b4acpi.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, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Thursday 11 June 2009 11:11:46 Polytropon wrote: > Of course, it won't show up in kldstat then It will if you add -v to kldstat. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Thursday 11 June 2009 11:36:16 Bernt Hansson wrote: > Roland Smith skrev: > > On Thu, Jun 11, 2009 at 08:48:32PM +0200, Bernt Hansson wrote: > >> Roland Smith skrev: > >> That doesn't help me. snd_hda driver won't load either way. I always > >> have to load it manualy. > > > > What is the exact error message that you get? > > None. No error message. > >>> > >>> So the kernel now builds correctly with 'device sound' and 'device > >>> snd_hda'? > >> > >> It's always built, sound or no sound. > > > > Than that is weird. Because if snd_hda is built into the kernel, you > > should not be able to load the module. > > Beats me! Is there any other info you might to have? Since you're not the OP, could you post your full kernel config and dmesg of that kernel? -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Thu, Jun 11, 2009 at 08:48:32PM +0200, Bernt Hansson wrote: > Roland Smith skrev: > > That doesn't help me. snd_hda driver won't load either way. I always > have to load it manualy. > > >>> What is the exact error message that you get? > > >> None. No error message. > > > > So the kernel now builds correctly with 'device sound' and 'device snd_hda'? > > It's always built, sound or no sound. Than that is weird. Because if snd_hda is built into the kernel, you should not be able to load the module. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpRgIjSvWiPm.pgp Description: PGP signature
Re: Compiling in sound driver in kernel
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 I don't think that can have any effect. :-) The setting snd_hda_load="YES" in /boot/loader.conf would be the correct choice. Anyway, if you included device sound device snd_hda in your kernel configuration file, the driver (a) should be compiled in and (b) loaded at startup. Of course, it won't show up in kldstat then, but % cat /dev/sndstat should indicate the running driver. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Thu, Jun 11, 2009 at 1:13 PM, Roland Smith wrote: > On Thu, Jun 11, 2009 at 07:57:11PM +0200, Bernt Hansson wrote: >> Roland Smith: >> > On Thu, Jun 11, 2009 at 05:08:09PM +0200, Bernt Hansson wrote: >> >> Roland Smith: >> >>> On Wed, Jun 10, 2009 at 06:11:56PM -0400, Carmel wrote: >> This is my first attempt to compile in a driver in a new kernel I am >> attempting to build. >> >> Using loader.conf, I have the 'snd_hda' driver presently being loaded. >> I want to compile it directly into the kernel. I tried this: >> Unfortunately, the kernel will not build. What is the proper way to >> build a kernel with sound embedded into it? >> >>> >> >>> You're missing something: >> >>> >> >>> device sound >> device snd_hda # Sound driver >> >> That doesn't help me. snd_hda driver won't load either way. I always >> >> have to load it manualy. >> > >> > What is the exact error message that you get? >> >> None. No error message. > > So the kernel now builds correctly with 'device sound' and 'device snd_hda'? > If not, what message does the kernel build yield? > >> > What kind of hardware do you have? >> >> MB: Gigabyte GA-MA790fx-DS5 > > Ok, the ALC889 on board is listed as supported by snd_hda(4). > > BTW, have a look at the BUGS section of snd_hda(4). Maybe your problem > is related to this. > > If loading the module works, have you tried adding snd_hda_load="YES" to > /boot/loader.conf, as per the manual page? > > Roland > -- > R.F.Smith http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) > hello: do you really need to compile it in the kernel or just allow the module to auto-load at start-up? -- mmm, interesante. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Thu, Jun 11, 2009 at 07:57:11PM +0200, Bernt Hansson wrote: > Roland Smith: > > On Thu, Jun 11, 2009 at 05:08:09PM +0200, Bernt Hansson wrote: > >> Roland Smith: > >>> On Wed, Jun 10, 2009 at 06:11:56PM -0400, Carmel wrote: > This is my first attempt to compile in a driver in a new kernel I am > attempting to build. > > Using loader.conf, I have the 'snd_hda' driver presently being loaded. > I want to compile it directly into the kernel. I tried this: > Unfortunately, the kernel will not build. What is the proper way to > build a kernel with sound embedded into it? > >>> > >>> You're missing something: > >>> > >>> devicesound > device snd_hda # Sound driver > >> That doesn't help me. snd_hda driver won't load either way. I always > >> have to load it manualy. > > > > What is the exact error message that you get? > > None. No error message. So the kernel now builds correctly with 'device sound' and 'device snd_hda'? If not, what message does the kernel build yield? > > What kind of hardware do you have? > > MB: Gigabyte GA-MA790fx-DS5 Ok, the ALC889 on board is listed as supported by snd_hda(4). BTW, have a look at the BUGS section of snd_hda(4). Maybe your problem is related to this. If loading the module works, have you tried adding snd_hda_load="YES" to /boot/loader.conf, as per the manual page? Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp5yY1WRIkrG.pgp Description: PGP signature
Re: Compiling in sound driver in kernel
On Thu, Jun 11, 2009 at 05:08:09PM +0200, Bernt Hansson wrote: > Roland Smith: > > On Wed, Jun 10, 2009 at 06:11:56PM -0400, Carmel wrote: > >> This is my first attempt to compile in a driver in a new kernel I am > >> attempting to build. > >> > >> Using loader.conf, I have the 'snd_hda' driver presently being loaded. > >> I want to compile it directly into the kernel. I tried this: > > > >> Unfortunately, the kernel will not build. What is the proper way to > >> build a kernel with sound embedded into it? > > > > You're missing something: > > > > device sound > >> device snd_hda # Sound driver > > That doesn't help me. snd_hda driver won't load either way. I always > have to load it manualy. What is the exact error message that you get? What kind of hardware do you have? Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgp2OEEATdQp0.pgp Description: PGP signature
Re: Compiling in sound driver in kernel
On Thu, 11 Jun 2009 00:28:23 +0200 Roland Smith wrote: >You're missing something: > >device sound >> device snd_hda # Sound driver > >Have you looked at the manual page? 'man snd_hda' would have told you >this. > >Roland Actually, no I did not. I did read the FreeBSD Handbook, specifically the portions dealing with sound and recompiling the kernel. Nowhere did I see a reference to read the man page for the sound driver, nor an example of how to install it in the kernel. I did, eventually, find an example of how to install via the kernel by Googling for it. I believe that the Handbook should be somewhat more specific though in this area. In any case, thanks for all those who took the time to reply. -- Carmel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
On Wed, Jun 10, 2009 at 06:11:56PM -0400, Carmel wrote: > This is my first attempt to compile in a driver in a new kernel I am > attempting to build. > > Using loader.conf, I have the 'snd_hda' driver presently being loaded. > I want to compile it directly into the kernel. I tried this: > Unfortunately, the kernel will not build. What is the proper way to > build a kernel with sound embedded into it? You're missing something: device sound > devicesnd_hda # Sound driver Have you looked at the manual page? 'man snd_hda' would have told you this. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpd8gCuhH8OS.pgp Description: PGP signature
Re: Compiling in sound driver in kernel
On Wed, 10 Jun 2009 18:11:56 -0400, Carmel wrote: > This is my first attempt to compile in a driver in a new kernel I am > attempting to build. > > Using loader.conf, I have the 'snd_hda' driver presently being loaded. > I want to compile it directly into the kernel. I tried this: > > devicesnd_hda # Sound driver > > Unfortunately, the kernel will not build. What is the proper way to > build a kernel with sound embedded into it? I have this: # Sound device sound device snd_cmi As far as I know, both "sound" and "snd_*" for your particular hardware is needed in the kernel configuration file. I'm not sure if only "device sound" is sufficient and / or will load snd_* required automatically. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Compiling in sound driver in kernel
Carmel wrote: > This is my first attempt to compile in a driver in a new kernel I am > attempting to build. > > Using loader.conf, I have the 'snd_hda' driver presently being loaded. > I want to compile it directly into the kernel. I tried this: > > devicesnd_hda # Sound driver > > Unfortunately, the kernel will not build. What is the proper way to > build a kernel with sound embedded into it? > > Thanks! > > Well, just add the following line too: device sound (This is automatically loaded too when the module is used) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Compiling in sound driver in kernel
This is my first attempt to compile in a driver in a new kernel I am attempting to build. Using loader.conf, I have the 'snd_hda' driver presently being loaded. I want to compile it directly into the kernel. I tried this: device snd_hda # Sound driver Unfortunately, the kernel will not build. What is the proper way to build a kernel with sound embedded into it? Thanks! -- Carmel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"