Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 1999 03:21:43 +0000
From:      Adrian Wontroba <aw1@stade.co.uk>
To:        Paul Bauer <bauerp@mailgate.classic.net>
Cc:        multimedia@FreeBSD.ORG
Subject:   Re: sb32 configuration in 2.2.8
Message-ID:  <19990203032143.C77149@titus.stade.co.uk>
In-Reply-To: <Pine.LNX.3.96.990202101054.17927A-100000@mailgate.classic.net>; from Paul Bauer on Tue, Feb 02, 1999 at 10:16:06AM -0600
References:  <Pine.LNX.3.96.990202101054.17927A-100000@mailgate.classic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 02, 1999 at 10:16:06AM -0600, Paul Bauer wrote:
> I have installed my sound card in 2.2.8 using the following in my config
> file.  controller      pnp0
> device        pcm0 at isa? port 0x220 tty irq ?  drq ? flags 0x15 vector
> pcmintr
 
>                                                    is there more to the
> process then just installing these lines and recompiling the kernel?

Yes, there is (8-)

>From memory, old mail messages and my system (ie, there may be
significant omissions):

You need to tell your kernel what irq etc to use. "man pnp", but in
short:

Make sure that you have the USERCONFIG in your kernel options.

Each time you build a new kernel, boot with "-c" and enter the pnp
configuration options.  They will be saved in the kernel image by dset.

Once you know what they are, you can reduce the interaction by creating
a /kernel.config file, containing the directives. This is what I used to
use for a SB16X-VIBRA (don't buy one!)

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 

Later (new boot loader) releases are different in this area.  I
currently have this in /boot/loader.rc:

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

And this in /kernel.config:

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

Snippets from dmesg:

....
real memory  = 134217728 (131072K bytes)
config> pnp 1 0 os enable irq0 5 drq0 0 drq1 1 port0 0x220 port1 0x300 port2 0x388
config> pnp 1 1 os enable port0 0x201
config> quit
avail memory = 127889408 (124892K bytes)
Preloaded elf kernel "kernel" at 0xf028f000.
Preloaded userconfig_script "/kernel.config" at 0xf028f09c.
....
Probing for PnP devices:
CSN 1 Vendor ID: CTL00f0 [0xf0008c0e] Serial 0xffffffff Comp ID: PNPb02f [0x2fb0d041]
pcm1 (SB16pnp <Vibra16X> sn 0xffffffff) at 0x220-0x22f irq 5 drq 0 flags 0x11 on isa
....
pcm0 not found

You'll also need to do something along the lines of

cd /dev; sh MAKEDEV snd1

to create the device nodes and link /dev/mixer (etc) to mixer1

-- 
Adrian Wontroba

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990203032143.C77149>