LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-04-2009, 11:09 PM   #1
jowens
LQ Newbie
 
Registered: Dec 2008
Location: Papua New Guinea
Posts: 13

Rep: Reputation: 0
Setup USB Ethernet/LAN External Adaptor


Hi,

I have managed to install Slackware 12.2 on my sever after considerable trouble. Now I am stuck with trying to Setup my USB Ethernet/Lan Adaptor. I connected it to Windows Server 2003 and installed the drivers and it worked fine.

Now I have connected it to my Linux Slackware Server and am unable to pick it up. My guess is I have to install the Drivers.

Now my problem is how do I do that in Slackware 12.2, I have plugged in the USB LAN Adaptor connected my LAN/CAT5 cable and now am stuck in trying to install drivers and get the USB LAN Adaptor recognized by the server.

I need urgent help and I haven't been able to find anything in the forums.

Thanks
OJ
oh and I am very new to Linux and Slackware.
 
Old 01-05-2009, 05:39 AM   #2
jowens
LQ Newbie
 
Registered: Dec 2008
Location: Papua New Guinea
Posts: 13

Original Poster
Rep: Reputation: 0
Hi guys, no responses yet, oh well, after some reading I came across the command called lsusb, I believe it is suppose to list all USB Devices connected to the server.

I typed the command in and the list I got showed that is has detected my USB LAN Adaptor but why isnt it showing up in the network settings area, when I start the KDE GUI and try configure it from there?

Awaiting your responses.

Thanks
 
Old 01-05-2009, 06:05 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well lsusb will retrieve device strings from a usb device. a phrase in there like "Network Adapter" means nothing, it's just a text string stored on the device. You'll need to load a driver for it, and as you've not told us what the kit is, or the lsusb entry, we can't comment on what driver that should be.
 
Old 01-05-2009, 04:29 PM   #4
jowens
LQ Newbie
 
Registered: Dec 2008
Location: Papua New Guinea
Posts: 13

Original Poster
Rep: Reputation: 0
The Adaptor to which I have just says on its Box/Wrapper to which it came in USB LAN. It does not give any other information about Model or whether its a DLink or nvidia etc.

I have CD of drivers to which I tested the USB LAN Adaptor on a windows and when I plugged in the device the add hardware wizard appeared, I search the CD for drivers and it found one, and I installed it and it work. Now when I plugged the USB LAN device to my Linux PC no such hardware detected wizard appeared, but it has folders there for drivers for Linux Operating Systems.

Now in the CD there a couple of driver folders but only these two folders "RTL8150L" & "ST268" have a Linux folder in them plus other folders depicting a Windows OS.

RTL8150L folder -> Linux Folder -> inside that linux folder there are these files _desktop.ini , GUIDE.TXT , RTL8150.C

The file GUIDE.TXT has these contents

**********************************************************************************************
The procedure to activate rtl8150 on linux is as follows:

step 1: compile:
gcc -DMODULE -D__KERNEL__ -c rtl8150.c

step 2: insert the driver as module:
insmod rtl8150.o
(run 'lsmod' to see if the module is inserted)

step 3: bind your card to an IP address:

/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
(run 'netstat -i' to see if there is a interface 'eth0')

step 4: add your card to IP routing table and add gateway:
/sbin/route add default gw ${GATEWAY} dev eth0


*make sure that your kernel is version 2.4.0 above. Otherwise, you have to
upgrade your kernel.



**********************************************************************************************

Now the folder ST268 -> has Linux Folder -> and contains these files Makefile , readme.txt , ST268.c , ST268.h


the readme.txt file contains these

**********************************************************************************************

SHANTOU Semiconductor Inc. 05/16/2003

A SHANTOU ST268 USB Fast Ethernet driver for Linux.
Copyright (C) 1997 Sten Wang

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

A. Compiler command:

A-1: For normal single processor kernel
"gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -O6 -c ST268.c"

A-2: For single processor and set version info on all module symbol
"gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/include
-Wall -Wstrict-prototypes -O6 -c ST268.c"

A-3: For multiple processors(SMP) and set ver. info. on all module symbol
"gcc -D__SMP__ -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux
/include -Wall -Wstrict-prototypes -O6 -c ST268.c"

Note: O of -O6 is a capital "o", not a "0".


B. How to compile driver

