Re: Does the Memory Stick work in linux?

"Mark Kaufer" <[email protected]> Mon, 18 Aug 2003 09:53:19 -0700 (PDT)
Newsgroups gmane.linux.hardware.sony
Message-ID <[email protected]>
> Have you checked dmesg?

Sure have.  Here's what I got this morning when booting:

usb.c: USB device number 2 default language ID 0x409
Manufacturer: Sony
Product: USB Memory Stick Slot
usb.c: unhandled interfaces on device
usb.c: USB device 2 (vend/prod 0x54c/0x69) is not claimed by any active
driver.
  Length              = 18
  DescriptorType      = 01
  USB version         = 1.10
  Vendor:Product      = 054c:0069
  MaxPacketSize0      = 16
  NumConfigurations   = 1
  Device version      = 1.09
  Device Class:SubClass:Protocol = 00:00:00
    Per-interface classes
Configuration:
  bLength             =    9
  bDescriptorType     =   02
  wTotalLength        = 0027
  bNumInterfaces      =   01
  bConfigurationValue =   01
  iConfiguration      =   00
  bmAttributes        =   c0
  MaxPower            =  100mA

...

usb-storage: Vendor: Sony
usb-storage: Product: Memorystick MSC-U03
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xdfda4800 Out: 0xdfda4814 Int: 0xdfda4828
(Period 1)

...

usb-storage: Fixing INQUIRY data to show SCSI rev 2
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
  Vendor: Sony      Model: MSC-U03           Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02


> I'm not John, and I'm running Gentoo instead of the distributions
> you've been discussing here, but I do have the built-in memory stick
> slot in my PCGR505R/GK showing up as a SCSI device (at /dev/sda):
>
> ---------------------------------------------------------------------
> In /usr/src/linux/.config:
> --------------------------
> CONFIG_SCSI=y
> CONFIG_USB_STORAGE=y
> ---------------------------------------------------------------------
> Output of dmesg (no memory stick inserted, hence the error messages):
> ---------------------------------------------------------------------
> scsi2 : SCSI emulation for USB Mass Storage devices
>   Vendor: Sony      Model: MSC-U02           Rev: 1.00
>   Type:   Direct-Access                      ANSI SCSI revision: 02
> Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
> sda : READ CAPACITY failed.
> sda : status = 1, message = 00, host = 0, driver = 08
> Current sd00:00: sense key Not Ready
> Additional sense indicates Medium not present
> sda : block size assumed to be 512 bytes, disk size 1GB.
>  /dev/scsi/host2/bus0/target0/lun0: I/O error: dev 08:00, sector 0
>  I/O error: dev 08:00, sector 0
>  unable to read partition table
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 2
> Device not ready.  Make sure there is a disc in the drive.
> ---------------------------------------------------------------------
>
> Whenever there *is* a stick in the slot, I simply mount it as /dev/sda1,
> works without any problems whatsoever.

Hrm, how about the hotplug section?  i.e.:

#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
# CONFIG_HOTPLUG_PCI_ACPI is not set

Although it looks like your MS resides on 0,0,0 of your SCSI bus, (where
my cdrom is) it looks like mine is on 1,0,0.  I've tried /dev/sd[a-g]1 and
it doesn't look like it's assigned to any of those devices.  I'm beginning
to wonder if it's somewhere under /dev/usb/, but it'll take a little more
looking into.

Cheers,

Mark