LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Installing a 3c2000-T (https://www.linuxquestions.org/questions/linux-networking-3/installing-a-3c2000-t-109787/)

AlbertJ 10-29-2003 12:43 AM

Installing a 3c2000-T
 
I got the driver for my 3c2000-T from the cd and my kernel is an appropriate version but when I run the 'make load' command... I get this

insmod: 3c2000.o
make: insmod: Command not found
make: *** [load] error 127


Any help would be much appreciated.

akje 11-01-2003 08:32 AM

Not root
 
Hey,
are yoy logged in as root?
I have the same NIC, 3com 3c2000. Thsi is what you got to do.
1. Start a console.
2. su -
(enter your root password)
3. cd to_the_directory_where_3c2000_is.
4. type make clean (you have to have make tools installed)
5. type make install
6. type make load
7. ifconfig eth0 dhcp,

You should be up and running now.

AlbertJ 11-01-2003 06:02 PM

hey, thanks alot i'll give that a shot

and what happens if i dont have the make tools installed?

AlbertJ 11-01-2003 06:58 PM

hey guess what...
 
I had to be logged in as root. I got this far:

[root@Ravenix 3c2000]# make clean
rm -f 3c2000.o skge.o skaddr.o skgehwt.o skgeinit.o skgepnmi.o skgesirq.o ski2c.o sklm80.o skqueue.o skrlmt.o sktimer.o skvpd.o skxmac2.o skproc.o skcsum.o
[root@Ravenix 3c2000]# make install
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skge.o skge.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skaddr.o skaddr.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skgehwt.o skgehwt.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skgeinit.o skgeinit.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skgepnmi.o skgepnmi.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skgesirq.o skgesirq.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o ski2c.o ski2c.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o sklm80.o sklm80.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skqueue.o skqueue.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skrlmt.o skrlmt.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o sktimer.o sktimer.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skvpd.o skvpd.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skxmac2.o skxmac2.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skproc.o skproc.c
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h
-DMODVERSIONS -D__SMP__ -c -o skcsum.o skcsum.c
ld -r -o 3c2000.o skge.o skaddr.o skgehwt.o skgeinit.o skgepnmi.o skgesirq.o ski2c.o sklm80.o skqueue.o skrlmt.o sktimer.o skvpd.o skxmac2.o skproc.o skcsum.o
Found kernel version 2.4.20-20.9
Install directory is /lib/modules/2.4.20-20.9/kernel/drivers/net
mkdir -p /lib/modules/2.4.20-20.9/kernel/drivers/net
install -m 644 3c2000.o /lib/modules/2.4.20-20.9/kernel/drivers/net
depmod -a
[root@Ravenix 3c2000]# make load
insmod 3c2000.o

AlbertJ 11-03-2003 11:21 AM

but I can't get it to activate and come up on boot.

[root@Ravenix 3c2000]# ifconfig -a eth1 inet 192.168.0.200

eth1 Link encap:Ethernet HWaddr 00:0A:5E:19:69:5B
inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:12

solspin 11-03-2003 01:28 PM

Put this in your modules.conf file:

# 3com Onboard Ethernet
alias eth1 3c2000

Put the module in a location so the kernel can find it:

/lib/modules/<kernel version>/kernel/drivers/net/3c2000.o

Gyuszko 11-07-2003 09:48 AM

3c2000 + Redhat 9
 
I can't make 3c2000.o!

I got this:

# make load
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h -DMODVERSIONS -D__SMP__ -c -o skge.o skge.c
In file included from /usr/src/linux-2.4/include/linux/spinlock.h:56,
from /usr/src/linux-2.4/include/linux/module.h:11,
from skge.c:344:
/usr/src/linux-2.4/include/asm/spinlock.h:9: invalid suffix on integer constant
/usr/src/linux-2.4/include/asm/spinlock.h:9: parse error before numeric constant
/usr/src/linux-2.4/include/asm/spinlock.h:10: `printk_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/asm/spinlock.h:10: warning: function declaration isn't a prototype
In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13,
from /usr/src/linux-2.4/include/linux/list.h:6,
from /usr/src/linux-2.4/include/linux/module.h:12,
from skge.c:344:
/usr/src/linux-2.4/include/asm/processor.h:60: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4/include/asm/processor.h:60: field `loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4/include/asm/processor.h:82: invalid suffix on integer constant
/usr/src/linux-2.4/include/asm/processor.h:82: parse error before numeric constant
/usr/src/linux-2.4/include/asm/processor.h:82: warning: function declaration isn't a prototype
In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13,
from /usr/src/linux-2.4/include/linux/list.h:6,
from /usr/src/linux-2.4/include/linux/module.h:12,
from skge.c:344:
/usr/src/linux-2.4/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /usr/src/linux-2.4/include/linux/modversions.h:132,
from <command line>:1:
/usr/src/linux-2.4/include/linux/modules/i386_ksyms.ver:92:1: warning: this is the location of the previous definition
/usr/src/linux-2.4/include/asm/processor.h:269: warning: parameter names (without types) in function declaration
In file included from skge.c:344:
/usr/src/linux-2.4/include/linux/module.h:183: invalid suffix on integer constant
/usr/src/linux-2.4/include/linux/module.h:183: parse error before numeric constant
/usr/src/linux-2.4/include/linux/module.h:183: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:183: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:184: invalid suffix on integer constant
/usr/src/linux-2.4/include/linux/module.h:184: parse error before numeric constant
/usr/src/linux-2.4/include/linux/module.h:184: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:184: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:185: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:185: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:186: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:186: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:187: invalid suffix on integer constant
/usr/src/linux-2.4/include/linux/module.h:187: parse error before numeric constant
/usr/src/linux-2.4/include/linux/module.h:187: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:187: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:196: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:196: warning: parameter names (without types) in function declaration
make: *** [skge.o] Error 1

:confused:

Please help!
Thanks

sbcdivision63 11-07-2003 10:51 AM

thanks alot akje i did what you said and now my internet works perfect....sweeeeeet

akje 11-07-2003 02:32 PM

Gyuszko
 
Hi there Gyuszko!
Do you have the right kernel source?
Did you try to load the driver more than once?
Issue all the steps I mention earlier:
-make clean
-make install
-make load
edit /etc/modules.conf to contain
alias eth0 3c2000.o

If you don’t issue make clean it will clutter up your system!
One other thing that comes to mind is, do you have the right kernel source installed?

sbcdivision63 11-07-2003 04:56 PM

most likely you need to download the kernel source because that was my problem at first..after that i did was akje said to and now my internet works perfect

AlbertJ 11-07-2003 09:09 PM

Hey I got it to work!!!
 
YOU MUST LOG IN AS ROOT TO DO THIS.

All you have to do is get the driver off the cd, and follow the readme instructions for extracting it.

Then move into the folder containing the makefile (3c2000).

(for this to work you need to have the kernel source loaded in /usr/source/linuxXXX)

Then type:
make clean
then
make install
then
make load

This will do all the preperations and load the module to where it needs to go.

After this, you must go to /etc/sysconfig and edit the hwconf file. It will have a listing for your card and know that it is a 3com but not what type or what driver to use. It will look something like this:

class: NETWORK
bus: PCI
detached: 0
device: eth
driver: unknown
desc: "3Com Corporation|unknown device 10b7:1700"
vendorId: 10b7
deviceId: 1700
subVendorId: 10b7
subDeviceId: 0020
pciType:

go in and change 'driver: unknown' to 'driver: 3c2000' and then go to your network control panel and when u create a new ethernet card it will be listed so you can choose it now.



The only thing I don't quite get is I did this are root. I'm looking back at it for this post from a user and when I looked at my /etc/sysconfig/hwconf it shows that the driver is unknown but it still works. I dunno maybe I'll add it again or something but it did work for me.

AlbertJ 11-07-2003 09:15 PM

Oh yeah and make sure u do what solspin said in a post previous about the modules.conf and the module should have been placed where he said by using the make commands I have listed above.

Gyuszko 11-09-2003 07:48 AM

Still doesn't work!
 
Hi Andreas!

> Do you have the right kernel source?

I have 2.4.20-8 (I guess it's the right kernel).

> Did you try to load the driver more than once?

Yes...

> Issue all the steps I mention earlier:
> -make clean

It works. (I think)

> -make install
> -make load

make install and make load returns:
"make: *** [skge.o] Error 1"
so there isn't any "3c2000.o"
:cry:

> One other thing that comes to mind is, do you have the right kernel source installed?

I have 2.4.20-8 that comes with Redhat 9.0. I think it's good for the driver.

Thanks:
Gyuszko

andrewl41 11-10-2003 04:20 AM

Hi all,

I've been having similar problems. Though I have made some progress.

I've followed all the steps above, and my device has been recognised correctly. However, when I restart Linux I find an anoying failed message stating that eth0 '3c2000' does not seem to be present. This is obvisouly not the case and if I run "insmod 3c2000.o" the device comes up correctly. I have edited the 'hwconf' and 'modules.conf' files as suggested.

If anyone has any advice I would apreciate it.

Thanks,

Andrew

Gyuszko 11-11-2003 05:56 PM

Success!
 
I've made it!

I downloaded the sk98lin driver from syskonnect's site. It didn't work for the first try so I uninstalled/installed the kernel source and I tried to install the driver once more. It was succesful. I think, there was something trash in my kernel source.

:cool:

Gyuszko


All times are GMT -5. The time now is 02:14 AM.