usb mass storage fails in 2.5.18

usb mass storage fails in 2.5.18

Post by jay » Tue, 28 May 2002 03:50:09



I'm trying to set up 2.5.18 to read a digital camera memory stick -
which I can in 2.4.18.

I think I've configured the kernel correctly:

#
# SCSI support
#
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_SR_EXTRA_DEVS=2
CONFIG_CHR_DEV_SG=y
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_REPORT_LUNS=y
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
.
.
.
.
#
# USB support
#
CONFIG_USB=y
CONFIG_USB_DEBUG=y
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_LONG_TIMEOUT is not set
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_EHCI_HCD is not set
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
# CONFIG_USB_STORAGE_DATAFAB is not set
..............

And the kernel sees it on bootup. See the dmesg snip below. But there is
nothing in /proc/bus/usb. OTOH /proc/scsi/usb-storage-0 does exist. When
I try to mount /dev/sda1 I get it's not a valid block device.

Can I get this to work? What am I missing?

thanks for any help
jay

cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling
Linux sg driver version: 3.5.25
Using libscg version 'schily-0.5'
scsibus0:
         0,0,0     0) 'ATAPI   ' 'CD-R/RW 20X10   ' 'H.PF' Removable CD-ROM
         0,1,0     1) *
         0,2,0     2) *
         0,3,0     3) *
         0,4,0     4) *
         0,5,0     5) *
         0,6,0     6) *
         0,7,0     7) *

Here the dmesg snippet:

May 26 14:26:10 daddy kernel: PCI: Sharing IRQ 14 with 00:09.0

82371AB PIIX4 USB
May 26 14:26:10 daddy kernel: hcd.c: irq 14, io base 0000d400
May 26 14:26:10 daddy kernel: hcd.c: new USB bus registered, assigned
bus number 1
May 26 14:26:10 daddy kernel: usb-uhci-hcd.c: Detected 2 ports
May 26 14:26:10 daddy kernel: Manufacturer: Linux 2.5.18 usb-uhci-hcd
May 26 14:26:10 daddy kernel: Product: Intel Corp. 82371AB PIIX4 USB
May 26 14:26:10 daddy kernel: SerialNumber: 00:04.2
May 26 14:26:10 daddy kernel: hub.c: USB hub found at /
........

May 26 14:26:10 daddy kernel: hub.c: new USB device 00:04.2-1, assigned
address 2
May 26 14:26:10 daddy kernel: Manufacturer: Sony
May 26 14:26:10 daddy kernel: Product: Sony DSC
May 26 14:26:10 daddy kernel: scsi1 : SCSI emulation for USB Mass
Storage devices
May 26 14:26:10 daddy kernel: usb-uhci-hcd.c: interrupt, status 2,
frame# 820
May 26 14:26:10 daddy kernel: hub.c: new USB device 00:04.2-2, assigned
address 3
May 26 14:26:10 daddy kernel: hub.c: USB hub found at 2
May 26 14:26:10 daddy kernel: hub.c: 4 ports detected
May 26 14:26:10 daddy kernel: hub.c: new USB device 00:04.2-2.4,
assigned address 4
May 26 14:26:10 daddy kernel: usb.c: USB device 4 (vend/prod 0x452/0x51)
is not claimed by any active driver.
May 26 14:26:10 daddy kernel:   Length              = 18
May 26 14:26:10 daddy kernel:   DescriptorType      = 01
May 26 14:26:10 daddy kernel:   USB version         = 1.00
May 26 14:26:10 daddy kernel:   Vendor:Product      = 0452:0051
May 26 14:26:10 daddy kernel:   MaxPacketSize0      = 8
May 26 14:26:10 daddy kernel:   NumConfigurations   = 1
May 26 14:26:10 daddy kernel:   Device version      = 2.06
May 26 14:26:10 daddy kernel:   Device Class:SubClass:Protocol = 00:00:00
May 26 14:26:10 daddy kernel:     Per-interface classes
May 26 14:26:10 daddy kernel: Configuration:
May 26 14:26:10 daddy kernel:   bLength             =    9
May 26 14:26:10 daddy kernel:   bDescriptorType     =   02
May 26 14:26:10 daddy kernel:   wTotalLength        = 0022
May 26 14:26:10 daddy kernel:   bNumInterfaces      =   01
May 26 14:26:10 daddy kernel:   bConfigurationValue =   01
May 26 14:26:10 daddy kernel:   iConfiguration      =   00
May 26 14:26:10 daddy kernel:   bmAttributes        =   40
May 26 14:26:10 daddy kernel:   MaxPower            =  100mA
May 26 14:26:10 daddy kernel:
May 26 14:26:10 daddy kernel:   Interface: 0
May 26 14:26:10 daddy kernel:   Alternate Setting:  0
May 26 14:26:10 daddy kernel:     bLength             =    9
May 26 14:26:10 daddy kernel:     bDescriptorType     =   04
May 26 14:26:10 daddy kernel:     bInterfaceNumber    =   00
May 26 14:26:10 daddy kernel:     bAlternateSetting   =   00
May 26 14:26:10 daddy kernel:     bNumEndpoints       =   01
May 26 14:26:10 daddy kernel:     bInterface Class:SubClass:Protocol =
  03:00:00
