Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Sun Jan 02, 2005 6:59 pm    Post subject: Network problems Reply with quote

I just got done an install of gentoo and for some reason my network card isn't being loaded. If I type "ifconfig eth0 up" I get " eth0: unknown interface: unknown device" I figure my module is being loaded, but when I go to load the module from /lib/modules/kerenl2.4.26/kernel/drivers/net the only driver there is the "dummy.o" file. So where are my drivers stored if not there? Have I configured my kernel wrong? should I pull my ethernet card out and reboot and then re-install it and reboot? any ideas would be helpful.

Thanks
Kan
Back to top
View user's profile Send private message
warer
n00b
n00b


Joined: 26 Oct 2002
Posts: 38

PostPosted: Sun Jan 02, 2005 7:11 pm    Post subject: Reply with quote

Your problem is that the kernel didn't find any network card in your computer. You are missing the correct driver in the kernel.
You need to reconfigrue your kernel.
"dmesg | grep eth" will print a line with your networking cards if any have been found.
I could tell you what option to put into the kernel if you tell me what card you have.
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Mon Jan 03, 2005 1:13 am    Post subject: Reply with quote

The network card is the Linksys LNE100TX or LNETX100 or something like that.

and using dmesg | grep eth didn't return anything, :-/ so I threw dmesg | grep eth* at it and it returned a lot of stuff but none of it even mentioned the ethernet adapter.
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Mon Jan 03, 2005 1:19 am    Post subject: Reply with quote

I selected the DEChip compatible TULIP driver and the Generic DEChip driver support and am compiling the kernel now, I will let you know if it works.

Thanks
Kan
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Mon Jan 03, 2005 2:09 am    Post subject: Reply with quote

Sorry to post so many replies so quickly, but This is what I've tried since my last posting, I've added "dhcpcd_eth0="-HD" to my /etc/conf.d/net file (this got rid of my netmount error that I was receiving that I don't think I've mentioned before but is mentioned in other posts), I've change my runlevel for net.eth0 from default to boot (This got rid of the netmount error but left the red exclamation points in the boot process), I've removed the "Generic DECchip" support from the kernel.

what has this produced? I can no longer see my eth0 card. Before I rebooted I could get the darn thing to come up using ifconfig eth0 up but I wasn't getting an IP address, so I rebooted.

So if anyone has any pointers, I'd really appreciate it.


Thanks
Kan
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon Jan 03, 2005 5:12 am    Post subject: Reply with quote

Your network card isn't working and we can't guess why without clues...

Provide output of
Code:

lspci | grep Ether

Code:

find /lib/modules/`uname -r` -name "*.ko" | grep net

Code:

lsmod
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Mon Jan 03, 2005 9:34 pm    Post subject: Reply with quote

when I type "lspci | grep Ether" I get the following
-bash:lspci: command not found

when I type /lib/modules/`uname -r` -name "*.ko" | grep net
I get nothing
when I change it to /lib/modules/`uname -r` -name "*.o" | grep
I get
/lib/modules/2.4.26-gentoo-r9/video/nvidia.o
/lib/modules/2.4.26-gentoo-r9/kernel/drivers/net/dummy.o

and when I type lsmod I have no modules listed
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon Jan 03, 2005 11:06 pm    Post subject: Reply with quote

emerge pciutils

So you will have lspci command and retry after.
you could also try
cat /proc/pci | grep Ether



your network card must be compile inside the kernel if you don't have the module, or you didn't do make modules_install
Try to build it as module, it's better for debug, cause you will see failure to load it when doing modprobe modulename and you could try some other modules to guess your card.
Back to top
View user's profile Send private message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Mon Jan 03, 2005 11:29 pm    Post subject: Reply with quote

I generally fire up any piece of hardware with a knoppix boot disk to find out the modules that should be used. boot up with "knoppix 2" and do a "dmesg | grep Eth". Take not of what driver is used to enable Eth0. Then boot your system back up, make menuconfig and build a kernel with the right modules.

