Re: trouble with kernel
On Mon, Sep 15, 2003 at 09:54:46AM -0400, Lowell Gilbert wrote: > "george" <[EMAIL PROTECTED]> writes: > > > why is it that we have had sound cards on computers for practically > > 20 years yet device pcm is not compiled into the default kernel.? > > Because it's not needed to actually accomplish the install. And it > doesn't have to be compiled into the kernel -- the driver can be > loaded just as well at any time after the system has booted. So > there's no reason for it to be in the kernel. Actually this isn't true - the install kernel differs from GENERIC. > > would it make a huge difference in speed if someone didnt have a sound card? > > None at all. However, it would make some difference in kernel size, > which is important at install time because we still need to support > booting into the install from a floppy. Which uses a different kernel because GENERIC doesn't fit. The issue of including pcm by default is tough because FreeBSD is used mostly for servers, and they don't care about sound. On the other hand modern servers (certainly those that can run FreeBSD 5.x) don't care if the device is compiled in the kernel, because they can spare the +- 100k (gross estimate) of unused kernel memory. If you care enough, bring it up on -hackers, but expect a nice bikeshed to be built for you :) --Stijn -- I have great faith in fools -- self confidence my friends call it. -- Edgar Allan Poe pgp0.pgp Description: PGP signature
Re: trouble with kernel
"george" <[EMAIL PROTECTED]> writes: > why is it that we have had sound cards on computers for practically > 20 years yet device pcm is not compiled into the default kernel.? Because it's not needed to actually accomplish the install. And it doesn't have to be compiled into the kernel -- the driver can be loaded just as well at any time after the system has booted. So there's no reason for it to be in the kernel. > would it make a huge difference in speed if someone didnt have a sound card? None at all. However, it would make some difference in kernel size, which is important at install time because we still need to support booting into the install from a floppy. The original poster shouldn't worry about rebuilding the kernel, but should just do a 'kldload snd' (probably enough, depending on the sound hardware) and go to town. To do that automatically on boot, I think a 'snd_load="YES"' in loader.conf should be sufficient. I haven't done an install lately, but I understand that the install can set this up automatically. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: trouble with kernel
On Mon, 15 Sep 2003 00:27:28 -0500, Rob <[EMAIL PROTECTED]> wrote: cd /usr/src/sys/i386/conf && ee GENERIC now just add the device like so device pcm then Esc and save then cd /usr/src/ && make buildkernel KERNCONF=GENERIC after its done building: make installkernel KERNCONF=GENERIC now shutdown -r now Hope this helps Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Sent: Sunday, September 14, 2003 11:51 PM To: [EMAIL PROTECTED] Subject: trouble with kernel if i am trying to add my sound card device, and add the line device pcm into kernel do i have to recompile it to make it work and if so how do i recompile? Rather than editing GENERIC, you may want to copy GENERIC and rename the copy (KERN[DATE] or KERNEL[DATE] are possibilities; I'm sure you can think of more), then edit, build and install the renamed version. Though problems are very unlikely to occur just from adding "device pcm," if at some point in the future an edited kernel doesn't build or install correctly, you then have the unchanged GENERIC to fall back on. Jud ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: trouble with kernel
cd /usr/src/sys/i386/conf && ee GENERIC now just add the device like so device pcm then Esc and save then cd /usr/src/ && make buildkernel KERNCONF=GENERIC after its done building: make installkernel KERNCONF=GENERIC now shutdown -r now Hope this helps Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Sent: Sunday, September 14, 2003 11:51 PM To: [EMAIL PROTECTED] Subject: trouble with kernel if i am trying to add my sound card device, and add the line device pcm into kernel do i have to recompile it to make it work and if so how do i recompile? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: trouble with kernel
why is it that we have had sound cards on computers for practically 20 years yet device pcm is not compiled into the default kernel.? would it make a huge difference in speed if someone didnt have a sound card? - Original Message - From: "Charlie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 14, 2003 9:50 PM Subject: trouble with kernel > if i am trying to add my sound card device, and add the line device pcm into > kernel do i have to recompile it to make it work and if so how do i recompile? > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: trouble with kernel
Charlie wrote: if i am trying to add my sound card device, and add the line device pcm into kernel do i have to recompile it to make it work and if so how do i recompile? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" You only need to recompile if you want the driver in the kernel. If you check /boot/kernel there are modules that can be loaded dynamicly so you never need to reboot to add or upgrade drivers(except for agp). If you have a sound blaster the best bet would be to add the line snd_pcm_load="YES" to /boot/loader.conf. This must be done as root. This will cause the driver to be loaded at every boot. Use $kldload snd_pcm.ko to load the driver now. Then use $kldstat to see if the driver is loaded. If that is not the driver you can keep loading and unloading, or check the document for which one to load. If you don't care and just want it to work use $kldload snd_driver.ko and snd_driver_load="YES". This will load all the supported sound drivers and if your card is supported you should now here the music. Check the handbook for more info and for details on getting multichannel sound if you want it, and everything you need to recompile if you want to. Jason ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"