Make sure you have kernel autoloader compiled in.  Here's how mine
works...

/etc/conf.modules...

alias sound sb
options sb io=0x220 irq=10 dma=0 dma16=5

And then make sure that /lib/modules/default is linked to your kernel
version (mine is /lib/modules/2.2.0).  It works fine for me.  Also make
sure you do a depmod -a on every boot.  Unless you've changed this, your
distro should do it for you.  It needs that info to fine the depednencies
for the modules needed to load.  I guess you don't have to do it on every
boot, but it just makes it easier than running it by hand every time you
recompile your modules.

-CJO-


On Thu, 28 Jan 1999, Gerard O'Donnell wrote:

>Hiya Everyone.
>
>Just tried compiling 2.2, which sorta goes. Sound seems to be a problem
>with me at the moment. 
>
>If I keep the sound code unmodularized:
>
>make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
>make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
>ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext
>arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
>init/version.o \
>        --start-group \
>        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
>mm/mm.o fs/fs.o ipc/ipc.o \
>        fs/filesystems.a \
>        net/network.a \
>        drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
>drivers/net/net.a drivers/cdrom/cdrom.a drivers/sound/sound.a
>drivers/pci/pci.a drivers/pnp/pnp.a drivers/video/video.a \
>        /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a
>/usr/src/linux/arch/i386/lib/lib.a \
>        --end-group \
>        -o vmlinux
>drivers/sound/sound.a(sb_ess.o): In function `ess_init':
>sb_ess.o(.text+0xde2): undefined reference to `esstype'
>sb_ess.o(.text+0xe77): undefined reference to `esstype'
>make: *** [vmlinux] Error 1
>
>OR(!), If I compile it as a module, it compiles fine, /etc/conf.modules
>looks like:
>
>alias char-major-14 sb
>post-install sb /sbin/modprobe "-k" "adlib_card"
>options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330
>options adlib_card io=0x388     # FM synthesizer
>options sound           dmabuf=1
>
>And when I try to 'wavplay fat.wav'
>
>Operation not supported by device:
>Opening audio device /dev/dsp
>
>and in the logs, these to entries subsequently pop up:
>
>Jan 28 22:07:14 localhost modprobe: can't locate module sound-slot-0
>Jan 28 22:07:14 localhost modprobe: can't locate module sound-service-0-3
>
>...so Anyone got any pointers?  What are these modules, and what are they
>under in the menuconfig tree? 
>
>OH, and yeah, I'm running just a stock-standard Genuine SoundBlaster 16.
>
>--
>I'm not even going to ignore that.
>

                C.J. Oster (Linux Guru/Surge Addict)
------------------------------------------------------------------
| [EMAIL PROTECTED]   |   910 S. 3rd St, #1218  |   CCSO, WSG, UIUC  |
| [EMAIL PROTECTED]  |   Champaign, IL 61820   |   1443 DCL, Urbana |
------------------------------------------------------------------
                   (580)761-6393 (217)328-8934
      "Linux, for people with an IQ above 98" - Bumper Sticker
 "Hm, a little big for a cup holder... Why does it say '4x' on it?"

Reply via email to