linux can't detect my ethernet card

  I have Intel EtherExpress PRO PCI Adaptor on my system. However, linux does not seem to be able to detect it. When I tried 'ifconfig eth0 ...', the system says unknown device eth0. Can anyone tell me what could be the reason and how to fix it? Thanks!

Who is Participating?
hallsteinConnect With a Mentor Commented:
Enter your kernelsorce dir. - Its probably usr/src/linux.
type make menuconfig.
Go to Networking options and check for TCP/IP networking.
Then goto network device support and check for ethernet 10 or 100 mbit.
Then check PCI network adapters (something like that) and after that check for NE2000 adapters. (make * to them all).
Afterwards exit and save your new configuration.
From the linuxdir type:
make dep; make clean;make zImage <enter>
when it has done its compiling move the zImage to /boot with the mv command. (mv arch/i386/boot/zImage /boot
pico /etc/lilo.conf and its supposed to say:
image = /vmlinuz
  root = /dev/hdaX  (where X is your linux boot device)
  label = Linux

copy that part of your lilo conf and paste it right below and change it so it looks like this:

image = /boot/zImage
  root = /dev/hdaX  (where X is your linux boot device)
  label = test

ctrl X save and confirm
then type lilo <enter>
and reboot with your test option
Lilo: test   <--- at boot time

Now - hopefully you have your eth0 installed.
then use netconfig to install your network (or ifconfig >man ifconfig to get the right parameters)
If you dont have the linux dir under usr/src/ then go get linux-2.0.36.tar.gz from /pub/linux/kernel/v2.0

Havew you compiled your kernel for full ethernet support. Many cards are not used by default in your kernel. Which kernel version do you have?
wyldsjAuthor Commented:
may i know how to recompile the kernel?
Never miss a deadline with

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

wyldsjAuthor Commented:
my linux version is 2.0.35
wyldsjAuthor Commented:
sorry but i've waited too long..
To compile a new kernel:

1. Obtain the latest kernel source (at the moment 2.0.36) from
- OR

If you have the bzip2 decompressor, you can download linux-2.0.36.tar.bz2; if not, download the .tar.gz

2. Untar it, ie.:
cd /usr/src
tar xfvz <directory>/linux-2.0.36.tar.gz  OR if you've downloaded the bz2:
tar Ixvf <directory>/linux-2.0.36.tar.bz2 (The l is a capital i )

3. Modify the configuration file:
cd /usr/src/linux
make menuconfig OR if you run X, you could use "make Xconfig"

4. Follow the onscreen instructions.

5. Make sure you add network support:
<Network> Add TCP/IP support
<Network Devices> Add EtherExpress PRO support (I believe it's an EE pro 100(B))
You might want to add your network adapter as a module, it isn't necessary though.

6. If you're sure you've added all options, build your kernel:
make dep; make clean; make zImage; make modules; make modules_install

7. Then copy your kernel to the right location and backup the old one:
mv /vmlinuz /vmlinuz.2.0.35
cp /usr/src/linux/arch/i386/boot/zImage /vmlinuz

8. If you use LILO, add a new entry to your config file (/etc/lilo.conf):
image = /vmlinuz-2.0.35
  root = /dev/hda2 <---- You'll have to modify this to your own root
  label = backup

If you use LOADLIN, don't forget to copy your new kernel to the right partition and to backup the old one.

9. Run LILO, if you use that.

10. Reboot and see what happens.

11. If you compiled your adapter as a module, type insmod (or modprobe) eepro100, or whatever your adapter's module is called. If you don't know, look it up in /lib/modules/2.0.36/net

Good luck
You can try a module for your card. There is a file in the /boot with info in all modules supported by your kernel. Once you found the module for your card, do a depmod -a, to verify if there are any module dependencies.
Now, a insmod will load your module.
There is a /etc/conf.modules or modules.conf, where parameters like port, irq so on can be passed.
wyldsjAuthor Commented:
  I've done what you told me. Everything seemed to work fine but I could not boot linux after that. It gives me a message saying "unable to initialize a console". What does it mean?

did you write test at your lilo promt after rebooting (if following my descriptions i mean)?
- Did you uncheck something in your kernel while recompiling with network support?
wyldsjAuthor Commented:
Thanks hallstein! I was using UMSDOS last time. Today I re-partitioned my hd and installed slakware to its own partition. I followed your instruction and the problem is now solved!
Thanks again for your help!

im very pleased that you made it work.
im very pleased that you made it work.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.