PDA

View Full Version : Problem installing NIC in Mandrake 9.1


CloSeR
07-07-2004, 03:46 PM
Hi All,

Im quite new to Linux and this has got me stumped.. I know there are a few of you in here with technical knowledge in this field..

Hope you can help.

OK.

Ive just installed Mandrake 9.1, and I cant get the NIC (Intel PRO100/S) to work.

Mandrake seemed to detect and install this device but after pluggin in my static ip, subnet, gateway etc, i still cant get connectivity. Cant ping anything on the LAN.

It was at this stage i decided it might be driver related and i headed over to intels website to download the linux drivers.

I got the drivers, and followed the instructions in the readme which are pasted below..

Building and Installation
=========================

To build a binary RPM* package of this driver run 'rpmbuild -tb
<filename.tar.gz>'. Replace <filename.tar.gz> with the specific file name of
the driver.

NOTES: For the build to work properly it is important that the currently
running kernel MATCH the version and configuration of the installed
kernel source. If you have just recompiled your kernel, reboot the
system and choose the correct kernel to boot.

RPM functionality has only been tested in Red Hat distributions.

1. Move the base driver tar file to the directory of your choice. For
example, use: /home/username/e100 or /usr/local/src/e100.

2. Untar/unzip the archive by entering the following, where <x.x.x> is the
version number for the driver tar:

tar xfz e100-<x.x.x>.tar.gz

3. Change to the driver src directory by entering the following, where
<x.x.x> is the version number for the driver tar:

cd e100-<x.x.x>/src/

4. Compile the driver module:

make install

The binary will be installed as one of the following:

/lib/modules/<kernel_version>/kernel/drivers/net/e100.o

/lib/modules/<kernel_version>/net/e100.o

The install locations listed above are the default locations. They may
not be correct for certain Linux distributions. For more information, see
the ldistrib.txt file included in the driver tar.

5. Install the module:

insmod e100 <parameter>=<value>

6. Assign an IP address to the interface by entering the following, where
<x> is the interface number:

ifconfig eth<x> <IP_address>

7. Verify that the interface works. Enter the following, where <IP_address>
is the IP address for another machine on the same subnet as the interface
that is being tested:

ping <IP_address>

---------------------------------------------------------------
Im getting stuck at step 5.

When running the command insmod e100 to install the mod i get the below error..

-------------------------------------------


[root@manduck royston]# insmod e100
Using /lib/modules/2.4.21-0.13mdksmp/kernel/drivers/net/e100.o
/lib/modules/2.4.21-0.13mdksmp/kernel/drivers/net/e100.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg

-----------------------------------------------

Can anyone provide any clues as to where i can go from here?

Cheers

CLoSeR

22chris
07-07-2004, 09:24 PM
I suggest you download the latest kernel, and compile support For that card directly into the kernel itself, rather than loading it as a module.

Chris.

CloSeR
08-07-2004, 09:19 AM
I'd rather not take that path.. As im quite new to this and im not sure how to do what your asking.

Can anyone tell me why this error is occuring and how to fix it?

Cheers

CLoSeR

rbirdman
08-07-2004, 10:28 AM
I would normally run 'modprobe e100' at step five. then run 'lsmod' to check the module is listed.

You could also try chnging to the directory where you compiled the code. Do an 'ls' to double checked the file name and run 'insmod e100.o' or 'insmod e100.ko' depending on what the listing gives you.

sticky_chicken
08-07-2004, 12:57 PM
I'd rather not take that path.. As im quite new to this and im not sure how to do what your asking.

Can anyone tell me why this error is occuring and how to fix it?

Cheers

CLoSeR

Recompiling the kernel is the way I'd go too unfortunately.

Trying to add a module into a kernel without recompiling the kernel is unlikely to work.

CloSeR
08-07-2004, 01:30 PM
Originally posted by sticky_chicken
Recompiling the kernel is the way I'd go too unfortunately.

Trying to add a module into a kernel without recompiling the kernel is unlikely to work.

Ok.

How is this done?

Cheers

CLoSeR

sticky_chicken
08-07-2004, 01:57 PM
Originally posted by CloSeR
Ok.

How is this done?

Cheers

CLoSeR

You'll need the kernel source before you can do it. Not sure if Mandrake installs the kernel source by default or not.

If it doesn't, you'll need to grab the kernel souce. Check out http://au.kernel.org for an Australian mirror

Got to do an interview for a new employee (maybe) but will post more later.

CloSeR
08-07-2004, 02:24 PM
Ive got the source..

Wasnt installed by default.. but installed the package.. and now its all good.

Had to install it previously when i needed to use the make command.

CHeers

CLoSeR

Awaiting your post..

mbottrell
09-07-2004, 02:23 AM
Okay... to build read these:

Kernel Build HowTo (http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html) (Updated but not finished) :(
Compiling a Linux Kernel (http://www.linuxplanet.com/linuxplanet/tutorials/202/1/) (A little outdated)

Basically, the tasks involve the following:[list=1] Extract the source into /usr/src directory
Change to the /usr/src/linux directory (linux directory created).
Now do a make mrproper - this removes any stuff that shouldn't be there.
If in X -- issue a make xconfig If on console -- make menuconfig
Save your settings.. and exit config tool.
Issue the following...
make dep; make clean ; make bzlilo ; make modules ; make modules_install
Go make a coffee/milo/beer/coke, etc... it will take some time. :D
Check and edit your lilo.conf for your new kernel.
Reboot and select new kernel. Hopefully all works. :)[/list=1]Good luck!

Cheers,

Matt.