Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Linksys USB 10/100Mbs NIC

0 views
Skip to first unread message

Scott D. Barrish

unread,
Apr 26, 2002, 3:29:35 PM4/26/02
to
My notebook computer uses the Linksys USB 10/100Mbs NIC adapter to connect
to my LAN. I have been unsuccessful in finding a driver to use in the RH
7.2. If anyone has already figured a way to use this NIC, it would be of
great help to tell me how to do so.

Sincerely,
Scott D. Barrish


David

unread,
Apr 26, 2002, 4:18:03 PM4/26/02
to
Scott D. Barrish wrote:
> My notebook computer uses the Linksys USB 10/100Mbs NIC adapter to connect
> to my LAN. I have been unsuccessful in finding a driver to use in the RH
> 7.2. If anyone has already figured a way to use this NIC, it would be of
> great help to tell me how to do so.


PCMICA or regular NIC ?
MODEL # ?

Usually it is just using the right module and placing the right line in
/etc/modules.conf or conf.modules depending which your system uses. With
a line like this.

alias eth0 modulename

--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org


Scott D. Barrish

unread,
Apr 26, 2002, 4:38:17 PM4/26/02
to
David,
 
I thank you for your speedy response.  I've been racking my brains over this.  I am very very new to Linux/Unix and I'm still trying to learn the GNOME interface let alone the command line....LOL!
 
It is the Linksys USB100M....It connects to the notebook via USB and has a RJ-45 jack built-in.  The CD-ROM that comes with it, only has drivers for Windows 9x/NT/2000/XP and Mac O/S.  Linksys also states that they do not have a Linux/Unix driver, but there may be something out there in Open Source.  I did a little digging around and found a file, Pegasus.c that supposedly will do the trick.  However, I'm unsure on how to compile the Pegasus.c file to create the Pegasus.o file.  Once I have the object file, it should be as easy as adding a new module, correct?
 
Sincerely,
Scott D. Barrish
 

David

unread,
Apr 26, 2002, 5:42:34 PM4/26/02
to
Scott D. Barrish wrote:
> David,
>
> I thank you for your speedy response. I've been racking my brains over
> this. I am very very new to Linux/Unix and I'm still trying to learn
> the GNOME interface let alone the command line....LOL!
>
> It is the Linksys USB100M....It connects to the notebook via USB and has
> a RJ-45 jack built-in. The CD-ROM that comes with it, only has drivers
> for Windows 9x/NT/2000/XP and Mac O/S. Linksys also states that they do
> not have a Linux/Unix driver, but there may be something out there in
> Open Source. I did a little digging around and found a file, Pegasus.c
> that supposedly will do the trick. However, I'm unsure on how to
> compile the Pegasus.c file to create the Pegasus.o file. Once I have
> the object file, it should be as easy as adding a new module, correct?
>


Ok I think you can do it like this and then move it to the
/lib/modules/kernel-version/net directory. Then run "depmod -a" to
update the modules and add a line to the /etc/modules.conf file to point
to that module. Be sure to use the proper case for it.

alias eth0 Pegasus

You should be able to compile it with this.

mkdir /usr/src/net
cp /path/to/module.c /usr/src/net

cd /usr/src/net

# Be sure to use the correct letter case in the lines below.
# For a single processor this all goes on one line:

gcc -DMODULE -D__KERNEL__ -I/usr/src/net -Wall -Wstrict-prototypes -O6
-c Pegasus.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`

For a Dual processor system this all goes on one line.

gcc -D__SMP__ -DMODULE -D__KERNEL__ -I/usr/src/net -Wall
-Wstrict-prototypes -O6 -c Pegasus.c `[ -f
/usr/include/linux/modversions.h ] && echo -DMODVERSIONS`


mv Pegasus.o /lib/modules/kernel-version/net/

# add line to modules.conf

alias eth0 Pegasus

# Run depmod

depmod -a

# If you want to check it prior to restarting the network, you can issue
the command below and then check /var/log/messages for any errors.

modprobe tulip.o

The module is installed correctly, if no errors appear in the logs.

If you tested the install you need to unload it from the kernel with the
command and then restart the network:

rmmod tulip.o

# Restart the network (this is for a redhat system) so commands may vary.

/etc/rc.d/init.d/network restart


When done you can remove the /usr/src/net directory with:

rm -rf /usr/src/net


Hope this helps.

root

unread,
Apr 26, 2002, 6:09:00 PM4/26/02
to
When I do the gcc command, it tells me I need to compile with the right options
"-0" and usb.h is no such file or directory.

David

unread,
Apr 26, 2002, 6:12:23 PM4/26/02
to
David wrote:

> # If you want to check it prior to restarting the network, you can issue
> the command below and then check /var/log/messages for any errors.
>
> modprobe tulip.o
>
> The module is installed correctly, if no errors appear in the logs.
>
> If you tested the install you need to unload it from the kernel with the
> command and then restart the network:
>
> rmmod tulip.o
>


Ooops!! That should have been:

modprobe Pegasus.o

and

rmmod Pegasus.o

David

unread,
Apr 26, 2002, 6:25:24 PM4/26/02
to
root wrote:
> When I do the gcc command, it tells me I need to compile with the right options
> "-0" and usb.h is no such file or directory.
>

The -O is the capital letter O not the number 0. You may possibly need
to change the 6 to a 3 also.
Not sure about the usb.h file. I don't have any usb devices.

0 new messages