Quote:
If he has an ISA soundcard, lspci won't tell us anything. The old lsisa command is not included on most modern distros. The only thing to do (that I can think of) is snoop around in /proc.
|
This is only necissary if you do not know the manufactureer of your sound card. There really isn't that much more you need to know to select the right card in your kernel compile.
Quote:
I don't know how to compile my kernel. What will recompiling my kernel do? Does it mean I have to reinstall everything?
|
It’s not as bad as it sounds at all. You are just configuring your kernel (the heart of Linux) to recognize your system hardware.
First, download the latest 2.6 kernel from kernel.org and extract it to ‘/usr/src’.
Then you will need to configure your kernel to suit your needs. ‘cd’ to the extracted directory and run ‘make menuconfig’. This is where you pick all your system information. For the most part, the 2.6 kernel will try and automatically pick the right options for you. The best way to do this is to not removing anything, only add in what you think you might need as modules (indicated by <M>) Modules are good because if it is not needed, it will not be loaded into the memory, but if it is needed, it can be used. For me, the only thing I had to add was the correct module for my network card, everything else auto detected fine. Also, please see the instructions I gave earlier for configuring sound correctly.
Once you are done configuring, you will be ready to compile. This can be done many different ways but this is how I prefer to do it.
First, update you /etc/lilo.conf to give an option to boot to your old kernel in case something goes wrong. Add the following section:
Code:
prompt
timeout = 50
#Linux bootable partition begins
image = /boot/vmlinuz.old
root=/dev/hda1
label = Linux.old
read-only
#Linux bootable partition ends
Make sure the root=/dev/hda1 is the same partition as your primary boot partition.
Now create a script in your Linux kernel directory named ‘makekernel’ that contains this code:
Code:
#!/bin/bash
cp -f /boot/vmlinuz /boot/vmlinuz.old
cp -f /boot/System.map /boot/System.map.old
echo
make clean && make && make modules && make modules_install && make install
once you have saved it to the right place do this:
Code:
‘cd /usr/src/linux-2.6*’ && ‘chmod +x makekernel’ && ‘./makekernel’
If all goes well you should be in your newly compiled kernel at reboot.
All you need to do from here is run ‘alsaconf’ and then ‘alsamixer’.
Let me know if you need any further help with this.
Regards,
…drkstr
**edit**
this must all be done as root.
**edit**