alternatively, you can just rebuild the kernel with module support for all of the 10/100 cards possible. The correct one should identify your hardware and spring into action.

erich
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Mon Jan 03, 2005 11:53 pm    Post subject: Reply with quote

Two things, NEVER PULL OUT YOUR FLASH MEMORY WHILE YOUR COMPUTER IS ON... I thought I just fried my motherboard I pulled the flash card out and the system went down :x Which I don't understand. Something must be wrong in the kernel there

well here's the output of the lspci | grep Ether

02:06.0 Non-VGA unclassified device: Lite-On Communications Inc LNE100TX [Linksys EtherFast 10/100] (rev 25)
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Mon Jan 03, 2005 11:54 pm    Post subject: Reply with quote

ewtrowbr wrote:
I generally fire up any piece of hardware with a knoppix boot disk to find out the modules that should be used. boot up with "knoppix 2" and do a "dmesg | grep Eth". Take not of what driver is used to enable Eth0. Then boot your system back up, make menuconfig and build a kernel with the right modules.

alternatively, you can just rebuild the kernel with module support for all of the 10/100 cards possible. The correct one should identify your hardware and spring into action.

erich


And then once I've identified the correct module I can go back and rebuild the kernel again so that I only have that one module installed. I might have to try that.
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Tue Jan 04, 2005 12:43 am    Post subject: Reply with quote

before I go and install all of the drivers for all the network cards, I'd just like to see if anyone knows which module is used for the Linksys LNE100TX card...
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Tue Jan 04, 2005 2:05 am    Post subject: Reply with quote

Anyone think starting from scratch would be the smartest idea?

Thanks for all the help everyone, I'm starting to get really frustrated by this, because I'm pretty sure that the driver I need to use is /lib/modules/2.4.26-gentoo-r9/kernel/drivers/net/tulip/tulip.o I think that's the right path, that's from memory. and when I insmod it I can then ifconfig eth0 up it and then I try to use dhcpcd and the thing runs ifconfig eth0 down becuase all of a sudden eth0 isn't listed anymore under ifconfig. for some reason dhclient wasn't installed so I can't use that and without having the packages on the computer I can't really install anything. I think If anyone has any suggestions. please help.

Kan
Back to top
View user's profile Send private message
brentgr
n00b
n00b


Joined: 04 Jan 2005
Posts: 2

PostPosted: Tue Jan 04, 2005 2:45 am    Post subject: Reply with quote

Kan,
I am in a similar boat. Running lspci in Gentoo generates the following:
Lynksys NC100 Network Everywhere Fast Ethernet 10/100 (rev11)

Your troubles helped me solve my problem, so maybe this will help. For one, it was the tulip driver, and as soon as I used insmod tulip.ko, the card came up and when I run lsmod, it is in the list. Then by running dhcpcd -DH, the dhcp server came up and I am surfing the web.

The system is a multiboot system - I am running Fedora Core 2 on another partition and the card comes up fine. To ensure it wasn't the kernel, I pretty much copied all tne network card values from the FC2 config file into my Gentoo file.

Running lsmod in FC2 lists all the modules, however, like you when I run it in Gentoo, I get nothing (except now I see tulip). I am using the 2.6.9 kernel version. I think the problem may be a lack of module support in the kernel configuration under Gentoo and for some reason the modules aren't being loaded.

I am not an expert by any means, so anyone else's thoughts are more than welcome. I am going to recompile to recompile the kernel with Tulip built in and see what happens.

Brent
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Jan 04, 2005 3:24 am    Post subject: Reply with quote

ok clear now

Once compile as module do
Code:

modprobe tulip
ifconfig eth0 192.168.x.x
route add default gw gatewayip (if you use a router)

This way you will bypass your problem with dhcp, and once net is working you can emerge needed packages...
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Tue Jan 04, 2005 12:46 pm    Post subject: Reply with quote

Krinn and Brent,

