I wrote on 2007-09-30:
> Alan Stern wrote:
>> The simplest way to find out what's going on is to rebuild the kernel 
>> with CONFIG_USB_STORAGE_DEBUG enabled.
> 
> Good, I'll do this and report what I find out.  May take while before I
> get time again to do so.

I haven't done this yet, but someone reminded me to switch
CONFIG_SCSI_MULTI_LUN on.  Now the following happens under 2.6.22 as
well as 2.6.24-rc3:

The built-in 4GB flash is recognized as LUN 0 and gets an sd device, but
no valid partition table is found on it.

An 8GB SDHC card, if inserted into the iAudio D2, is recognized as LUN 1
and gets an sd device.  Its partition table is recognized and the
filesystem on the card can be mounted.  A lot of "attempt to access
beyond end of device" errors are logged though, something which does not
happen if I read this card in a separate card reader.

So, CONFIG_SCSI_MULTI_LUN is what I missed when I wrote the initial
posting.  The partition table problem on the built-in flash and the size
problem of the extension card happened without that option too.  When I
had a way older firmware on the iAudio D2, I was able to access the
built-in flash and mount its 4GB partition though.

dmesg:

usb 1-1: new high speed USB device using ehci_hcd and address 6
usb 1-1: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
scsi 2:0:0:0: Direct-Access     COWON    D2               0100 PQ: 0 ANSI: 0
sd 2:0:0:0: [sdb] 7815168 512-byte hardware sectors (4001 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 37 00 00 08
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 7815168 512-byte hardware sectors (4001 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 37 00 00 08
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: unknown partition table
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
scsi 2:0:0:1: Direct-Access     COWON    D2               0100 PQ: 0 ANSI: 0
sd 2:0:0:1: [sdc] 15728160 512-byte hardware sectors (8053 MB)
sd 2:0:0:1: [sdc] Write Protect is off
sd 2:0:0:1: [sdc] Mode Sense: 37 00 00 08
sd 2:0:0:1: [sdc] Assuming drive cache: write through
sd 2:0:0:1: [sdc] 15728160 512-byte hardware sectors (8053 MB)
sd 2:0:0:1: [sdc] Write Protect is off
sd 2:0:0:1: [sdc] Mode Sense: 37 00 00 08
sd 2:0:0:1: [sdc] Assuming drive cache: write through
 sdc: sdc1
 sdc: p1 exceeds device capacity
sd 2:0:0:1: [sdc] Attached SCSI removable disk
sd 2:0:0:1: Attached scsi generic sg2 type 0
usb-storage: device scan complete
attempt to access beyond end of device
sdc: rw=0, want=15758216, limit=15728160
Buffer I/O error on device sdc1, logical block 1968752
attempt to access beyond end of device
sdc: rw=0, want=15758216, limit=15728160
Buffer I/O error on device sdc1, logical block 1968752
attempt to access beyond end of device
sdc: rw=0, want=15758328, limit=15728160
Buffer I/O error on device sdc1, logical block 1968766
attempt to access beyond end of device
sdc: rw=0, want=15758328, limit=15728160
Buffer I/O error on device sdc1, logical block 1968766
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160
Buffer I/O error on device sdc1, logical block 1968767
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160
Buffer I/O error on device sdc1, logical block 1968767
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160
Buffer I/O error on device sdc1, logical block 1968767
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160
Buffer I/O error on device sdc1, logical block 1968767
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160
Buffer I/O error on device sdc1, logical block 1968767
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160
Buffer I/O error on device sdc1, logical block 1968767
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160
attempt to access beyond end of device
sdc: rw=0, want=15758280, limit=15728160
attempt to access beyond end of device
sdc: rw=0, want=15758328, limit=15728160
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160
attempt to access beyond end of device
sdc: rw=0, want=15758336, limit=15728160

-- 
Stefan Richter
-=====-=-=== =-== ==---
http://arcgraph.de/sr/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to