LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Some modules don't get automatically loaded after kernel upgrade (http://www.linuxquestions.org/questions/linux-software-2/some-modules-dont-get-automatically-loaded-after-kernel-upgrade-446983/)

redleafong 05-21-2006 09:48 AM

Some modules don't get automatically loaded after kernel upgrade
 
Hi all,

I upgraded redhat 9's kernel from 2.4 to 2.6.16. However my network adapter and sound card are not loaded automatically during system startup (they work properly if I modprobe them manually after the os get loaded). :scratch: I don't know which part is incharge of modules loading (rc.sysinit does some modprobe jobs, but I don't think I should load the network adapter and sound card here). Here is what has been written in my /etc/modules.conf:

alias eth0 via-rhine
alias usb-controller ehci-hcd
alias sound-slot-0 snd-cmipci
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller1 usb-uhci

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
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 snd-card-0 snd-cmipci

I just don't know what has gone wrong. :confused: Anybody has some ideas?

Brian1 05-21-2006 10:30 AM

What was your kernel build steps?

Brian1

redleafong 05-21-2006 11:48 AM

Quote:

Originally Posted by Brian1
What was your kernel build steps?

Brian1

make menuconfig ...balabala... (network adapter "via_rhine" is made as module, alsa is built from source later)

make

make install

make module_install

by the way, iptable can not get started as well, i still don't have time to look into this issue...:cry:

Linux~Powered 05-21-2006 02:42 PM

You shouldn't use the make install method.

make && make modules_install

Should be used instead. Do you have 2.6 modules in /lib/modules?

Brian1 05-21-2006 02:43 PM

For iptables to work in 2.16.16 you need to enable it in the config whether menu config, xconfig, gconfig or whatever. It has changed and even if you use a saved configed file it will not check what is needed. You need to manually do this. So open an old config file and compare the two and modify to match. It is mentioned in the changelog at www.kernel.org. I still think there is one item missing in the 2.16.16 kernel so get the 2.6.16.17 one. Works like a charm after checking the needed items in netfilter section.

I would run make install again. The dependiencies map is not created in the make install command if I remember correctly. You need to do make modules_install before make install

My way
make mrproper
make xconfig
make
make modules_install
make install

reboot

Also with two machines I have being the same I do a ' make rpm ' to make an rpm of the kernel and transfer to the other machine.

Brian1


All times are GMT -5. The time now is 01:52 PM.