Help - Search - Members - Calendar
Full Version: Help with 3com driver
linux-noob.com/forums > Linux Noob > Just Starting Linux
mollux67
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.
anyweb
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
mollux67
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!
anyweb
thanks smile.gif

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

CODE
tar xfvj sk98lin.tar.bz2
./install.sh
mollux67
Yes, but not in a proper way. Now I exactly did it like you, but I still have the same error!
anyweb
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
mollux67
I've never used IRC before, but I'm gonna paste it here, sorry...
mollux67
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#
mollux67
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!
anyweb
QUOTE (mollux67 @ Aug 22 2007, 07:55 PM) *
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!


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
mollux67
I did what you told me.

CODE
vincent@vincent-desktop:~$ sudo -i
root@vincent-desktop:~# ifconfig
lo        Lien encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          Packets reçus:62 erreurs:0 :0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          Octets reçus:4600 (4.4 KiB) Octets transmis:4600 (4.4 KiB)

root@vincent-desktop:~# dhclient
There is already a pid file /var/run/dhclient.pid with pid -1080677436
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

No broadcast interfaces found - exiting.
root@vincent-desktop:~# ifconfig
lo        Lien encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          Packets reçus:62 erreurs:0 :0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          Octets reçus:4600 (4.4 KiB) Octets transmis:4600 (4.4 KiB)

root@vincent-desktop:~# route add default gw 192.168.0.1
SIOCADDRT: Le réseau n'est pas accessible.
root@vincent-desktop:~#

(Translation : SIOCADDRT : The network is not reachable.)
anyweb
try this

CODE
ifconfig eth0 up


then

CODE
ifconfig


any difference ?
mollux67
With ifconfig eth0 up I got nothing, and with ifconfig I got the same than ever.

Little question, why does eth0:avahi have 169.254.3.106 as IP ans lo 127.0.0.1. How can I modify that in order to get my router IP 192.168.0.1 instead??
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.