PDA

View Full Version : upgraded to 2.6.2....now no sound or network



theoldmanschild
02-23-2004, 09:05 AM
Well since I'm an idiot, I recompiled my kernel with 2.6.2 and everything works fine...except it can't detect my sound card or NIC. I compiled with OSS and ALSA support for EMU10k1 and I have a Soundblaster Live! but it still doesn't see it. I also compiled in support for NE2000/1000 cards because my SMC EZCard 1211 was supposed to be compatible with these generic drivers (no linux drivers available). So I'm completely confused as to why it doesn't work. Anyways, it worked with the Live CD and with the HDD install before upgrading the kernel, so I was wondering if there's a .config anywhere that is the default that Knoppix was compiled with so I could use that (if that would work) or if there's any other fixes available.

Stephen
02-23-2004, 10:45 AM
Well since I'm an idiot, I recompiled my kernel with 2.6.2 and everything works fine...except it can't detect my sound card or NIC. I compiled with OSS and ALSA support for EMU10k1 and I have a Soundblaster Live! but it still doesn't see it. I also compiled in support for NE2000/1000 cards because my SMC EZCard 1211 was supposed to be compatible with these generic drivers (no linux drivers available). So I'm completely confused as to why it doesn't work. Anyways, it worked with the Live CD and with the HDD install before upgrading the kernel, so I was wondering if there's a .config anywhere that is the default that Knoppix was compiled with so I could use that (if that would work) or if there's any other fixes available.