B-1: Login by supervisor
B-2: Copy ST268.c and Makefile into your HD. You can make a new directoty
to put.
B-3: Keep driver source file name as "ST268.c" and makefile name as
"Makefile"
B-4: You can type the following command to compile driver. Please according
to your system to pick one.
make org ;;Without SMP support
make mod ;;Set version info on all module symbol
make smp ;;symmetric multi-processing(SMP) support
make smp_mod ;;SMP & Set version info on module

Or you can type above compiler command to compile driver.

Note: Please check you must have the right kernel source on
"/usr/src/linux".


C. The following steps teach you how to activate NIC:

C-1: A simple and temporary method

1. Used the upper compiler command to compile ST268.c

2. Insert ST268 module into kernel
"insmod ST268.o" ;;Auto Detection Mode (Suggest)
"insmod ST268.o mode=0" ;;Force 10M Half Duplex
"insmod ST268.o mode=1" ;;Force 100M Half Duplex
"insmod ST268.o mode=4" ;;Force 10M Full Duplex
"insmod ST268.o mode=5" ;;Force 100M Full Duplex

NOTE: You can type "man insmod" to see more description.

3. Config a ST268 network interface
"ifconfig eth0 172.22.3.18"
^^^^^^^^^^^ Your IP address

NOTE: 1. You can type "man ifconfig" to see more description.
2. If eth0 has been used, you should use eth1 instead.

4. Activate the IP routing table. For some distributions, it is not
necessary. You can type "route" to check.

"route add default netmask 255.255.255.0 eth0"

NOTE: 1. You can type "man route" to see more description.
2. If eth0 has been used, you should use eth1 instead.

5. Well done. Your ST268 adapter actived now.

Note. This is a temporary method. After you reboot the system, you
will lost the setting.


C-2: For Redhat, You can use the following to Activate NIC

1. login your system used the superuser.
2. copy ST268.o into /lib/modules/2.4.x/kernel/drivers/net/
3. add the new line with "alias eth0 ST268" in "/etc/module.conf".
4. execute "netconfig -d eth0".
5. Fill your IP address, netmask and gateway
6. press <ok> to confirm and exit this setting
7 reboot

Note. If eth0 has been used, you should use eth1 instead.

**********************************************************************************************

OK now based on these above information can anyone be able to help me, I think what I need to do is compile one of these *.c files. But since I now where close to Linux Guru and this is my first time in Linux, I get all kind of errors and just trying to install Linux was so much a problem for me. But am willing to learn, if your willing to teach.

Thanks very much
OJ
 
Old 01-05-2009, 07:37 PM   #5
jowens
LQ Newbie
 
Registered: Dec 2008
Location: Papua New Guinea
Posts: 13

Original Poster
Rep: Reputation: 0
Well guys,

guess what I changed the USB Ethernet Adaptor to a Belkin USB 10/100 Ethernet Adaptor and it picked up, was able to configure my IP address and tested it by pinging other PCs on the LAN.

A note maybe some can confirm I believe the more update Linux Kernel 2.6 has had improvements to it, like USB features, I have found a lot of treads on USB Wireless Devices but for the sake of those with a USB Etherent LAN Device, the kernel should be able to it up, as it comes with pre-installed drivers for the USB Ethernet Devices.

And I guess it would be wise to stick with Brands that are common and those that are Linux friendly.

Thanks, but I still dont know how to compile a program to install..

OJ
 
Old 01-06-2009, 01:26 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Super, well the rtl8150 is a standard driver, it'll already be on your system. can be hard to tell why your box didn't pick that one up as well.
 
Old 01-06-2009, 01:47 AM   #7
jowens
LQ Newbie
 
Registered: Dec 2008
Location: Papua New Guinea
Posts: 13

Original Poster
Rep: Reputation: 0
I dont know, actually have know idea at all, but charging from what I went through, it is better if your using such devices, to use the latest Linux kernel as this may really help with setup and installation.

Thanks, now I have to go complete my other posts on Slackware Setup to which I stumble across answers..

OJ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Driver for ST268 USB/LAN adaptor ojnab Linux - Wireless Networking 2 01-05-2009 05:51 PM
USB wireless lan adaptor no-show. jmorse Slackware 5 10-13-2004 03:59 PM
ethernet setup for mandrake LAN mikey43 Linux - Networking 2 09-11-2004 06:17 AM
I can't setup my Intracom external(usb) netmod modem deftones_ Linux - Hardware 1 03-11-2004 12:15 AM
Is a usb (1.1) port lan faster than 10/100 ethernet card? Bensoft Kill MS Linux - Hardware 2 09-20-2003 10:22 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration