LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-30-2003, 12:50 PM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 144

Rep: Reputation: 15
Angry Kernel recompile trashed Nic access


Hey all, I was hoping to tap some of the local wisdom as to why this may have happened. I'm running RedHat 9.0. I decidede to recompile my kernel so that I would be able to include NFS support and include PPPoE so that I could route from my DSL line.

So, I compile in all of the things I want, update Grub to see the new kernel and EVERYTHING works...EXCEPT THE TWO NICS!! Very puzzling!

With the old kernel (the one that resulted from my initial redhat install) and both nics work just fine. I tried using the redhat "hardware browser" to activate the nics with the new kernel, but that didn't work.

If anyone could point me to some online reseach I could do, or has an idea as to what might have happened that would be terrific.

I'll be happy to provide any additional details if what I just tried to describe wasn't clear enough.

Thanks!

Last edited by bluethundr; 10-30-2003 at 12:52 PM.
 
Old 10-30-2003, 01:16 PM   #2
musrum
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
Is your new kernel the same version as the old one? If so....

There's a chance that what used to be eth0 is now eth1 and vice versa. This is a common problem when compiling new kernels of new versions.

What does ifconfig -a show?
 
Old 10-30-2003, 01:43 PM   #3
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 144

Original Poster
Rep: Reputation: 15
Thanks for the reply! And yes, it is a recompile of the same kernel: 2.4.20-8

I tried running /sbin/ifconfig but the only thing it shows is the local loopback device. I haven't tried the -a switch tho. I will have to try that when I get back home in a day or so.

Any idea what to do about eth0 and eth1 switching if that is the problem? Also, it's interesting to note that the "hardware-browser" in the gnome interface acknowledges both those cards but refuses to "activate" them.

Thanks!
 
Old 10-30-2003, 02:05 PM   #4
musrum
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
if ifconfig doesn't show anything, then eth0 vs eth1 isn't the problem.

1. What does lspci show?
2. Did you compile the drivers for your nics?
3. Did you compile them into the kernel or as modules?
4. If the latter, did you try loading the modules manualy?
 
Old 10-30-2003, 02:15 PM   #5
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 144

Original Poster
Rep: Reputation: 15
I just learned about the lspci command and it does seem to indicate that the cards are there. I'm not that good at interpreting its output yet, but I was able to glean enough to understand that the cards are showing up with this command.

I am pretty sure that the drivers were compiled as modules, but I haven't yet had the opportunity to modprobe for them. Unfortunately, I might not be able to tell you much more than that until I get home for some further experimentation which will be tomorrow.

But thanks again for your help and I will let you know what I find!
 
Old 10-30-2003, 08:35 PM   #6
cmisip
Member
 
Registered: Aug 2002
Posts: 189

Rep: Reputation: 30
I dont know if this is related, but when I recompiled my redhat 9 kernel to include acpi, my wireless ethernet stopped working. I traced it to /etc/rc.d/init.d/pcmcia. Something about not being able to load modules with the .o extension in the name.

Here's an excerpt from my home page.

"In my case the kernel upgrade broke pcmcia. My 802.11b card no longer got detected. After looking at /etc/rc.d/init.d/pcmcia, I put in a quick hack. In the following section of pcmcia, delete the .o extensions:

grep -q pcmcia /proc/devices
if [ $? -ne 0 ] ; then
if [ -d /lib/modules/preferred ] ; then
PC=/lib/modules/preferred/pcmcia
else
PC=/lib/modules/`uname -r`/pcmcia
fi
KD=/lib/modules/`uname -r`/kernel/drivers/pcmcia
if [ -d $PC ] ; then
echo -n " modules"
/sbin/modprobe pcmcia_core.o $CORE_OPTS
/sbin/modprobe $PCIC.o $PCIC_OPTS
/sbin/modprobe ds.o
elif [ -d $KD ] ; then
/sbin/modprobe pcmcia_core
/sbin/modprobe $PCIC
/sbin/modprobe ds
else
echo $" module directory $PC not found."
break
fi
fi

After the modifications, it should show:

/sbin/modprobe pcmcia_core $CORE_OPTS
/sbin/modprobe $PCIC $PCIC_OPTS
/sbin/modprobe ds

It works for me. I dont know what it breaks though."
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What programs will I lose access to on kernel recompile? harisund MEPIS 2 10-06-2005 04:43 PM
recompile kernel niteshg Linux - General 9 01-02-2005 12:25 AM
Why recompile kernel? dustin_wielenga Slackware 16 12-26-2004 07:37 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Recompile the kernel kjsubbu Linux - Software 4 06-16-2004 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration