Koozali.org: home of the SME Server

Installing NIC driver

Kim Knudsen

Installing NIC driver
« on: July 09, 2003, 07:47:26 PM »
Hi,

I have succesfully compiled the NIC driver for my ASUS P4C800-onboard 3Com 3C940 LAN adapter, but my problem is know how to install it?

No matter what I try I can't get SME 5.6 to recognize my 3C940. I have read in several groups that I had to add the line 'alias eth1 3c2000' (I have a realtek on eth0) to the 'etc/modules.conf' and the run a 'depmod -a'.

But after doing all this and then running the "configure this server" from admin-console it still don't list my driver. Where do I have to put the 3c2000.o for SME to see and recognize the driver? I have copied it to '/lib/modules/2.4.18-5smp-e-smith/kernel/driver/net/3c2000.o' but stiil no luck.

Please help.

nimmer

ChocoKiller

Re: Installing NIC driver
« Reply #1 on: November 21, 2003, 03:12:51 AM »
Hi,

I have the same problem as yours ... Except that I tried to use SME 6.0 b3.

Following my books,  there is a file "modules.dep" in wich the alias must be, and the file "/etc/modules.conf" with the line "alias eth0 3c2000" ... at least for me ... But it didn't work more than this. The oinly thing I could do is just launch insmod 3c2000 and the network card respond good ...

I don't know for the rest, configuration in SME, etc ... if someone could help ...

ChocoKiller

ChocoKiller

Re: Installing NIC driver
« Reply #2 on: November 21, 2003, 06:12:15 AM »
Well, after more searching, I found a How-To that discuss about part of the problem :

http://mirror.contribs.org/smeserver/contribs/dmay/mitel/howto/nic-drivers-howto.html

Then, for me, the basics operations to use the Lan driver are :

1) Download the RPMs needed to compile the sources (cpp-2.96-113.i386.rpm, gcc-2.96-113.i386.rpm, glibc-devel-2.2.5-44.i386.rpm, kernel-headers-2.4.9-34.i386.rpm and kernel-source-2.4.20-18.7.i386.rpm). Install all of this by rpm -Uvh *.rpm
2) Compile => obtaining the 3c2000.o driver
3) mkdir /lib/modules/2.4.20-18.7/kernels/drivers/net/3c2000
4) mkdir /lib/modules/2.4.20-18.7smp/kernels/drivers/net/3c2000
5) cp 3c2000.o /lib/modules/2.4.20-18.7/kernels/drivers/net/3c2000
6) cp 3c2000.o /lib/modules/2.4.20-18.7smp/kernels/drivers/net/3c2000
7) add the following line to /lib/modules/2.4.20-18.7/modules.dep :
/lib/modules/2.4.20-18.7/kernels/drivers/net/3c2000/3C2000.o:

and to /lib/modules/2.4.20-18.7smp/modules.dep :
/lib/modules/2.4.20-18.7smp/kernels/drivers/net/3c2000/3C2000.o:

(notice the : at the end of the line, it's necessary ...)

8) Go in the config manager to set the configuration of all cards, and leave it to whatever for the 3Com Gigabit 3C940 ... Define all of your server, the dedicated mode or not, such things ...
9) reboot
10) login as root and do the commands:
/sbin/e-smith/config set EthernetDriver1 3c2000
/sbin/e-smith/signal-event console-save

(note : You must type EthernetDriver1 if you want to use the interface eth0 for the 3C940, and type EthernetDriver2 to use the interface eth1)

11) Final Reboot

For me, all is now working properly, but I don't have much tested it. And of course, like I said, it's for SME 6.0 b3 ... I'm pretty sure that the kernel versions are not the same ... even now the versions that I used were outdated, but needed to compile the driver at the same kernel version ...

One another thing, it seems that when you re-use the config manager to change the machine name, server IP address, server and gateway mode, etc ... you must to redo the points 10 and 11 ... I don't know where to put the informations nor what information to put in, to make SME detect this 3C940 card in the manager ...

If someone wants to update this, make a complete How-To and add this last thing, feel free to make it ... 8))

Hope this helps anyway ...