Re: [PLUG] USB ethernet -- help

Bill Jonas on 2000年8月19日 19:20:17 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] USB ethernet -- help


On 2000年8月19日, Chris Nagele wrote:
>for networking. The pegasus drive is located in the
>/usr/src/linux/modules/usb directory and not the /usr/src/linux/modules/net
>directory. When I run 'ifconfig' it cannot find the device. There is a
You said that the driver loads at boot time; can you post the relevant
lines from the output of 'dmesg'? Also, when you compiled the kernel,
did you make sure to do a 'make modules' followed by 'make
modules_install' after building the kernel image? You said that 'lsmod'
doesn't show anything relevant; assuming that the module is called
'pegasus', try running 'insmod pegasus'. The files containing your
modules are in the /lib/modules/<version number>/ directory tree, and
the filenames end in .o, so the file you would be looking for would be
something like '/lib/modules/2.4.0-test6/net/pegasus.o' (or maybe
.../usb/pegasus.o, I haven't messed much with USB stuff). Try running
the command "find /lib/modules/2.4.0-test6 -name 'pegas*'" (again, this
is assuming that the driver is called 'pegasus').
>patch for the updated pegasus module at the developers site. If i do have
>to download the latest patch how do I install it into the kernel? I just
If it's a patch file, there will generally be a '.diff' somewhere in the
filename, such as 'some_patch.diff' or 'some_patch.diff.gz'. For the
first format, you want to change to the directory where your kernel
source is and give a command like
"patch -p1 -s </path/to/some_patch.diff"; if it's the second form, then
do "zcat /path/to/some_patch.diff.gz |patch -p1 -s". After doing
either, you want to make sure that all the patch applied correctly, so
"find ./ -name '*.rej'" from your kernel source directory.
>downloaded the most recent 'pegasus-4.1.c' from your site but i am not sure
If it's a .c file, then it probably contains the whole source code for
the driver. In this case, you might want to find 'pegasus.c' in your
kernel source tree, and replace it with this; then you re-run 'make
modules' and 'make modules_install'. You could probably directly
compile it (with a command like "gcc -Wall -o pegasus-4.1.o
pegasus-4.1.c", which will leave you with a file called pegasus-4.1.o),
but I'm not sure if you would need to include any other options to link
it against any libraries. Maybe someone else on the list would know?
>what to do with it. I tried running 'lsmod' and nothing shows up. Is this
>a problem? I am new to linux but i need this to work. I appreciate any help
>that is provided.
It's not necessarily a problem if it doesn't show up, as it could be
compiled into the kernel rather than being a module. Again, 'dmesg'
should help you with that. The problem *might* be (since I don't know
enough about USB issues) that it has a different device name. 
'ifconfig -a' will (should) show you all networking devices, configured
or not. Maybe it has a name like 'usb0'? Check the documentation. 
(There also tends to be decent documentation in the source code itself,
in the form of comments, in the kernel source; perhaps there's similar
stuff in that .c file you have.) I think that it would be normal for
USBVIEW to show you the device even if the driver's not loaded; if you
look at the contents of /proc/pci, it will show you your PCI ethernet
card, even if the module is not loaded.
Anyway, good luck. I hope this helps; if it doesn't, then post the
output of the dmesg command, as well as 'ifconfig -a' and anything else
you (or somebody else on the list) think(s) might help. I hope this
works for you.
Bill
-- 
>Ever heard of .cshrc? | "Linux means never having to delete
That's a city in Bosnia. Right? | your love mail." -- Don Marti
(Discussion in comp.os.linux.misc | http://www.billjonas.com/
on the intuitiveness of commands.) | http://www.harrybrowne.org/
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug



AltStyle によって変換されたページ (->オリジナル) /