May 26 14:26:10 daddy kernel:     iInterface          =   00
May 26 14:26:10 daddy kernel:     Endpoint:
May 26 14:26:10 daddy kernel:       bLength             =    7
May 26 14:26:10 daddy kernel:       bDescriptorType     =   05
May 26 14:26:10 daddy kernel:       bEndpointAddress    =   81 (in)
May 26 14:26:10 daddy kernel:       bmAttributes        =   03 (Interrupt)
May 26 14:26:10 daddy kernel:       wMaxPacketSize      = 0008
May 26 14:26:10 daddy kernel:       bInterval           =   20

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

usb mass storage fails in 2.5.18

Post by Joseph Pingeno » Tue, 28 May 2002 04:10:07


I've also had problems with 2.5.17 (haven't tested 2.5.18) and a USB
  ZIP drive (Zip 250 USB-powered).  It looks like a write operation times
  out, and the drive keeps getting reassigned new USB device numbers.  I
  can provide more info if anyone's interested.  I *do* recall that it's
  something like bulk_write, and it fails with error -110.

-Joseph
--

[While discussing 8 new IIS (Microsoft's webserver) vulnerabilities]
"One workaround we rather like is called Apache, but we digress...."
  Greene, The Register, http://www.theregister.co.uk./content/4/24795.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

usb mass storage fails in 2.5.18

Post by Coli » Wed, 29 May 2002 09:55:49



> I'm trying to set up 2.5.18 to read a digital camera memory stick -

> which I can in 2.4.18.

> I think I've configured the kernel correctly:

> #
> # USB support
> #
> CONFIG_USB=y
> CONFIG_USB_DEBUG=y
> CONFIG_USB_DEVICEFS=y
> # CONFIG_USB_LONG_TIMEOUT is not set
> # CONFIG_USB_BANDWIDTH is not set
> # CONFIG_USB_DYNAMIC_MINORS is not set
> # CONFIG_USB_EHCI_HCD is not set
> # CONFIG_USB_OHCI_HCD is not set
> CONFIG_USB_UHCI_HCD=y
> # CONFIG_USB_AUDIO is not set
> # CONFIG_USB_BLUETOOTH_TTY is not set
> # CONFIG_USB_ACM is not set
> # CONFIG_USB_PRINTER is not set
> CONFIG_USB_STORAGE=y
> CONFIG_USB_STORAGE_DEBUG=y
> # CONFIG_USB_STORAGE_DATAFAB is not set
> ..............

I have a SanDisk SecureMate SD/MMC card reader and I had to enable a
driver specific to that device:

CONFIG_USB_STORAGE_SDDR09=y

Maybe you have to do the same too.

 
 
 

1. usb mass storage fails in 2.5.18

In 2.5.16 - 2.5.18 there is one bad bug in usb-storage
fixed by the 1-char patch below. Other things are wrong,
but try this first.

Andries

--- /linux/2.5/linux-2.5.18/linux/drivers/usb/storage/transport.c       Tue May
21 07:07:37 2002
+++ /linux/2.5/linux-2.5.18a/linux/drivers/usb/storage/transport.c      Sun May

        /* fill the URB */
        FILL_CONTROL_URB(us->current_urb, us->pusb_dev, pipe,
-                        (unsigned char*) &dr, data, size,
+                        (unsigned char*) dr, data, size,
                         usb_stor_blocking_completion, NULL);

        /* submit the URB */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. SB16

3. 2.5.18 Compile-time Error for Philips USB Video

4. Athlon motherboards

5. make modules_install fails on 2.5.18

6. pulling pipe delimited info from a recv() socket

7. initrd fails again in 2.5.18

8. how to set hostname

9. Linux 2.5.18-dj1

10. ioctl() still problem w/2.5.18

11. 2/3 Quota changes ported to 2.5.18

12. 2.5.18 ide-scsi compile fix

13. 2.5.18 and HPT366