Thank you, I'll take a look at these when I get home from work today.

Kan
Back to top
View user's profile Send private message
brentgr
n00b
n00b


Joined: 04 Jan 2005
Posts: 2

PostPosted: Tue Jan 04, 2005 10:18 pm    Post subject: Reply with quote

Kan,
As an update, when I rebuilt the kernel with Tulip support (rather than as a module) along with DECchip Tulip (dc2114x) PCI support and Generic DECchip & DIGITAL Etherworks PCI/EISA built in, the card came up at boot and the dhcpcd worked as advertised.

Good luck,
Brent
Back to top
View user's profile Send private message
kelargo
n00b
n00b


Joined: 03 Jul 2004
Posts: 51

PostPosted: Thu Jan 06, 2005 6:07 pm    Post subject: Tulip versus Lite-On controller Reply with quote

how is a person suppose to know that "tulip" is the
module for a Lite-On ethernet controller?

that's what I'm getting from this thread?

:o
Back to top
View user's profile Send private message
Black Imp
Apprentice
Apprentice


Joined: 09 Oct 2004
Posts: 168

PostPosted: Thu Jan 06, 2005 7:02 pm    Post subject: Re: Tulip versus Lite-On controller Reply with quote

kelargo wrote:
how is a person suppose to know that "tulip" is the
module for a Lite-On ethernet controller?

that's what I'm getting from this thread?

:o


i'm asking many questions like that about a lot of linux aspects. From this topic I've finally found for instance why on earth lspci command is available with livecd and is not after the installation. I hope one day to be able to contribute to linux world at least making some good and structural tutorial about every bulk packs needed to run the system, where they are located, how they work, how to set them in order to exploit them and the name map of the most known drivers.
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Thu Jan 06, 2005 9:47 pm    Post subject: Reply with quote

brentgr wrote:
Kan,
As an update, when I rebuilt the kernel with Tulip support (rather than as a module) along with DECchip Tulip (dc2114x) PCI support and Generic DECchip & DIGITAL Etherworks PCI/EISA built in, the card came up at boot and the dhcpcd worked as advertised.

Good luck,
Brent


Brent you seem to mention Tulip support, DECchip Tulip and Generic Tulip. Am I reading this right that you included 3 sections for Tulip? The reason I ask is that in the 2.4.26-gentoo-r9 there only seems to be 2 listed for Tulip, Both of which are the DECchip sections.

Kan
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Fri Jan 14, 2005 3:44 pm    Post subject: Reply with quote

Well, I finally said forget this, and decided to start over from scratch and re-install Gentoo. One thing I noticed that I had skipped was that small tiny line in the fdisk /dev/hda section where you mark the /dev/hda1 section as bootable. So that might have been causing problems somewhere further down the line. :oops: I also ripped out the linksys card and installed a dlink and then made sure to copy over the resolv.conf file from another computer I was using, and VOOOLAH it started installing YAYAYAYAYYAYAY... well if it doesn't continue to install. I'll be very mad. :-( but hey. we'll see right?

Thanks for all of your input everyone, it was a lot of help and I learned a couple of things.

Thanks
Kan
Back to top
View user's profile Send private message
kan4132
n00b
n00b


Joined: 22 Dec 2003
Posts: 26
Location: Philadelphia, PA

PostPosted: Wed Jan 26, 2005 2:02 pm    Post subject: Re: Tulip versus Lite-On controller Reply with quote

kelargo wrote:
how is a person suppose to know that "tulip" is the
module for a Lite-On ethernet controller?

that's what I'm getting from this thread?

:o


I finally slowed down my whole install process (I'm kind of impatient and hyper.... bad combo) and I read the help files for all of the NIC cards. Thats what it comes down too... I guess when the geeks say RTFM I should listen :D Thanks for all your help guys. I def learned quite a bit. and everytime I re-install gentoo I learn MORE YAYAYAYYAYA to learning :)

Thanks everyone
Kan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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