Re: USB disk drive problems - was Re: [Cooker] kernel panic debugging
Can't locate the original URL but here is the patch file anyway: Owen John Danielson, II wrote: Chmouel Boudjnah wrote: Owen Savill <[EMAIL PROTECTED]> writes: 3) There is a kernel patch for the SanDisk USB disk caddies but this does not appear to have been incorporated into the Mandrake kernel. look weird, i don't have such beast to test, but if you point me to it i will maybe integrated. Might be very useful to look at the code for that-- SanDisk can use memory cards as virtual disks. Some IBM Microdisks work on a similar theme driver-wise, as there are both PCMCIA and memory card reader adapters for same. Essentially, SanDisk has what they call\classify as a virtual drive adapter, but it is mostly an IC memory module reader for one of their module lines. Large IC cards with 256 MB and up were made for high-density digital cameras, and it was convenient to have readers that handled them as HDs for older PCs that were USB capable but not USB 2.0 capable. In the US, about 5 variants of this theme exist (IC card as virtual HD, reversing the SWAP idea for portability of data convenience). Take a pocket sized reader, floppy or CD with drivers, and high capacity card to any USB capable box, install drivers, run and carry decent sized chunks of data in tiny package about size of a CD Business card to any box that will take the data and has USB capable O/S. Some of these run at USB 2.0 rates. John. diff -u --recursive linux-2.4.18-pre3/drivers/usb/storage/transport.c linux/drivers/usb/storage/transport.c --- linux-2.4.18-pre3/drivers/usb/storage/transport.c Thu Jan 10 13:08:18 2002 +++ linux/drivers/usb/storage/transport.c Thu Jan 10 13:13:36 2002 @@ -1157,7 +1157,7 @@ le32_to_cpu(bcs.Signature), bcs.Tag, bcs.Residue, bcs.Status); if (bcs.Signature != cpu_to_le32(US_BULK_CS_SIGN) || - bcs.Tag != bcb.Tag || + ((bcs.Tag != bcb.Tag ) && (!(us->flags & US_FL_SL_IDE_BUG))) || bcs.Status > US_BULK_STAT_PHASE || partial != 13) { US_DEBUGP("Bulk logical error\n"); return USB_STOR_TRANSPORT_ERROR; diff -u --recursive linux-2.4.18-pre3/drivers/usb/storage/unusual_devs.h linux/drivers/usb/storage/unusual_devs.h --- linux-2.4.18-pre3/drivers/usb/storage/unusual_devs.hThu Jan 10 13:08:18 2002 +++ linux/drivers/usb/storage/unusual_devs.hThu Jan 10 13:13:36 2002 @@ -110,6 +110,28 @@ "LS-120 Camera", US_SC_UFI, US_PR_CBI, NULL, 0), +/* Reported by Peter Wächtler <[EMAIL PROTECTED]> */ +UNUSUAL_DEV( 0x04ce, 0x0002, 0x0074, 0x0074, + "ScanLogic", + "SL11R-IDE 0049SQFP-1.2 A002", + US_SC_SCSI, US_PR_BULK, NULL, + US_FL_FIX_INQUIRY ), + +/* Reported by Leif Sawyer <[EMAIL PROTECTED]> */ +UNUSUAL_DEV( 0x04ce, 0x0002, 0x0240, 0x0240, + "H45 ScanLogic", + "SL11R-IDE 9951SQFP-1.2 K004", + US_SC_SCSI, US_PR_BULK, NULL, + US_FL_FIX_INQUIRY | US_FL_SL_IDE_BUG ), + +/* Reported by Rene Engelhard <[EMAIL PROTECTED]> and +Dylan Egan <[EMAIL PROTECTED]> */ +UNUSUAL_DEV( 0x04ce, 0x0002, 0x0260, 0x0260, + "ScanLogic", + "SL11R-IDE unknown HW rev", + US_SC_SCSI, US_PR_BULK, NULL, + US_FL_SL_IDE_BUG ), + /* Most of the following entries were developed with the help of * Shuttle/SCM directly. */ diff -u --recursive linux-2.4.18-pre3/drivers/usb/storage/usb.h linux/drivers/usb/storage/usb.h --- linux-2.4.18-pre3/drivers/usb/storage/usb.h Thu Nov 22 10:49:34 2001 +++ linux/drivers/usb/storage/usb.h Thu Jan 10 13:13:36 2002 @@ -101,6 +101,7 @@ #define US_FL_IGNORE_SER 0x0010 /* Ignore the serial number given */ #define US_FL_SCM_MULT_TARG 0x0020 /* supports multiple targets */ #define US_FL_FIX_INQUIRY 0x0040 /* INQUIRY response needs fixing */ +#define US_FL_SL_IDE_BUG 0x0100 /* ScanLogic usb-ide workaround */ #define USB_STOR_STRING_LEN 32
Re: USB disk drive problems - was Re: [Cooker] kernel panic debugging
Sounds exactly like what I have been seeing, but only on the second mount (if the unit can be persuaded to mount at all second time around at all !). The first time I mount the device everything works just fine. My old Dell only has 1.1 :-( Owen Todd Lyons wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Owen Savill wrote on Fri, Jan 24, 2003 at 04:17:22PM + : 1) Some USB disk drives will also cause a kernel panic if plugged in during a boot. These tend to be the `in caddy' type rather than the key If by any chance another disk drive does actually mount the system will always lock solid usually during a copy or move to the USB disc. I've got an Acom Data 80 GB external USB 2.0 drive. It works fine if I plug it into a USB 1.1 port at lower speeds. If I connect it to a USB 2.0 port, it will mount, but when I start transferring large amounts of data, it causes the computer to hang. This is with the 2.4.19-16mdk (ie a 9.0 install) kernel. The mobo is a Via P4MA. Are you connecting to a USB 2.0 port? Does any of what I have said above sound similar to what you're seeing? Blue skies... Todd - -- MandrakeSoft USA http://www.mandrakesoft.com cat /boot/vmlinuz > /dev/dsp #for great justice Mandrake Cooker Devel Version, Kernel 2.4.20-2mdk -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+MZt4lp7v05cW2woRAlMpAJ9fn24sVy+guw39pW8SHA4KhOcmCwCeN+wL nuO1se2oGSeZpgBNK5nwBhY= =stI0 -END PGP SIGNATURE-
Re: USB disk drive problems - was Re: [Cooker] kernel panic debugging
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Owen Savill wrote on Fri, Jan 24, 2003 at 04:17:22PM + : > > 1) Some USB disk drives will also cause a kernel panic if plugged in > during a boot. These tend to be the `in caddy' type rather than the key >If by any chance another disk drive does actually mount the system >will always lock solid usually during a copy or move to the USB disc. I've got an Acom Data 80 GB external USB 2.0 drive. It works fine if I plug it into a USB 1.1 port at lower speeds. If I connect it to a USB 2.0 port, it will mount, but when I start transferring large amounts of data, it causes the computer to hang. This is with the 2.4.19-16mdk (ie a 9.0 install) kernel. The mobo is a Via P4MA. Are you connecting to a USB 2.0 port? Does any of what I have said above sound similar to what you're seeing? Blue skies... Todd - -- MandrakeSoft USA http://www.mandrakesoft.com cat /boot/vmlinuz > /dev/dsp #for great justice Mandrake Cooker Devel Version, Kernel 2.4.20-2mdk -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+MZt4lp7v05cW2woRAlMpAJ9fn24sVy+guw39pW8SHA4KhOcmCwCeN+wL nuO1se2oGSeZpgBNK5nwBhY= =stI0 -END PGP SIGNATURE-
Re: USB disk drive problems - was Re: [Cooker] kernel panic debugging
Chmouel Boudjnah wrote: Owen Savill <[EMAIL PROTECTED]> writes: 3) There is a kernel patch for the SanDisk USB disk caddies but this does not appear to have been incorporated into the Mandrake kernel. look weird, i don't have such beast to test, but if you point me to it i will maybe integrated. Might be very useful to look at the code for that-- SanDisk can use memory cards as virtual disks. Some IBM Microdisks work on a similar theme driver-wise, as there are both PCMCIA and memory card reader adapters for same. Essentially, SanDisk has what they call\classify as a virtual drive adapter, but it is mostly an IC memory module reader for one of their module lines. Large IC cards with 256 MB and up were made for high-density digital cameras, and it was convenient to have readers that handled them as HDs for older PCs that were USB capable but not USB 2.0 capable. In the US, about 5 variants of this theme exist (IC card as virtual HD, reversing the SWAP idea for portability of data convenience). Take a pocket sized reader, floppy or CD with drivers, and high capacity card to any USB capable box, install drivers, run and carry decent sized chunks of data in tiny package about size of a CD Business card to any box that will take the data and has USB capable O/S. Some of these run at USB 2.0 rates. John. -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/