LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2003, 12:43 AM   #1
AlbertJ
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat9
Posts: 16

Rep: Reputation: 0
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.
 
Old 11-01-2003, 08:32 AM   #2
akje
LQ Newbie
 
Registered: Nov 2003
Distribution: Redhat/mandrake
Posts: 5

Rep: Reputation: 0
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.
 
Old 11-01-2003, 06:02 PM   #3
AlbertJ
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat9
Posts: 16

Original Poster
Rep: Reputation: 0
hey, thanks alot i'll give that a shot

and what happens if i dont have the make tools installed?
 
Old 11-01-2003, 06:58 PM   #4
AlbertJ
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat9
Posts: 16

Original Poster
Rep: Reputation: 0
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

Last edited by AlbertJ; 11-03-2003 at 11:20 AM.
 
Old 11-03-2003, 11:21 AM   #5
AlbertJ
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat9
Posts: 16

Original Poster
Rep: Reputation: 0
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

Last edited by AlbertJ; 11-03-2003 at 11:22 AM.
 
Old 11-03-2003, 01:28 PM   #6
solspin
Member
 
Registered: Apr 2003
Location: California, USA
Distribution: What works
Posts: 97

Rep: Reputation: 15
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

Last edited by solspin; 11-03-2003 at 01:30 PM.
 
Old 11-07-2003, 09:48 AM   #7
Gyuszko
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Rep: Reputation: 0
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



Please help!
Thanks
 
Old 11-07-2003, 10:51 AM   #8
sbcdivision63
Member
 
Registered: Oct 2003
Posts: 61

Rep: Reputation: 15
thanks alot akje i did what you said and now my internet works perfect....sweeeeeet
 
Old 11-07-2003, 02:32 PM   #9
akje
LQ Newbie
 
Registered: Nov 2003
Distribution: Redhat/mandrake
Posts: 5

Rep: Reputation: 0
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?
 
Old 11-07-2003, 04:56 PM   #10
sbcdivision63
Member
 
Registered: Oct 2003
Posts: 61

Rep: Reputation: 15
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
 
Old 11-07-2003, 09:09 PM   #11
AlbertJ
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat9
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 11-07-2003, 09:15 PM   #12
AlbertJ
LQ Newbie
 
Registered: Oct 2003
Distribution: Redhat9
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 11-09-2003, 07:48 AM   #13
Gyuszko
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Rep: Reputation: 0
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"


> 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
 
Old 11-10-2003, 04:20 AM   #14
andrewl41
LQ Newbie
 
Registered: Nov 2003
Location: London
Posts: 8

Rep: Reputation: 0
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
 
Old 11-11-2003, 05:56 PM   #15
Gyuszko
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Rep: Reputation: 0
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.



Gyuszko
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
3c2000 scapermoya Linux - Hardware 1 07-14-2004 04:32 AM
installing network card 3C2000 berti Linux - Hardware 6 12-17-2003 10:55 AM
got problem with installing 3Com 3c2000 arSUduLU Linux - Hardware 0 12-12-2003 06:35 AM
Problem installing 3com 3c2000-T gigabit card AlbertJ Linux - Newbie 14 11-07-2003 09:53 PM
Problems installing 3com gigabit driver(3c2000)-newbie davess4 Linux - Hardware 9 09-12-2003 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration