Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install was a blast! It all works except... my NIC! :(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Googolplex
n00b
n00b


Joined: 29 May 2003
Posts: 38

PostPosted: Thu May 29, 2003 8:10 am    Post subject: Install was a blast! It all works except... my NIC! :( Reply with quote

Well the install was lots of fun, though lengthy. The cd had no trouble identifying and using my NIC. Once I got it booting of the hard drive though, eth0 was just not there!

Now, when I got to the kernal configuration, I pretty much went with what was selected by default. I only changed what was suggested in the installation documentation for specific things, like my cdr drive. Im thinking I must have needed to add support for my NIC there somewhere. Is this correct? Is it still possible to add this support without recompiling? How SHOULD I go about recompiling the kernel?

I have never used a distro before that didn't automatically detect hardware successfully, so Im afraid I have a huge gapping hole in my Linux knowledge there. Id appreciate all the info that can be spared.

Thanks!


Some info that might be of use:
----------------
- Used the x86 installation guide on gentoo.org
- Have a home built Athalon 700mhz with 128MB ram, 40GB HD, mostly a personal use server.
- The NIC in question is a Netgear FA310TX REV-D2
Back to top
View user's profile Send private message
Esben
Apprentice
Apprentice


Joined: 29 Jun 2002
Posts: 244
Location: Copenhagen/Denmark

PostPosted: Thu May 29, 2003 8:25 am    Post subject: Reply with quote

Yes, you need to compile support for your NIC card; either as a moduel or as compiled-in.

There's at least three approaches to finding the right bit to compile:

1) search google for your card,
2) compile every card as a module and see what works
3) Do lsmod from the install cd. Note the modules and search for the options to compile these modules.
_________________
regards, Esben
True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war.
Back to top
View user's profile Send private message
StuBear
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 157
Location: Melbourne,AUSTRALIA

PostPosted: Thu May 29, 2003 8:26 am    Post subject: Re: Install was a blast! It all works except... my NIC! :( Reply with quote

Googolplex wrote:
Once I got it booting of the hard drive though, eth0 was just not there!


After you boot from the hd you need to tell your system what NIC driver to load. This can be built into the kernel or compiled as a module and added to /etc/modules.autoload

Googolplex wrote:
Im thinking I must have needed to add support for my NIC there somewhere. Is this correct? Is it still possible to add this support without recompiling? How SHOULD I go about recompiling the kernel?


Nope you will need to recompile (at least the modules). cd to /usr/src/linux and type "make menuconfig" or "make xconfig" if you are in X.

Go to the networking section and add support for your NIC. Just add it as a module unless you want to recompile the whole kernel again. Save and exit, then "make dep", "make modules" and "make modules_install". Add the name of your NIC module to /etc/modules.autoload.

If you don't want to reboot, just modprobe <nic name>. Then if you have not already done "rc-update add net.eth0 default" do so then do "/etc/init.d/net.eth0 start". To get your nic up and running (confirm with ifconfig - you should see eth0 in the list of interfaces). If you have already done "rc-update add net.eth0 default", then try "/etc/init.d/net.eth0 zap" then "/etc/init.d/net.eth0 start" to bring your nic up.

hope this points you in the right direction
Back to top
View user's profile Send private message
Supermule
Guru
Guru


Joined: 05 Mar 2003
Posts: 510
Location: /denmark/fyn

PostPosted: Thu May 29, 2003 8:29 am    Post subject: Re: Install was a blast! It all works except... my NIC! :( Reply with quote

Googolplex wrote:

Im thinking I must have needed to add support for my NIC there somewhere. Is this correct? Is it still possible to add this support without recompiling? How SHOULD I go about recompiling the kernel?


Correct. The default NIC is probably an onboard intel...so if u have another its most likely the reason.

U have to
1. Boot the install CD
2. mount "/" in /mnt/gentoo
3. Chroot to that device/mount
4. run make menuconfig in /usr/src/linux
5. enable your NIC and exit saving. (use "*")
6. Compile again using "make dep && make clean bzImage modules modules_install
7. mount your boot-partition
8. cp that bzImage to your bootpartition.
9. unmount both "/" and your boot-partition. Then reboot.

You can probably quickly do this with the install-doc in hand...if not let us know.
_________________
regards,
Supermule
Back to top
View user's profile Send private message
GurliGebis
Retired Dev
Retired Dev


Joined: 08 Aug 2002
Posts: 509

PostPosted: Thu May 29, 2003 10:19 am    Post subject: Reply with quote

You might have forgotten to do this while installing:

rc-update add net.eth0 default

That's what happend to me the first time I installed gentoo :oops:
_________________
Queen Rocks.
Back to top
View user's profile Send private message
StuBear
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 157
Location: Melbourne,AUSTRALIA

PostPosted: Thu May 29, 2003 10:29 am    Post subject: Re: Install was a blast! It all works except... my NIC! :( Reply with quote

edited: removed badly formatted quote

Last edited by StuBear on Thu May 29, 2003 10:36 am; edited 1 time in total
Back to top
View user's profile Send private message
StuBear
Apprentice
Apprentice


Joined: 26 Feb 2003
Posts: 157
Location: Melbourne,AUSTRALIA

PostPosted: Thu May 29, 2003 10:32 am    Post subject: Re: Install was a blast! It all works except... my NIC! :( Reply with quote

Supermule wrote:

U have to
1. Boot the install CD
2. mount "/" in /mnt/gentoo
3. Chroot to that device/mount
4. run make menuconfig in /usr/src/linux
5. enable your NIC and exit saving. (use "*")
6. Compile again using "make dep && make clean bzImage modules modules_install
7. mount your boot-partition
8. cp that bzImage to your bootpartition.
9. unmount both "/" and your boot-partition. Then reboot.

You can probably quickly do this with the install-doc in hand...if not let us know.


Why should he boot from the install cd and chroot when his system boots fine? It's only his nic that's not working/compiled. There is no need to boot from the install CD
Back to top
View user's profile Send private message
Supermule
Guru
Guru


Joined: 05 Mar 2003
Posts: 510
Location: /denmark/fyn

PostPosted: Thu May 29, 2003 11:07 am    Post subject: Re: Install was a blast! It all works except... my NIC! :( Reply with quote

StuBear wrote:

Why should he boot from the install cd and chroot when his system boots fine? It's only his nic that's not working/compiled. There is no need to boot from the install CD


Good point...didnt "notice" that...:)
_________________
regards,
Supermule
Back to top
View user's profile Send private message
schroder
n00b
n00b


Joined: 30 May 2003
Posts: 15

PostPosted: Fri May 30, 2003 12:42 pm    Post subject: I am having a problem with my 3com nic... help? Reply with quote

I am having the same issue. I have tried loading it as a module and also compiling it into the kernel and still no go. Here is what I did just last night.

cd /usr/src/linux
make menuconfig

In menuconfig I set 3c509 network device as a module "M"
exited and saved

I then to check did

ls /lib/modules/'uname -r'/kernel/drivers/net
it listed
3c509.o

I then did
make dep
make modules
make modules_install

then

nano /etc/modules.autoload
added 3c509 to the modules.autoload file
exited and saved

I then did
modprobe -l 3c*
it listed 3c509.o
I then did modprobe 3c509.o

I got an error that said invalid module or module not found!!!

So then I try this:

cd /usr/src/linux
make menuconfig
select 3c509 as "*"
exit and save

make dep && make clean bzImage modules modules_install

cp /usr/src/linux/arch/i386/boot/bzImage /boot

then rebooted

still comes up saying it couldn't start eth0
and netmount couldn't start..

HRMMM I Know I'm doing something wrong... could someone please help

system stats *** Athalon t-bird 1.4, 512 mb ddr 2100, 60 gb hd
boots to gentoo just fine just eth0 won't load
eth0 is a 3com 3c509 etherlink III PCI
there is no on-board nic
Back to top
View user's profile Send private message
cggiriraj
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2003
Posts: 83

PostPosted: Fri May 30, 2003 12:53 pm    Post subject: Reply with quote

Hi all,
I join this group! I also have same problems.... Network card fails beautifully....Eth0 not getting up! reinstalled with all cnofiguration ...Hmm lady luck seems very annoyed... perhaps a beer makes all in way...

Back tommmorow!
Giri
Back to top
View user's profile Send private message
Esben
Apprentice
Apprentice


Joined: 29 Jun 2002
Posts: 244
Location: Copenhagen/Denmark

PostPosted: Fri May 30, 2003 2:27 pm    Post subject: Reply with quote

If the install CD detects your ethernet card, try to do "lsmod" from the install CD. That should list the modules the install CD uses to make it work.
_________________
regards, Esben
True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war.
Back to top
View user's profile Send private message
schroder
n00b
n00b


Joined: 30 May 2003
Posts: 15

PostPosted: Fri May 30, 2003 2:38 pm    Post subject: Reply with quote

Esben,
Thanks! This should help. In the installation instructions they should include a step before the make menuconfig that has them lsmod so that we know what we need to chose.
That probably could have saved a lot of people grief with incorrect processor selections, NIC probs, etc...
Back to top
View user's profile Send private message
Googolplex
n00b
n00b


Joined: 29 May 2003
Posts: 38

PostPosted: Fri May 30, 2003 10:13 pm    Post subject: Almost there! Reply with quote

Wow! Thanks everyone. I managed to discover I use the tulip driver. compile it as a module and get it loading on boot. Now eth0 works! But not perfectly yet.

I seem to be stuck in my subnet! I can ping my router, but I cannot ping out to any IP or domain past my router. My other computers all can fine. I even setup the DMZ to point to my gentoo machine, but it still cannot get past the router. This is what I get:

PING 216.109.125.68 (216.109.125.68): 56 octets data
sendto: Network is unreachable
ping: sent 64 octets to 216.109.125.68, ret=-1
sendto: Network is unreachable
ping: sent 64 octets to 216.109.125.68, ret=-1

...etc.

Any ideas? Thanks again!
Back to top
View user's profile Send private message
dannym
n00b
n00b


Joined: 01 Nov 2002
Posts: 13
Location: Austria

PostPosted: Sat May 31, 2003 1:38 pm    Post subject: Reply with quote

schroder: modprobe 3c509 , remove the ".o" ;)

Googolplex: route add default gw your_router_ip
Back to top
View user's profile Send private message
Googolplex
n00b
n00b


Joined: 29 May 2003
Posts: 38

PostPosted: Sun Jun 01, 2003 12:00 am    Post subject: Wow! Reply with quote

OMG! Gateway! I feel dumb. Thanks so much! I finally have a sufficiently working system that I can get things working the way I want.
Back to top
View user's profile Send private message
At0mic
n00b
n00b


Joined: 11 May 2003
Posts: 43

PostPosted: Sun Jun 01, 2003 2:09 am    Post subject: Reply with quote

schroder, your problem is that modprobe doesn't take the whole driver file name (ex. driver.o), it takes it without the file extension (ex. driver)

That would fix your problems for compiling it as a module.
Back to top
View user's profile Send private message
schroder
n00b
n00b


Joined: 30 May 2003
Posts: 15

PostPosted: Mon Jun 02, 2003 3:38 pm    Post subject: it works Reply with quote

Thanks guys for all your help...
Actually i removed the .o and didn't work. Upon doing an lsmod when booted to the cd i found that i was wrong and I use the 3c59x module. So I commented out the 3c509, loaded teh 3c59x as a module and boom i'm up. Now if I could just get the nivida drivers to work. when I try to emerge it it says the MTRR support is not enabled. I know it is. and I know i recompiled, and I know I copied the new bzImage to the boot. I guess just another challenge ont the road to glory :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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