Linux-Noob Forums

Full Version: Help with 3com driver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

I've just installed Ubuntu 7.04 on my desk computer (P4P800 Motherboard). No problem for that.

But in order to get internet, I have to install the 3C2000 driver (3com ethernet controller integrated in the motherboard).

So I tried with the "linux driver" avaible on the motherboard installation CD, and I followed the instruction.

By typing the command "make load" as indicated, I got pages of errors, only that, and I think t's because my installation folder is called "linux-headers-2.6.20-15" and not linux or linux 2.4 as indicated in the readme file.

I thought that the driver I'm tying to install is to old for my OS, so I checked on 3com website if there is a newer version of the 3c2000 driver for linux.

There was one, it's a tar file, that I unpacked. It contained 3 files: install.sh, readme, sk98lin.4 and another compressed folder sk98lin.tar.bz2.

The readme file tells that I have in a first time to type ./install.sh, in order to launch the installing bash.

But then :

vincent@vincent-desktop:~/DriverInstall$ .install.sh

./install.sh: 68: Syntax error: "(" unexpected.

 

Could someone please help me??? I don't know what else to do.

 

PS : I'm new in here, I present my self, I'm Vincent alias mollux67, I'm french student, so please excuse me, but correct me, if I make errors by writing english.


welcome to the forums !

 

 

you have to untar the bz2 file as it says in the README file

 

see below:-

 

Quote:Login as 'root'.2. Unpack the driver installation package using the command

 

# tar xfvj install-???.tar.bz2

or

# bunzip2 -c install-???.tar.bz2 | tar xfv -

***

 

5 Driver Installation

======================

 

1. After the driver installation package is unpacked, type the following

commands to start the sk98lin driver build process:

 

# cd DriverInstall

# ./install.sh

 

2. Select the driver installation mode (see following subchapters).

3. Wait for the driver build process to finish.

Depending on the installation mode you selected, the driver is either

compiled and installed or a kernel patch is generated.
 

so heres the code,

 



Code:
tar xfvj sk98lin.tar.bz2
./install.sh




 

once done, if the install.sh script is still erroring then make it executable and do this as root

 

 

 

 

usually with sh files you have to make them executable first

 

so to do that become root

 



Code:
sudo -i




 

now make the file executable

 



Code:
chmod +x install.sh




 

then run it

 



Code:
./install.sh





Thanks for that answer, but I still have the same error.

 

PS : Sweden's a great country, I've been travelling there several times over all Scandinavia. Takk!


thanks :)

 

did you untar the file before trying to run the install.sh ?

 



Code:
tar xfvj sk98lin.tar.bz2
./install.sh




Yes, but not in a proper way. Now I exactly did it like you, but I still have the same error!

can you please paste your commands (copy paste them here) and the resulting errors so I can see what you are doing exactly

 

also we are on IRC, see my signature.

 

cheers

anyweb

I've never used IRC before, but I'm gonna paste it here, sorry...

Code:
vincent@vincent-desktop:~$ tar xfvj install-8_23.tar.tar
DriverInstall/
DriverInstall/README
DriverInstall/install.sh
DriverInstall/sk98lin.4
DriverInstall/sk98lin.tar.bz2
vincent@vincent-desktop:~$ cd DriverInstall
vincent@vincent-desktop:~/DriverInstall$ tar xfvj sk98lin.tar.bz2
2.4/
2.4/h/
2.4/h/skdrv1st.h
2.4/h/skdrv2nd.h
2.4/Makefile
2.4/skdim.c
2.4/skproc.c
2.4/skge.c
2.4/sky2.c
2.4/skethtool.c
2.6/
2.6/h/
2.6/h/skdrv1st.h
2.6/h/skdrv2nd.h
2.6/Makefile
2.6/skdim.c
2.6/skproc.c
2.6/skge.c
2.6/sky2.c
2.6/skethtool.c
common/
common/h/
common/h/skgesirq.h
common/h/skgetwsi.h
common/h/xmac_ii.h
common/h/sktypes.h
common/h/skvpd.h
common/h/skaddr.h
common/h/skcsum.h
common/h/skgehw.h
common/h/skdebug.h
common/h/lm80.h
common/h/skrlmt.h
common/h/sky2le.h
common/h/sktwsi.h
common/h/skqueue.h
common/h/skversion.h
common/h/skerror.h
common/h/skgeinit.h
common/h/sktimer.h
common/h/skgedrv.h
common/h/skgepnm2.h
common/h/skgepnmi.h
common/h/skgehwt.h
common/skgesirq.c
common/skvpd.c
common/skaddr.c
common/skcsum.c
common/sklm80.c
common/skxmac2.c
common/sk98lin.htm
common/sk98lin.txt
common/skrlmt.c
common/sky2le.c
common/sktwsi.c
common/skqueue.c
common/sk98lin.4
common/skgeinit.c
common/sktimer.c
common/skgepnmi.c
common/skgehwt.c
common/skgemib.c
misc/
misc/Kconfig
misc/Configure.help
vincent@vincent-desktop:~/DriverInstall$ sudo -i
Password:
root@vincent-desktop:~# cd /home/vincent/DriverInstall
root@vincent-desktop:/home/vincent/DriverInstall# chmod +x install.sh
root@vincent-desktop:/home/vincent/DriverInstall# ./install.sh
./install.sh: 68: Syntax error: "(" unexpected
root@vincent-desktop:/home/vincent/DriverInstall#





A friend of mine told me to type :

 



Code:
lspci | grep Ethernet




 

and I got :

 



Code:
3Com Corporation 3c940 10/100/1000 Base-T [Marvell] (rev 12)




 

Maybe the controller is already installed, but internet doesn't work. Maybe is there something to set? ...but I don't knowhow!


Quote:A friend of mine told me to type : 



Code:
lspci | grep Ethernet

<div>


 

and I got :

 



Code:
3Com Corporation 3c940 10/100/1000 Base-T [Marvell] (rev 12)




 

Maybe the controller is already installed, but internet doesn't work. Maybe is there something to set? ...but I don't knowhow!

</div>
 

all that shows you is that the kernel can see it, it doesnt necessarily mean that it has support for it.

 

try this

 



Code:
ifconfig




 

do you see any ip for eth0 ?

 

if not, try



Code:
dhclient




 

now do ifconfig again

 

any change ?

 

 

could be that you already HAVE an ip but you dns is wrong (gateway)

 

if that's the case you could ping google's ip but not google.com

 

if thats the case try this

 



Code:
route add default gw 192.168.0.1




 

replace 192.168.0.1 with the ip of your cable modem/router/isp

 

cheers

anyweb

Pages: 1 2