I have a SB Live that worked fine with 2.6.2 you can look at my config here (http://www3.ns.sympatico.ca/scormier/config-2.6.2) and check for any differences in the sound section. For the network card is the module loaded, the same for sound modules as well. The configuration for any kernel installed in Debian with the kernel package program is in the /boot/config-?.?.??-??, the ? are the output of uname -r for the old kernel it is easy enough to figure out if you look into the directory if you do not want to reboot back to it.

theoldmanschild
02-23-2004, 10:52 AM
it's funny you should mention that, because when i first compiled it i used your config verbatim because I had seen it in the 2.6.0 thread. no sound, no network. tried again after adding SE2000 NIC stuff to the kernel, still no good.

Stephen
02-23-2004, 09:05 PM
it's funny you should mention that, because when i first compiled it i used your config verbatim because I had seen it in the 2.6.0 thread. no sound, no network. tried again after adding SE2000 NIC stuff to the kernel, still no good.

Just to ask the obvious you have went and unmuted the master and pcm channels everytime I upgrade the kernel they get reset to the default mute. Next thing to check is what you have installed for alsa you need the alsa-base and alsa-utils packages installed. I'm not sure about the NIC never used that card but as I asked in my last response is the module for it loaded??

theoldmanschild
02-24-2004, 12:52 AM
When I boot KDE it says there was an error starting the sound server...so it's not just that they're muted. As for the modules, I don't know how one would check that. (like i said, me = idiot). When it boots, I notice it says that it's sharing IRQ for two PCI devices and lspci showed my NIC and sound card as those two devices. Also in the boot message I saw something about NE2k-PCI, and it said [OK].

rickenbacherus
02-24-2004, 02:53 AM
As for the modules, I don't know how one would check that.

lsmod

Stephen
02-24-2004, 03:17 AM
When I boot KDE it says there was an error starting the sound server...so it's not just that they're muted. As for the modules, I don't know how one would check that. (like i said, me = idiot). When it boots, I notice it says that it's sharing IRQ for two PCI devices and lspci showed my NIC and sound card as those two devices. Also in the boot message I saw something about NE2k-PCI, and it said [OK].

That usually means you are not a member of the audio group or it is using the wrong server, BTW that would have been nice to know when you first posted. To check use the groups command in a console window (clam shell icon on the taskbar) and make sure you see audio there if not then type in su then enter next root password and enter again. Now you would adduser your_user_name audio then you have to logout and back in for the change to take effect. To check for the server usage open the Control Center go to the Sound & Multimedia then Sound System and make sure it is set to ALSA not autodetect. To check for loaded modules you use the command lsmod in a console window you should see output similar to this.



[09:33 PM Mon Feb 23: stephen @ /usr/src]
>$ lsmod
Module Size Used by
snd_pcm_oss 48516 0
snd_mixer_oss 15936 2 snd_pcm_oss
nvidia 2070376 12
apm 15268 2
snd_emu10k1 63172 1
snd_rawmidi 19648 1 snd_emu10k1
snd_pcm 83520 2 snd_pcm_oss,snd_emu10k1
snd_timer 20928 1 snd_pcm
snd_seq_device 6596 2 snd_emu10k1,snd_rawmidi
snd_ac97_codec 54724 1 snd_emu10k1
snd_page_alloc 9540 2 snd_emu10k1,snd_pcm
snd_util_mem 3456 1 snd_emu10k1
snd_hwdep 7296 1 snd_emu10k1
snd 46468 10 snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi, snd_pcm,snd_timer,snd_seq_device,snd_ac97_codec,sn d_util_mem,snd_hwdep
uhci_hcd 28360 0
ohci_hcd 15936 0
ehci_hcd 21888 0
evdev 8256 0
via686a 17028 0
i2c_sensor 2496 1 via686a
i2c_isa 1984 0
i2c_core 18304 3 via686a,i2c_sensor,i2c_isa
nls_iso8859_15 4608 0
sidewinder 11648 0
emu10k1_gp 2496 0
joydev 9152 0
gameport 3840 2 sidewinder,emu10k1_gp
sound 75496 0
soundcore 7584 3 snd,sound
parport_pc 25740 1
lp 8964 0
parport 36864 2 parport_pc,lp
tulip 38368 0
crc32 4096 1 tulip


You may want to move one of the cards to a different slot to see if will get a different IRQ and you should go into the BIOS and make sure any setting in there for a Plug'n'Play OS if set to disabled. Also have you mkdir /sys as root and put this line in your /etc/fstab to use the new sysfs in the 2.6 series of kernels.


## Needed for kernel 2.6
none /sys sysfs defaults 0 0


And you may want to try at the Lilo screen using Linux pci=biosirq to try and make it use a separate irq for the sound and network card, this assumes that the name you select at the lilo screen to boot the 2.6 kernel is Linux if it differs type that in instead.

theoldmanschild
02-24-2004, 04:12 AM
LOL definitely found the problem...



ken@tux:~$ groups
ken dialout fax voice cdrom floppy tape sudo audio dip src video games users usb
ken@tux:~$ lsmod
Module Size Used by
nls_cp437 5376 2
apm 15524 1
parport_pc 26860 1
lp 8836 0
parport 36392 2 parport_pc,lp
uhci_hcd 29840 0
ohci_hcd 15808 0
ehci_hcd 22596 0
evdev 7680 0
ken@tux:~$


I knew that when I added my user I added it to the audio group...and I just added that line to fstab and rebooted and still no modules loading. Now that I know it's not loading my modules...how do I make it load them???

Wait wait...lemme guess...module init tools? I may have forgotten them when I upgraded and that would cause me to smack myself rather hard...I'll try bootin my 2.4 kernel and see if I can download them with that

theoldmanschild
02-24-2004, 04:34 AM
hehe...well i tried 2.4.21-xfs and couldn't boot...went into 2.6, did a dpkg search for module-init-tools...and i already got it. So I'm not quite as dumb as I thought...

I also noticed when i shut down, that at the very top of the screen (left over from booting up) it mentioned a problem with hotplug and PCI...so I'm guessing THAT is where my problem is now...

hope that narrows it down even more...

theoldmanschild
02-24-2004, 05:12 AM
tried update-modules and rebooted..same problem...but i did get a chance to finally read what it said about hotplugging before it flew off the screen:



pci** couldn't synthesize PCI hotplug events


or something very similar to that

Stephen
02-24-2004, 05:40 AM
Ok so are both the network and sound still not working at this point and is the output of the lsmod you show above from the booted 2.6 kernel? To load a module you use modprobe name_of_module as root for instance modprobe ne2k-pci for the network card you mention in a post above.

theoldmanschild
02-24-2004, 06:18 AM
yeah, that's the 2.6.2 and they're not workin...i'll try modprobe

theoldmanschild
02-24-2004, 06:40 AM
modprobed ne2k-pci as well as snd, snd_emu10k1, and a few other snd's until i had pretty much identical lsmod output to yours...used update-modules hoping that it would write them to modules.conf and lsmod again to check that they were all still up (which they were), and then tried accessing them...no luck still. When I selected alsa from the list in Multimedia, it said there is no device: default and couldn't load the server. Tried soundcardconfig but it doesn't work anymore now that the modules are named with the .ko convention. I'm assuming netcardconfig is the same, and it also didn't recognize my card. I'm really close to just giving up and goin back to a 2.4.x kernel (full reinstall of knoppix). I'm sure this is getting to be almost as big of a pain in the ass for you when you're trying to help me as it is for me! The only reason I was really recompiling anyway was to get a version.h on my system so I could use ATI's video card drivers for my Radeon 9800 Pro...wasn't overly concerned about upgrading from 2.4.x to 2.6.x. Also...i'm not even sure that make-kpkg leaves a version.h behind for you to be able to use anyway!

Stephen
02-24-2004, 07:47 AM
You need to have the alsa-base and alsa-utils packages installed for the sound the base setups the configuration file which will be used here is mine it may work without the packages you can to save it as /etc/modprobe.d/alsa then run the update-modules again and see if that helps.


>$ cat /etc/modprobe.d/alsa
### DEBCONF MAGIC
# This file was automatically generated by alsa-base's debconf stuff

alias char-major-116 snd
alias char-major-14 soundcore

options snd major=116 cards_limit=4

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/dsp* snd-pcm-oss

alias snd-card-0 snd-emu10k1

alias snd-slot-0 snd-card-0
alias sound-slot-0 snd-slot-0


Are you sure that you are using the correct module for the net card? For the version.h if you still have the source tree for the kernel that you compiled it is in there and should be found also when building a kernel_image you can at the same time build a kernel_headers package that you can install which will have the file as well.



>$ locate version.h
/usr/include/gnu/libc-version.h
/usr/include/linux/dvb/version.h
/usr/include/linux/version.h
/usr/local/lm_sensors-2.8.2/version.h
/usr/local/modules/lm-sensors/version.h
/usr/src/kernel-headers-2.4.23.031202/include/linux/version.h
/usr/src/kernel-headers-2.4.23.031202/include/pcmcia/version.h
/usr/src/kernel-headers-2.4.24.040105/include/linux/version.h
/usr/src/kernel-headers-2.4.24.040105/include/pcmcia/version.h
/usr/src/kernel-headers-2.6.2/include/linux/dvb/version.h
/usr/src/kernel-headers-2.6.2/include/linux/version.h
/usr/src/kernel-headers-2.6.2/include/pcmcia/version.h
/usr/src/kernel-headers-2.6.2/include/sound/version.h
/usr/src/kernel-headers-2.6.3/include/linux/dvb/version.h
/usr/src/kernel-headers-2.6.3/include/linux/version.h
/usr/src/kernel-headers-2.6.3/include/pcmcia/version.h
/usr/src/kernel-headers-2.6.3/include/sound/version.h
/usr/src/linux-2.4.24/arch/i386/math-emu/version.h
/usr/src/linux-2.4.24/drivers/net/sk98lin/h/skversion.h
/usr/src/linux-2.4.24/include/linux/version.h
/usr/src/linux-2.4.24/include/pcmcia/version.h
/usr/src/linux-2.6.2/arch/i386/math-emu/version.h
/usr/src/linux-2.6.2/drivers/net/sk98lin/h/skversion.h
/usr/src/linux-2.6.2/drivers/scsi/qla2xxx/qla_version.h
/usr/src/linux-2.6.2/fs/xfs/linux/xfs_version.h
/usr/src/linux-2.6.2/include/linux/dvb/version.h
/usr/src/linux-2.6.2/include/linux/version.h
/usr/src/linux-2.6.2/include/pcmcia/version.h
/usr/src/linux-2.6.2/include/sound/version.h
/usr/src/linux-2.6.3/arch/i386/math-emu/version.h
/usr/src/linux-2.6.3/drivers/net/sk98lin/h/skversion.h
/usr/src/linux-2.6.3/drivers/scsi/qla2xxx/qla_version.h
/usr/src/linux-2.6.3/fs/xfs/linux/xfs_version.h
/usr/src/linux-2.6.3/include/linux/dvb/version.h
/usr/src/linux-2.6.3/include/linux/version.h
/usr/src/linux-2.6.3/include/pcmcia/version.h
/usr/src/linux-2.6.3/include/sound/version.h
/usr/src/modules/alsa-drivers/alsa-kernel/include/version.h
/usr/src/modules/alsa-drivers/include/version.h
/usr/src/modules/alsa-drivers/include/version.h.in

theoldmanschild
02-24-2004, 08:13 AM
the problem with the version.h is that 2.6.2 is the first kernel i'm compiling in knoppix...so i don't think i have the file in 2.4.21-xfs because I didn't compile it myself (came on knoppix CD). I'm going to try lsmod while running the liveCD to see what modules it has loaded for my network card even though my card is supposed to be ne2k-pci compatible.

theoldmanschild
02-24-2004, 08:22 AM
okay i'm currently running on the Live CD and my internet is working fine...here is my lsmod



knoppix@ttyp0[knoppix]$ lsmod
Module Size Used by Not tainted
autofs4 8756 1 (autoclean)
af_packet 13512 0 (autoclean)
reiserfs 169648 0 (autoclean)
ext3 64164 0 (autoclean)
jbd 46356 0 (autoclean) [ext3]
ntfs 50944 0 (autoclean)
msdos 4652 0 (autoclean)
nls_iso8859-1 2876 1 (autoclean)
nls_cp437 4380 0 (autoclean)
agpgart 42628 0 (unused)
emu10k1 61096 0
sound 55276 0 [emu10k1]
ac97_codec 11916 0 [emu10k1]
8139too 12776 1
mii 2256 0 [8139too]
crc32 2832 0 [8139too]
emu10k1-gp 1224 0 (unused)
gameport 1404 0 [emu10k1-gp]
tuner 9440 1 (autoclean)
bttv 96352 0 (unused)
i2c-algo-bit 6888 1 [bttv]
i2c-core 12100 0 [tuner bttv i2c-algo-bit]
soundcore 3428 7 [emu10k1 sound bttv]
videodev 5600 2 [bttv]
parport_pc 24840 0
parport 22496 0 [parport_pc]
serial 51972 0 (autoclean)
hid 21380 0 (unused)
mousedev 3832 1
input 3168 0 [hid mousedev]
printer 7680 0 (unused)
usb-uhci 21868 0 (unused)
usbcore 57824 1 [hid printer usb-uhci]
apm 9768 2
rtc 6972 0 (autoclean)
cloop 8740 2
knoppix@ttyp0[knoppix]$


So I'm going to try to modprobe 8139too i guess??? I know mii and crc32 are related to the NIC but I don't know if any other modules listed are. I'm copying over your /etc/modprobe.d/alsa now and i'll try that in my 2.6.2 install

Stephen
02-24-2004, 08:33 AM
Those should be loaded when you do the modprobe 8139too and if you get online from the HD then do not use my file install the packages I have already mentioned and the file will be created properly during the configuration. Oh and the version.h for the 2.4.21-xfs should be in the directory tree under /usr/src/linux-2.4.21-xfs, Klaus always includes the kernel-headers.

theoldmanschild
02-24-2004, 08:36 AM
WOOHOO!!! 8139too works like a charm, i modprobed it and then did a netcardconfig and it works!!! I'm on my 2.6.2 install right now and typing this!!! Now I need to know how to add it permanently. I guess I'll try to just add a file with it in my modprobe.d directory and do an update-modules?? We'll see if i mess up anything else!!!

Stephen
02-24-2004, 09:12 AM
Just add the module name to the bottom of the list in the file /etc/modules and it will be loaded on boot no need to update-modules for that one.

theoldmanschild
02-24-2004, 09:35 AM
hmmm seems to be so far so good now! thanks a lot for your help stephen!

theoldmanschild
02-24-2004, 11:30 AM
alright...so I finally got ALSA working...and I got my NIC working...but I need to modprobe 8139too and then netcardconfig everytime I boot! I added 8139too as well as mii and crc32 to the end of /etc/modules, even did an update-modules, but no luck with getting it to boot at startup....and actually now that i just looked again...both emu10k1 and 8139too were already in the list right next to each other (funny coincidence i'm assuming). hmm...here's my current /etc/modules:


rtc
apm power_off=1
usb-uhci
printer
mousedev
hid
serial
parport_pc
bttv
tuner
emu10k1-gp
8139too
via82cxxx_audio
emu10k1
agpgart
nls_cp437
nls_iso8859-1
ext3
reiserfs
af_packet
autofs4
mii
crc32


and here's my current lsmod (after using modprobe 8139too to open 8139too, mii and crc32)

8139too 17408 0
mii 4032 1 8139too
crc32 3840 1 8139too
snd_pcm_oss 48420 0
nls_cp437 5376 4
snd_mixer_oss 16768 1 snd_pcm_oss
apm 15524 1
parport_pc 26860 1
lp 8836 0
parport 36392 2 parport_pc,lp
uhci_hcd 29840 0
ohci_hcd 15808 0
ehci_hcd 22596 0
evdev 7680 0
snd_emu10k1 64004 4
snd_rawmidi 20000 1 snd_emu10k1
snd_pcm 86180 4 snd_pcm_oss,snd_emu10k1
snd_timer 21252 1 snd_pcm
snd_ac97_codec 51716 1 snd_emu10k1
snd_page_alloc 9028 2 snd_emu10k1,snd_pcm
snd_util_mem 3264 1 snd_emu10k1
snd_hwdep 7264 1 snd_emu10k1
snd 43940 15 snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi, snd_pcm,snd_timer,snd_ac97_codec,snd_util_mem,snd_ hwdep
soundcore 7392 1 snd
root@tux:~# lsmod
Module Size Used by
8139too 17408 0
mii 4032 1 8139too
crc32 3840 1 8139too
snd_pcm_oss 48420 0
nls_cp437 5376 4
snd_mixer_oss 16768 1 snd_pcm_oss
apm 15524 1
parport_pc 26860 1
lp 8836 0
parport 36392 2 parport_pc,lp
uhci_hcd 29840 0
ohci_hcd 15808 0
ehci_hcd 22596 0
evdev 7680 0
snd_emu10k1 64004 4
snd_rawmidi 20000 1 snd_emu10k1
snd_pcm 86180 4 snd_pcm_oss,snd_emu10k1
snd_timer 21252 1 snd_pcm
snd_ac97_codec 51716 1 snd_emu10k1
snd_page_alloc 9028 2 snd_emu10k1,snd_pcm
snd_util_mem 3264 1 snd_emu10k1
snd_hwdep 7264 1 snd_emu10k1
snd 43940 15 snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi, snd_pcm,snd_timer,snd_ac97_codec,snd_util_mem,snd_ hwdep
soundcore 7392 1 snd


Seems like there's lots of stuff in there that isn't being loaded...though I just looked through and some of that stuff like bttv and tuner are left over from 2.4.2x

Stephen
02-24-2004, 10:09 PM
What does the /etc/network/interfaces file look like that is where the IP for the card gets set and if auto eth0 is in there then it is brought up automatically on boot.

For static settings it should look similar to this you would need to replace the settings with yours.



>$ cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254


For DHCP



>$ cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet dhcp



You can remove or put a # character in front of the lines that are still left over from the knoppix kernel like the bttv, tuner and emu10k1 if they are not needed anymore. The modules being loaded are for the new kernel if you did not compile the others that are in the modules file then they would never have a chance to be loaded they do not exist for that kernel.

theoldmanschild
02-24-2004, 10:32 PM
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp


doesn't seem to be the problem