Opened 15 years ago

Closed 15 years ago

#4010 closed bug (fixed)

USB-Stick not working with Haiku

Reported by: jahaiku Owned by: mmlr
Priority: normal Milestone: R1
Component: Drivers/USB Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is on real hardware, gcc4 and new ATA from friday evening. I have a 256MB-USB-Stick which is not working, if I connect it to Haiku. Tested with many different USB-Chips (1.1/2.0) and the behaviour is always the same.

Message in syslog:

KERN: usb hub 2: port 0: new device connected
KERN: usb hub 31: port 0: new device connected

Message from listusb:

[Device /dev/bus/usb/0/0/0]
    Class .................. 0x00
    Subclass ............... 0x00
    Protocol ............... 0x00
    Max Endpoint 0 Packet .. 64
    USB Version ............ 0x0200
    Vendor ID .............. 0x067b
    Product ID ............. 0x2517
    Product Version ........ 0x0001
    Manufacturer String .... "USB 2.0 Flash Disk"
    Product String ......... "USB Mass Storage Device"
    Serial Number .......... ""
    [Configuration 0]
        Configuration String . ""
        [Interface 0]
            [Alternate 0 active]
                Class .............. 0x08
                Subclass ........... 0x05
                Protocol ........... 0x50
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 64
                    Interval ......... 0
                    Type ............. Bulk
                    Direction ........ Output
                [Endpoint 1]
                    MaxPacketSize .... 64
                    Interval ......... 0
                    Type ............. Bulk
                    Direction ........ Input
[Device /dev/bus/usb/0/0/hub]
    Class .................. 0x09
    Subclass ............... 0x00
    Protocol ............... 0x00
    Max Endpoint 0 Packet .. 64
    USB Version ............ 0x0200
    Vendor ID .............. 0x067b
    Product ID ............. 0x2515
    Product Version ........ 0x0001
    Manufacturer String .... ""
    Product String ......... ""
    Serial Number .......... ""
    [Configuration 0]
        Configuration String . ""
        [Interface 0]
            [Alternate 0 active]
                Class .............. 0x09
                Subclass ........... 0x00
                Protocol ........... 0x00
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 1
                    Interval ......... 12
                    Type ............. Interrupt
                    Direction ........ Input
                [Descriptor 0]
                    Type ............. 0x29
                    Data ............. 01 0d 00 32 64 02 ff 
[Device /dev/bus/usb/0/hub]
    Class .................. 0x09
    Subclass ............... 0x00
    Protocol ............... 0x00
    Max Endpoint 0 Packet .. 64
    USB Version ............ 0x0110
    Vendor ID .............. 0x0000
    Product ID ............. 0x0000
    Product Version ........ 0x0110
    Manufacturer String .... "HAIKU Inc."
    Product String ......... "UHCI RootHub"
    Serial Number .......... ""
    [Configuration 0]
        Configuration String . ""
        [Interface 0]
            [Alternate 0 active]
                Class .............. 0x09
                Subclass ........... 0x00
                Protocol ........... 0x00
                Interface String ... ""
                [Endpoint 0]
                    MaxPacketSize .... 8
                    Interval ......... 255
                    Type ............. Interrupt
                    Direction ........ Input
                [Descriptor 0]
                    Type ............. 0x29
                    Data ............. 02 00 00 00 00 00 ff 

Linux-Kernel-Message, if I connect the Stick to Kernel 2.6.29:

usb 1-5: new high speed USB device using ehci_hcd and address 4
usb 1-5: New USB device found, idVendor=067b, idProduct=2515
usb 1-5: New USB device strings: Mfr=1, Product=3, SerialNumber=0
usb 1-5: Product: USB Embedded Hub
usb 1-5: Manufacturer: USB 2.0 Flash Disk
usb 1-5: configuration #1 chosen from 1 choice
hub 1-5:1.0: USB hub found
hub 1-5:1.0: 1 port detected
usb 1-5.1: new high speed USB device using ehci_hcd and address 5
usb 1-5.1: New USB device found, idVendor=067b, idProduct=2517
usb 1-5.1: New USB device strings: Mfr=1, Product=4, SerialNumber=0
usb 1-5.1: Product: USB Mass Storage Device
usb 1-5.1: Manufacturer: USB 2.0 Flash Disk
usb 1-5.1: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi 3:0:0:0: Direct-Access     USB 2.0  Flash Disk       PROL PQ: 0 ANSI: 0 CCS
sd 3:0:0:0: [sdb] 512000 512-byte hardware sectors: (262 MB/250 MiB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 00 06 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sd 3:0:0:0: [sdb] 512000 512-byte hardware sectors: (262 MB/250 MiB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 00 06 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
 sdb: unknown partition table
sd 3:0:0:0: [sdb] Attached SCSI removable disk
sd 3:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete

Change History (2)

comment:1 by mmlr, 15 years ago

It's using a protocol that we don't support. The thing is that those protocols are not really common anymore. All but the transparent SCSI protocol are discouraged for new products according to Microsoft, so you don't see it often. The priority of supporting it is quite low due to that.

comment:2 by mmlr, 15 years ago

Resolution: fixed
Status: newclosed

This protocol has been implemented in hrev36162. Please try again and open a new ticket if there are any problems.

Note: See TracTickets for help on using tickets.