Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA emu10k1 Installation guide mismatch.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Sun Apr 13, 2003 5:53 pm    Post subject: ALSA emu10k1 Installation guide mismatch. Reply with quote

Hello all,
I am new to Gentoo. I have gotten it into KDE with only minor problems, but now I am having some trouble configuring the sound.
I have a Soundblaster Live! sound card.

I have followed the ALSA sound install guide to a tee:
# cd /usr/src/linux
# cp .config ~/
# make mrproper
# cp ~/.config .
# make menuconfig
In this section I configured the "Sound devices" to an "M" or module. I have no other sound devices selected as per the instructions.

# make dep clean
# make modules modules_install
So far so good.

# grep audio /proc/pci
Multimedia audio controller: Creative Labs SB Live! EMU10K1 (rev 7).
No surprises here.

# env ALSA_CARDS='emu10k1' emerge emu10k1
This proceeds as I think it should. It downloads the module, and installs it.

The next part is where I have troubles. In the secion "Configuration of ALSA" the instructions direct me to edit a file called /etc/modules.d/alsa.
On my system that file does not exist.

Any thoughts?
Back to top
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Sun Apr 13, 2003 10:30 pm    Post subject: Re: ALSA emu10k1 Installation guide mismatch. Reply with quote

Raymond R wrote:
# env ALSA_CARDS='emu10k1' emerge emu10k1
This proceeds as I think it should. It downloads the module, and installs it.

Hmm, it seems you emerged the wrong package. To install the alsa drivers you should do
Code:
env ALSA_CARDS='emu10k1' emerge alsa-driver


IIRC the emu10k1 ebuild provides OSS (Open Sound System) drivers that are semi supported by Creative. I have no clue how to set those up. I suggest unmerging emu10k1 before you try the above...

Code:
emerge unmerge emu10k1
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Sun Apr 13, 2003 10:37 pm    Post subject: Reply with quote

Thanks. I will try that right now.
Boy is my face red....
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Sun Apr 13, 2003 11:28 pm    Post subject: Reply with quote

I did as you suggested:
emerge unmerge emu10k1
env ALSA_CARDS='emu10k1' emerge alsa-driver
I also did emerge alsa-oss

I got a bit further, but now I get an error on bootup.
it is an insmod error saying no such device found. (for snd-emu10k1.o)
When I tried to initialize the sound card as per the instructions it gave me the same error.
It mentioned that it could be caused by invalid IO and IRQ paramters.

Any more ideas?
Back to top
View user's profile Send private message
eNTi
Veteran
Veteran


Joined: 20 Oct 2002
Posts: 1011
Location: Salzburg, Austria

PostPosted: Sun Apr 13, 2003 11:37 pm    Post subject: Reply with quote

you need to emerge alsa-lib as well. you might also emerge alsa-utils and alsa-tools.
_________________
If you fall off a cliff, you might as well try to fly. After all, you got nothing to lose.

-- John Sheridan - Babylon 5, Season 4
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Sun Apr 13, 2003 11:54 pm    Post subject: Reply with quote

I emerged all of the packages (alsa-lib, tools, util) as you suggested, and I still get the same thing.
When I run a "lsmod" I get NVdriver and 3c59x (my Geforce and my 3Com network card). But no sound device.
If I try and restart the alsasound service I get WARNING: "alsasound" has already been started. If I try and stop it I get *ALSA driver is not loaded.

Under Info Center and Interrupts (KDE program) it shows EMU10K1, nvidia both on interrupt 11. Is this cause for concern?

I appreciate all of your help so far!
Back to top
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Mon Apr 14, 2003 12:19 am    Post subject: Reply with quote

Hmm, I'm note sure what is causing your problems. Alsa is kind of weird because it takes care of loading all the modules it needs itself. No messing with modules.autoload ...

You might first want to check that you actually have the file snd-emu10k1.o on your system.

Code:
updatedb    #updates your locate database
locate snd-emu10k1.o


The only thing I can think of is that you forgot to run
Code:
#update-modules


As for the interrupt I don't know. I guess you could try moving the soundcard to a diffrent pci slot.

Good Luck :?
Back to top
View user's profile Send private message
jasonm
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2003
Posts: 90
Location: Calgary, Canada... Eh!

PostPosted: Mon Apr 14, 2003 12:38 am    Post subject: Reply with quote

Hey Raymond R,

It might have something to do with the fact that

# update-modules

has been changed to

# modules-update

They have done this for system consistency sake ( rc-update, env-update, etc.)

Don't know if that will make a difference, but it certainly cannot hurt :lol:


jdmaccess
_________________
Registered User # 323863
There is nothing new under the sun . . .

"Open source takes the bullshit out of software."
[small]~ Charles Ferguson on TechnologyReview.com[/small]
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Mon Apr 14, 2003 12:40 am    Post subject: Reply with quote

I ran the updatedb (it took a bit)
Then I ran locate snd-emu10k1.o
/lib/modules/2.4.20-gentoo-r2/kernel/sound/pci/emu10k1/snd-emu10k1.o
is where it is.
I also ran update-modules. No difference.

Here is the error I get on boot up:
carbon root # /etc/init.d/alsasound start
* Initialising ALSA....
* Starting sound driver: snd-emu10k1 /lib/modules/2.4.20-gentoo-r2/kernel/sound/pci/emu10k1/snd-emu10k1.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-gentoo-r2/kernel/sound/pci/emu10k1/snd-emu10k1.o: insmod /lib/modules/2.4.20-gentoo-r2/kernel/sound/pci/emu10k1/snd-emu10k1.o failed
/lib/modules/2.4.20-gentoo-r2/kernel/sound/pci/emu10k1/snd-emu10k1.o: insmod snd-emu10k1 failed

I have moved the card twice now. The second time it was finally on a different interrupt than the Geforce card. This does not make any difference though.

Here is the end of the output from dmesg
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:09.0: 3Com PCI 3c905C Tornado at 0xd000. Vers LK1.1.16
nvidia: loading NVIDIA Linux x86 NVdriver Kernel Module 1.0-3123 Tue Aug 27 15:56:48 PDT 2002
EMU10K1/Audigy soundcard not found or device busy
NVRM: AGPGART: VIA Apollo KT133 chipset
NVRM: AGPGART: aperture: 256M @ 0xc0000000
NVRM: AGPGART: aperture mapped from 0xc0000000 to 0xe197c000
NVRM: AGPGART: mode 4x
NVRM: AGPGART: allocated 16 pages
devfs_mk_dir(snd): using old entry in dir: c1590140 ""
EMU10K1/Audigy soundcard not found or device busy
EMU10K1/Audigy soundcard not found or device busy

Have I got ya stumped yet?
8O
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Mon Apr 14, 2003 12:42 am    Post subject: Reply with quote

jasonm wrote:
Hey Raymond R,

It might have something to do with the fact that

# update-modules

has been changed to

# modules-update

They have done this for system consistency sake ( rc-update, env-update, etc.)

Don't know if that will make a difference, but it certainly cannot hurt :lol:


jdmaccess

Oh I saw that right after I posted. I am trying it now....
....nope. No difference.
I think that I am beginning to crack. :?
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Mon Apr 14, 2003 1:04 am    Post subject: Reply with quote

Quote:

Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected Via Apollo Pro KT266 chipset
agpgart: AGP aperture is 256M @ 0xc0000000
[drm] Initialized tdfx 1.0.0 20010216 on minor 0
[drm] AGP 0.99 on VIA Apollo KT133 @ 0xc0000000 256MB
[drm] Initialized radeon 1.1.1 20010405 on minor 1
[drm] AGP 0.99 on VIA Apollo KT133 @ 0xc0000000 256MB
[drm] Initialized i810 1.2.0 20010920 on minor 2
Creative EMU10K1 PCI Audio Driver, version 0.20, 09:01:03 Apr 5 2003
emu10k1: EMU10K1 rev 7 model 0x8027 found, IO at 0xd400-0xd41f, IRQ 5
ac97_codec: AC97 Audio codec, id: CRY20(Cirrus Logic CS4297A rev B)

Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
uhci.c: USB UHCI at I/O 0xe000, IRQ 5
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
uhci.c: USB UHCI at I/O 0xe400, IRQ 5
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
ds: no socket drivers loaded!
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 68k freed
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,3), internal journal
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:09.0: 3Com PCI 3c905C Tornado at 0xd000. Vers LK1.1.16
nvidia: loading NVIDIA Linux x86 NVdriver Kernel Module 1.0-3123 Tue Aug 27 15:56:48 PDT 2002
EMU10K1/Audigy soundcard not found or device busy
NVRM: AGPGART: VIA Apollo KT133 chipset
NVRM: AGPGART: aperture: 256M @ 0xc0000000
NVRM: AGPGART: aperture mapped from 0xc0000000 to 0xe197c000
NVRM: AGPGART: mode 4x
NVRM: AGPGART: allocated 16 pages


I looked at the output of dmesg again and further up (look at the bold type) I found where it was loading (?) the sound driver emu10k1 and an AC97 codec, too. Is this normal?
Back to top
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Mon Apr 14, 2003 1:22 am    Post subject: Reply with quote

Code:
media-sound/emu10k1
      Latest version available: 0.20a-r5
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 279 kB
      Homepage:    http://www.sourceforge.net/projects/emu10k1/
      Description: Drivers, utilities, and effects for Sound Blaster cards (SBLive!, SB512, Audigy)


Notice that the non alsa driver you installed first has version number 0.20a
You are loading the non alsa driver first. Then when the system tries to load the alsa driver it can't since the soundcard is busy.

