Sony Ericsson C902 unusual_devs.h

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

 



Hi Folks!

In Order to get mass-storage Support working for my mobile I investigated
the current situation under 2.6.30 with assistance of an old report this
device needing further setup in unusual_devices.h:

http://thread.gmane.org/gmane.linux.usb.general/9987

The Mobile has ~200MB internal Flash and a micro SD Card inserted with size
of 4GB, it is trying to offer both as two different devices. However with
vanilla setup mounting is not possible and fdisk -l l or mount itself hangs
forever with the kernel spitting out

Aug  2 14:00:29 punzenstreichler sd 8:0:0:0: [sdb] Sense Key : 0x0 [current]
Aug  2 14:00:29 punzenstreichler sd 8:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
Aug  2 14:00:29 punzenstreichler sd 8:0:0:1: [sdc] Sense Key : 0x0 [current]
Aug  2 14:00:29 punzenstreichler sd 8:0:0:1: [sdc] ASC=0x0 ASCQ=0x0
Aug  2 14:00:29 punzenstreichler sd 8:0:0:0: [sdb] Sense Key : 0x0 [current]
Aug  2 14:00:29 punzenstreichler sd 8:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
Aug  2 14:00:29 punzenstreichler sd 8:0:0:1: [sdc] Sense Key : 0x0 [current]
Aug  2 14:00:29 punzenstreichler sd 8:0:0:1: [sdc] ASC=0x0 ASCQ=0x0
Aug  2 14:00:29 punzenstreichler sd 8:0:0:0: [sdb] Sense Key : 0x0 [current]
Aug  2 14:00:29 punzenstreichler sd 8:0:0:0: [sdb] ASC=0x0 ASCQ=0x0

Now i added this to unusual_devs.h:

UNUSUAL_DEV(  0x0fce, 0xe0d4, 0x0000, 0x0000,
                "Sony Ericsson",
                "C902",
                US_SC_DEVICE, US_PR_DEVICE, NULL,
                US_FL_FIX_CAPACITY ),

and I can mount /dev/sdc1, the device built by the inserted micro SD-Card
and I can operate on it.

Aug  2 14:07:40 punzenstreichler usb 1-1: new high speed USB device using ehci_hcd and address 7
Aug  2 14:07:40 punzenstreichler usb 1-1: configuration #2 chosen from 1 choice
Aug  2 14:07:40 punzenstreichler usbcore: registered new interface driver libusual
Aug  2 14:07:40 punzenstreichler Initializing USB Mass Storage driver...
Aug  2 14:07:40 punzenstreichler scsi10 : SCSI emulation for USB Mass Storage devices
Aug  2 14:07:40 punzenstreichler usbcore: registered new interface driver usb-storage
Aug  2 14:07:40 punzenstreichler USB Mass Storage support registered.
Aug  2 14:07:40 punzenstreichler usb-storage: device found at 7
Aug  2 14:07:40 punzenstreichler usb-storage: waiting for device to settle before scanning
Aug  2 14:07:41 punzenstreichler scsi 10:0:0:0: Direct-Access     Sony Eri Memory Stick        0 PQ: 0 ANSI: 0
Aug  2 14:07:41 punzenstreichler sd 10:0:0:0: Attached scsi generic sg2 type 0
Aug  2 14:07:41 punzenstreichler scsi 10:0:0:1: Direct-Access     Sony Eri Memory Stick        0 PQ: 0 ANSI: 0
Aug  2 14:07:41 punzenstreichler sd 10:0:0:1: Attached scsi generic sg3 type 0
Aug  2 14:07:41 punzenstreichler sd 10:0:0:0: [sdb] Attached SCSI removable disk
Aug  2 14:07:41 punzenstreichler usb-storage: device scan complete
Aug  2 14:07:41 punzenstreichler sd 10:0:0:1: [sdc] Attached SCSI removable disk
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Adjusting the sector count from its reported value: 368493
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] 368492 512-byte hardware sectors: (188 MB/179 MiB)
Aug  2 14:07:58 punzenstreichler sd 10:0:0:1: [sdc] Adjusting the sector count from its reported value: 8005633
Aug  2 14:07:58 punzenstreichler sd 10:0:0:1: [sdc] 8005632 512-byte hardware sectors: (4.09 GB/3.81 GiB)
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Test WP failed, assume Write Enabled
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Assuming drive cache: write through
Aug  2 14:07:58 punzenstreichler sd 10:0:0:1: [sdc] Test WP failed, assume Write Enabled
Aug  2 14:07:58 punzenstreichler sd 10:0:0:1: [sdc] Assuming drive cache: write through
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Adjusting the sector count from its reported value: 368493
Aug  2 14:07:58 punzenstreichler sd 10:0:0:1: [sdc] Adjusting the sector count from its reported value: 8005633
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Test WP failed, assume Write Enabled
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Assuming drive cache: write through
Aug  2 14:07:58 punzenstreichler sdb:<4>sd 10:0:0:1: [sdc] Test WP failed, assume Write Enabled
Aug  2 14:07:58 punzenstreichler sd 10:0:0:1: [sdc] Assuming drive cache: write through
Aug  2 14:07:58 punzenstreichler sdc: sdb1
Aug  2 14:07:58 punzenstreichler sdc1

However, the smaller sotrage device still does not work:

Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Sense Key : 0x0 [current]
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Sense Key : 0x0 [current]
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] Sense Key : 0x0 [current]
Aug  2 14:07:58 punzenstreichler sd 10:0:0:0: [sdb] ASC=0x0 ASCQ=0x0

What should I do to get the smaller device also covered by unusual_devs.h?

Kind regards, Konsti


-- 
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux