Link to home
Start Free TrialLog in
Avatar of wyldsj
wyldsj

asked on

linux can't detect my ethernet card

Hi,
  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!

wyldsj
Avatar of rbr
rbr

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?
Avatar of wyldsj

ASKER

may i know how to recompile the kernel?
Avatar of wyldsj

ASKER

my linux version is 2.0.35
Avatar of wyldsj

ASKER

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
- http://www.kernel.org OR
- ftp://metalab.unc.edu/pub/Linux/kernel/v2.0

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):
Add:
image = /vmlinuz-2.0.35
  root = /dev/hda2 <---- You'll have to modify this to your own root
  label = backup
  read-only

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.
ASKER CERTIFIED SOLUTION
Avatar of hallstein
hallstein

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wyldsj

ASKER

Hi!
 
  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?

wyldsj
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?
Avatar of wyldsj

ASKER

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!

wyldsj
im very pleased that you made it work.
im very pleased that you made it work.