Phil, Date: Wed, 22 Jun 2005 00:47:43 -0700 Subject: Re: [linux-usb-devel] Please send a copy ....
Patch your kernel source and then do: "make M=drivers/usb/storage" and it will just build the usb-storage module (assuming you've configured it as a module). You can then either insmod the file (drivers/usb/storage/usb-storage.ko), or copy it to your modules tree, and modprobe it (you'll need to rmmod it if it's already loaded). First a couple of comments about the patch: * the line numbers of your patch are off by about 40 lines, is this a problem? Are my sources close enough for this? The Id line in my source says: * $Id: unusual_devs.h,v 1.32 2002/02/25 02:41:24 mdharm Exp $ The base tar file in the package is linux-2.6.11.tar.bz2, and there seem to be no patches to the file in question, and here is the SRPM: kernel-2.6.11-1.27_FC3.src.rpm. * the patch as sent is applied only to the DB25 version of the device, I am actually working with the HD50 version. I believe that two changes are therefore needed. I have appended a diff -u for the actual change that I made. After uninstalling usb-storage.ko, replacing it with the newly rebuilt version, modprobe'ing it, and plugging the USB device in again, the warning messages are gone from the syslog files (see below). Looks like success! Now a totally different question is, how to get the Exabyte drive to wake up the new storage device on its own (I currently have another device in the chain that DOES wake up the new storage device when powered up!). Oh well, that is my problem, at least everything works once the new storage device is woken up. Hope all this helps, please let me know if something else is needed. Thanks, AG --------------------------------------------------------------------------- --- unusual_devs.h.orig 2005-03-02 02:38:17.000000000 -0500 +++ unusual_devs.h 2005-06-22 13:57:21.000000000 -0400 @@ -621,13 +621,22 @@ UNUSUAL_DEV( 0x07af, 0x0004, 0x0100, 0x0133, "Microtech", "USB-SCSI-DB25", +#define LOCAL_PATCH +#ifndef LOCAL_PATCH US_SC_SCSI, US_PR_BULK, usb_stor_euscsi_init, +#else /* LOCAL_PATCH */ + US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init, +#endif /* LOCAL_PATCH */ US_FL_SCM_MULT_TARG ), UNUSUAL_DEV( 0x07af, 0x0005, 0x0100, 0x0100, "Microtech", "USB-SCSI-HD50", +#ifndef LOCAL_PATCH US_SC_SCSI, US_PR_BULK, usb_stor_euscsi_init, +#else /* LOCAL_PATCH */ + US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init, +#endif /* LOCAL_PATCH */ US_FL_SCM_MULT_TARG ), #ifdef CONFIG_USB_STORAGE_DPCM --------------------------------------------------------------------------- --------------------------------------------------------------------------- Jun 22 14:20:02 network kernel: usb 2-1: new full speed USB device using uhci_hcd and address 9 Jun 22 14:20:02 network kernel: scsi10 : SCSI emulation for USB Mass Storage devices Jun 22 14:20:12 network kernel: Vendor: WANGTEK Model: 5150ES SCSI FA18 Rev: 08 Jun 22 14:20:12 network kernel: Type: Sequential-Access ANSI SCSI revision: 01 Jun 22 14:20:12 network kernel: Attached scsi tape st0 at scsi10, channel 0, id 3, lun 0 Jun 22 14:20:12 network kernel: st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575 Jun 22 14:20:13 network scsi.agent[24490]: tape at /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/host10/target10:0:3/10:0:3:0 Jun 22 14:20:14 network kernel: Vendor: EXABYTE Model: EXB-850085QANXRR Rev: 06X0 Jun 22 14:20:14 network kernel: Type: Sequential-Access ANSI SCSI revision: 02 Jun 22 14:20:14 network kernel: Attached scsi tape st1 at scsi10, channel 0, id 5, lun 0 Jun 22 14:20:14 network kernel: st1: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575 Jun 22 14:20:14 network scsi.agent[24632]: tape at /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/host10/target10:0:5/10:0:5:0 --------------------------------------------------------------------------- -- ---------------------------------------------------------------------- Alfred Ganz [EMAIL PROTECTED] AG Consulting, Inc. (203) 624-9667 440 Prospect Street # 11 New Haven, CT 06511 ---------------------------------------------------------------------- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel