Date: Mon, 15 Jan 2018 10:32:58 -0800 From: Freddie Cash <fjwcash@gmail.com> To: Alexander Sieg <alex@xanderio.de> Cc: FreeBSD Current <current@freebsd.org> Subject: Re: Building kernel with no sound Message-ID: <CAOjFWZ5P2ZVnW635awzLXMcKiCPtC4xNQNFNsySAwA3%2BE=rsHg@mail.gmail.com> In-Reply-To: <86tvvn2dlq.fsf@xanderio.de> References: <86tvvn2dlq.fsf@xanderio.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 15, 2018 at 10:14 AM, Alexander Sieg <alex@xanderio.de> wrote: > Hey, > i=C2=B4m trying to build a custom kernel with no sound support build in. > > This is my make.conf: > MALLOC_PRODUCTION=3Dtrue > KERNCONF=3DMYKERNEL #GENERIC-NODEBUG > DEVELOPER=3Dyes > > and this is my kernel configuration: > include GENERIC-NODEBUG > > ident MYKERNEL > > nodevice sound # Generic sound driver (required) > nodevice snd_es137x # Ensoniq AUdioPCI ES137x > nodevice snd_hda # Intel High Definition Audio > nodevice snd_ich # Intel, Nvidia and other ICH AC'97 audio > nodevice snd_uaudio # USB Audio > nodevice snd_via8233 # VIA VT823x Audio > > > The problem is when i try to compile it with "make buildkernel" the > build process starts, but it stop with the error that it can=C2=B4t find = the > header file "channel_if.h". > > /usr/src/sys/dev/sound/pcm/channel.h:256:10: fatal error: 'channel_if.h' > file not found > #include "channel_if.h" > ^~~~~~~~~~~~~~ > > The intention behind the custom kernel is to try 'oss' form the > ports tree. > =E2=80=8BYou're missing a few of the sound drivers. Here's the section fro= m GENERIC on 11.1 for sound (it's the same for 10.4 and 12-CURRENT): =E2=80=8B# Sound support device sound # Generic sound driver (required) device snd_cmi # CMedia CMI8338/CMI8738 device snd_csa # Crystal Semiconductor CS461x/428x device snd_emu10kx # Creative SoundBlaster Live! and Audigy device snd_es137x # Ensoniq AudioPCI ES137x device snd_hda # Intel High Definition Audio device snd_ich # Intel, NVidia and other ICH AC'97 Audio device snd_via8233 # VIA VT8233x Audio =E2=80=8BSo you need to add nodevice entries for all the ones that you are = missing (snd_cmi, snd_cma, snd_emu10kx).=E2=80=8B Always check the kernel config file you are including to see what you need to exclude via nodevice. :) --=20 Freddie Cash fjwcash@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ5P2ZVnW635awzLXMcKiCPtC4xNQNFNsySAwA3%2BE=rsHg>