Compiling in sound driver in kernel

Rolf G Nielsen lazlar at lazlarlyricon.com
Fri Jun 12 15:21:49 UTC 2009


Bernt Hansson wrote:
> 
> 
> Polytropon said the following on 2009-06-12 12:54:
>> On Fri, 12 Jun 2009 04:45:59 +0200, Bernt Hansson 
>> <bernt at bah.homeip.net> 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
>>>>>     root at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at 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.


More information about the freebsd-questions mailing list