[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#487452: installation-report: d-i lenny beta 2 nslu2 armel



Frans Pop wrote:
> On Monday 23 June 2008, Frans Pop wrote:
> > > I don't know if this is a kernel or a hardware bug. I do wonder if
> > > d-i should trust the ID_TYPE at all.
> >
> > We don't, at least not entirely. See list-devices which has a few
> > exceptions. Maybe another one should be added?

I have a feeling there are a near-infinite supply of differenct cheap
usb enclosures. Though I definitly picked the very cheap end in this one. :-)

There might also be reasons for these devices to pretend to be USB
floppy drives, to work around BIOS issues or something.

> OTOH, it should probably only be a minor fix to get the type reported 
> correctly. The first thing to check is extras/usb_id/usb_id.c in udev 
> which seems to be what determines the output based on sysfs info.
> 
> The type looks to be determined by bInterfaceClass and bInterfaceSubClass
> in /sys/bus/usb/devices/x-y:1.0/. The SubClass seems to be 5 instead of 8 
> in your case.
> The output of 'lsusb -v' (as root) will give you those values as well.
> 
> If so, the classification error looks to be in the kernel and should be 
> traceable with full lsusb output for the device.

Bus 001 Device 002: ID 04cf:8818 Myson Century, Inc. USB2.0 to ATAPI Bridge Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x04cf Myson Century, Inc.
  idProduct          0x8818 USB2.0 to ATAPI Bridge Controller
  bcdDevice           b0.08
  iManufacturer           1 Myson Century, Inc.
  iProduct                2 USB Mass Storage Device
  iSerial                 3 100
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 USB Mass Storage
    bmAttributes         0xc0
      Self Powered
    MaxPower               10mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      5 SFF-8070i
      bInterfaceProtocol     80 
      iInterface              5 Mass Storage Class
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: