Click to See Complete Forum and Search --> : Gentoo Kernel Compile NIC ?


johntramp
06-21-2004, 08:00 AM
Hi, I am yet again trying to install gentoo. I am currently in make menuconfig compiling a 2.6.6 kernel, and up to selecting the driver for my network card.

I am currently in Suse, and here is an output from lspci -v 0000:00:0d.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
Subsystem: Unknown device 17f2:4c00
Flags: bus master, medium devsel, latency 32, IRQ 10
I/O ports at 9000
Memory at df000000 (32-bit, non-prefetchable) [size=128]
Capabilities: [dc] Power Management version 2

Now, there is nothing resembling a 905c card in the menuconfig list, with no easy way to show this apart for copying the whole thing out, you'll just have to take my word for it ;). I am not sure what to do, because the card has been the only problem with the install every time I try.

Googling I found this patch here which I might possibly need.
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.6-rc2/2.6.6-rc2-mm2/broken-out/fix-3c59xc-to-allow-3c905c-100bt-fd.patch

If anyone has any ideas what I am doing wrong or what I should do next here please let me know.

Thanks :)

mdwatts
06-21-2004, 01:16 PM
Moved to the Kernels & Modules forum since Installation is meant for distro install issues.

squeegy
06-21-2004, 01:28 PM
Device Drivers > Networking Support > Ethernet (10 or 100Mbit) > 3c590/3c900 series (592/595/597) "Vortex/Boomerang" support

enable that and you should be on your way.

bwkaz
06-21-2004, 06:47 PM
Yep, I've got a 3C905C-TX here also, and it uses the Vortex/Boomerang drivers.

But in 2.6.6 at least, the setting is at Device Drivers -> Networking support -> Ethernet (10 or 100Mbit) -> 3COM cards -> 3c590/3c900 series (592/595/597) "Vortex/Boomerang" support

I think it's in a similar place in most 2.6 kernels, though I don't remember for sure (never used 2.6 on the machine that has it, so I only saw it once or twice).

johntramp
06-21-2004, 08:59 PM
ok, well I have finished the install, and now NIC won't work. :(

I can ping myself (localhost) fine, but anything else comes back with no network present or something similar.
I will boot to gentoo now and save some outputs, if they can be of any help.

johntramp
06-21-2004, 09:20 PM
ok, here are some outputs.

# ping -c 3 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.066 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.016 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.013 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.013/0.031/0.066/0.025 ms

# ping -c 3 192.168.1.1
connect: Network is unreachable

# lsmod
Module Size Used by

# lspci -v
-bash: lspci: command not found

Does gentoo not have the lspci command? This really confused me. Have I done something terribly wrong here? :(

This seems to be a very similar problem to what I have had every other time I have tried to install getnoo.

Is it something wrong with my kernel compilation? -I do have another network card somewhere that I could try as well I suppose, or is it something other than that.

I didn't compile the card as a module I don't think, should I have?

I am really wanting to have gentoo as my main OS and this seems to be the only thing holding me back.


Thanks. :)

je_fro
06-21-2004, 09:53 PM
You probably need to emerge pciutils.
Looks like the card is working though...

johntramp
06-21-2004, 11:14 PM
:) a quick # /etc/init.d/net.eth0 startdid the trick... emergeing xfree at the moment...

Theres some auto??something file I need to add this to isnt there ?

Thanks

je_fro
06-22-2004, 12:26 AM
it's all in the manual
rc-update add net.eth0 default

I suggest you read the manual or you're going to b0rk your system real soon.

johntramp
06-22-2004, 04:16 AM
I did follow the manual, just I think that came up as if you compiled the ethernet card as a module to add that, I didn't think I compiled it as a module so I left that out... well that's what I think I left out :S

All seems well now. Except that emerge pciutils... should that be compiled itself along with the rest of the system. I have gone through this install over 20 times I am guessing and never come across this.

Hopefully I don't run into too many more problems from here on in :)

Cheers for your help.

squeegy
06-22-2004, 01:11 PM
pciutils is not required for a gentoo install. It just gives you some utilities, that's probably why you didn't see it.

bwkaz
06-22-2004, 06:11 PM
You can also try /usr/sbin/lspci instead of just plain lspci.

Or /sbin/lspci.

I believe that those two directories are not in users' $PATH by default on Gentoo also (and because you didn't use su - when becoming root, but rather just plain su, you didn't pull in root's $PATH either), and /usr/sbin/lspci is where my version of pciutils put lspci.