I though a
Code:
emerge unmerge emu10k1
would have removed the old driver but it looks like I was wrong. :( Mabey you could ask a moderator to move this thread to the hadware forum? You are bound to get more help there...
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Mon Apr 14, 2003 2:27 am    Post subject: Reply with quote

henke wrote:
Code:
media-sound/emu10k1
      Latest version available: 0.20a-r5
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 279 kB
      Homepage:    http://www.sourceforge.net/projects/emu10k1/
      Description: Drivers, utilities, and effects for Sound Blaster cards (SBLive!, SB512, Audigy)


Notice that the non alsa driver you installed first has version number 0.20a
You are loading the non alsa driver first. Then when the system tries to load the alsa driver it can't since the soundcard is busy.

I though a
Code:
emerge unmerge emu10k1
would have removed the old driver but it looks like I was wrong. :( Mabey you could ask a moderator to move this thread to the hadware forum? You are bound to get more help there...


Yes this appears to be the case. I have emerge unmerged the emu10k1 driver, but it is still loading it. I don't understand that.
Is there a config file where that driver would be loaded from?

Thanks again.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Apr 14, 2003 3:01 am    Post subject: Reply with quote

The first instance of emu10k1 that shows up in dmesg is not from the emu10k1 ebuild.
You have emu10k1 compiled into your kernel (not a module).
If you are sure you compiled your kernel without this option, the next step is to check if you are actually running the kernel you just compiled.
"uname -a" will give you the time & date your running kernel was compiled.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Apr 14, 2003 3:11 am    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Mon Apr 14, 2003 4:36 am    Post subject: Reply with quote

cyrillic wrote:
The first instance of emu10k1 that shows up in dmesg is not from the emu10k1 ebuild.
You have emu10k1 compiled into your kernel (not a module).
If you are sure you compiled your kernel without this option, the next step is to check if you are actually running the kernel you just compiled.
"uname -a" will give you the time & date your running kernel was compiled.


The first time I compiled the kernel I put in support for the soundblaster live-yes. This would explain the behaviour.
In subsequent recompiles I have deselected that option. Since it is obvious that I am not running the kernel I have recompiled, could you tell me how I could?

Thanks for your help!
Back to top
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Mon Apr 14, 2003 12:47 pm    Post subject: Reply with quote

Recompile your kernel by doing
Code:
cd /usr/src/linux
make dep && make clean bzImage modules modules_install

Then you need to reemerge the ALSA drivers as per the ALSA documentation
Code:
env ALSA_CARDS='emu10k1' emerge alsa-driver

Then mount the boot partition and copy your kernel to it.
Code:
mount /boot
cp /boot/bzImage /boot/bzImage.orig
cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage

If you are using GRUB you are now all set. If you are using LILO you will have to rerun it but I don't know how to do that.
Code:
umount /boot

Done

edit - it should be make dep && make clean not the other way around :oops:


Last edited by henke on Mon Apr 14, 2003 1:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Mon Apr 14, 2003 1:24 pm    Post subject: Reply with quote

Thanks henke!
I will try that first thing after work.

Cheers!
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Mon Apr 14, 2003 10:55 pm    Post subject: Reply with quote

henke wrote:
Recompile your kernel by doing
Code:
cd /usr/src/linux
make dep && make clean bzImage modules modules_install

Then you need to reemerge the ALSA drivers as per the ALSA documentation
Code:
env ALSA_CARDS='emu10k1' emerge alsa-driver

Then mount the boot partition and copy your kernel to it.
Code:
mount /boot
cp /boot/bzImage /boot/bzImage.orig
cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage

If you are using GRUB you are now all set. If you are using LILO you will have to rerun it but I don't know how to do that.
Code:
umount /boot

Done

edit - it should be make dep && make clean not the other way around :oops:


So far I have done the recompile and the emerge alsa-driver.
When I try to mount /boot:
mount: special device /dev/BOOT does not exist.

Also, I found bzImage in a folder called /boot. Obviously it was not using this kernel since I removed it and it still booted okay.

Man it is amazing how much you can screw up your system and still have it work.
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Mon Apr 14, 2003 11:09 pm    Post subject: Reply with quote

Got it!
To everyone that helped you have my gratitude!

For some reason there was no device (or link) in /dev called "boot".
When I mounted it I had to do it manually, so to speak:
mount -t ext3 /dev/hda1 /boot

One I typed in the above I had access to the image and was able to replace it-no problems.
I rebooted, and unmuted the sound channels.
Now I am listening to some tunes.

Thanks again!
Back to top
View user's profile Send private message
jasonm
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2003
Posts: 90
Location: Calgary, Canada... Eh!

PostPosted: Tue Apr 15, 2003 12:14 am    Post subject: Reply with quote

Glad to hear it :D
_________________
Registered User # 323863
There is nothing new under the sun . . .

"Open source takes the bullshit out of software."
[small]~ Charles Ferguson on TechnologyReview.com[/small]
Back to top
View user's profile Send private message
henke
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 165
Location: Stockholm, Sweden

PostPosted: Tue Apr 15, 2003 11:24 pm    Post subject: Reply with quote

Great :)

PS. You might want to have a look at your /etc/fstab. /dev/BOOT should be replaced with /dev/hda1 I think...
Back to top
View user's profile Send private message
Raymond R
n00b
n00b


Joined: 13 Apr 2003
Posts: 36
Location: Swift Current, Saskatchewan

PostPosted: Tue Apr 15, 2003 11:29 pm    Post subject: Reply with quote

Yeah probably. I created a link in dev from /dev/hda1 to /dev/BOOT.
All good now. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum