Click to See Complete Forum and Search --> : problems encountered when setting up the USB driver


portishead
04-09-2001, 11:27 AM
I'm follwing the Getting USB/Your Printer Working NHF by Sterling to try to get a USB modem and scanner to work. I'm using RedHat 7.

I got up to point 5:
patch -p1 < path to your patch file

After entering this command I get something along the lines of:


can't find file to patch at inputline 4
perhaps you used the wrong -p or --strip option?
The text leading up to this was:
----------------
|diff -urN linux2.2.16/Documentation/Configure.help /linux/Documentation/Configure.help
|--- linux 2.2.16/Documentation/Configure.help some date
|+++ linux/Documentation/Configure.help some date
----------------
File to patch:


I read the patch man pages, but I still don't understand what any of this really means, or how I can continue.

Another thing that I do not understand is that /proc/bus/usb/devices contains the names of my modem and scanner, and also there are messages saying that the USB filesystem was succesfully mounted when my system boots.

I'd be very grateful for any help or advice. Thanks in advance!

PLBlaze
04-09-2001, 11:51 AM
You don't need to patch anymore :).Simply get the latest kernel (2.2.19 or 2.4.3) which contains the usb stuff in place.

But if you still insist to patch your kernel (2.2.16?) then make sure to be above the linux directory in /usr/src or you'll get these msgs.It's very important to patch from right place or it will fail.You coul even try to do it from linux directory directly but use -p0 option instead of -p1.

Proc is virtual fs that holds the info about your system,devs,state and data going thru in this case usb bus.It must be mounted for usb to work by appending the correct line in /etc/fstab just like for any file system.Hope this helps.

portishead
04-11-2001, 12:09 PM
Thanks for your help!

I played around with the directories and the -p1 and -p0 etc as you said, but I got the same error whatever I tried...

I downloaded and installed kernel 2.4.3, which was an interesting adventure, and everything seems to be fine.

Any ideas how I would install a USB modem and scanner? I'm not quite sure how...

Thank you!

Molecule Man
04-11-2001, 02:21 PM
www.linux-usb.org (http://www.linux-usb.org) is a good start. The devices list can prove very helpful.
http://www.linux-usb.org/USB-guide/book1.html should get you going.