I know with dealing with people in the #freebsdhelp channel, I've seen that alot of people have problems installing a PNP Sound card, so here is a effort in explaining how to do just that.
  First off lets cover a few basics, I am at this point assuming that the sound card is installed in your machine, and in working order.  Next please try to know ahead of time what IRQ and DMA that the modem is set on. Some motherboards have a PNP option, if this is so in your case you might have to turn that off, to make the below work.  But we will soon find out...

  We need to make sure your kernel has the below line uncommitted out, allowing the FreeBSD to use the PnP Sound Card. If you don't know how to edit the kernel, please click here for more info.  Otherwise if you do uncomment the next line:

       PnP SoundBlaster vibra16x

  Type these lines in under the above line:
     controller pnp0
     device pcm0 at isa ? port? tty irq 5 drq 1 flags 0x15

Caution :
   If you add any snd0 devices, you WILL get errors, so don't even think about it.

  Congratulations, you now have all the items in your Kernel, and we are ready to do a compile, and see if it works.  Do the below steps in the numerical order.

         1. Kernel compiling  (If ya don't know how, Click Here )
         2. Install the new kernel
         3. cd /dev
         4. sh MAKEDEV snd1 (there is a reason for using snd1 instead of snd0)

  Once you have done the above 3 steps, place the below items in your /kernel.config, make sure that you are in   cd / 

               USERCONFIG
               pnp 1 0 os enable irq0 5 drq0 0 drq1 1 port0 0x220 port1 0x300 port2 0x388
               pnp 1 1 os enable port0 0x201
               quit

  Well you are about half way now... we now need to add these items below to your /boot.conf file.

               load /kernel
               load -t userconfig_script /kernel.config
               autoboot
  Ok, its now time to reboot your FreeBSD machine, so much for Uptime, but we are trying to get a piece of hardware working, so that is to be expected.

  Watch as your box reboots, and watch to see if you see the sound card load.  If things are going to fast for you to read, and you want to double check things loaded properly, you can type dmesg |more and this will show you everything the machine showed at boot time.  But at a speed that you can read. But it should show, unless something is wrong, or its on the wrong IRQ or DMA, if this is the case, write down the info, and go back and change it, and start over.

       PnP SoundBlaster Pro

       Place the below items into the kernel configuration:

               controller              pnp0
               controller              snd0
               device sb0            at isa? port 0x220 irq 5 drq 1 vector sbintr
               device sbmidi0      at isa? port 0x330
               device opl0           at isa? port 0x388
               device awe0         at isa? port 0x620

 Now, compile the new kernel, install, and reboot your box.

  Once the machine is rebooted and back up and running do the below:

               cd /dev
               MAKEDEV snd0

  Then make sure you are in  cd /  and place the below items in the kernel.config:

     pnp 1 0 enable os port0 0x220 port1 0x330 port2 0x388 irq0 9 drq0 1 drq1 5
     pnp 1 1 enable os port0 0x220
     pnp 1 2 enable os port0 0x620 port1 0xa20 port2 0xe20
     quit

  Put this in /boot/boot.conf or /boot/boot.rc (the latter is for the latest boot loader):

     load /kernel
     load -t userconfig_script /kernel.config
     autoboot

 Now Reboot the box

GhostRdr

Adding a PnP Soundcard in FreeBSD

Freebsd

This site cannot be duplicated without permission.
     This site is Copyright © 1998-99 Defcon1.Org

Defcon1 Logo