Compact Flash with USB reader


5 posts
by Emmanuel » Sat Apr 06, 2013 9:33 pm
Hi,

I tried to mount a Compact flash card (used by my camera), but I have lot of error from the system.

I mount the same card on Ubuntu or Windows without problem, so the problem doesn't come from the card.

Is anyone has already tried to connect a CF card to the RP ?

Thank's a lot if you can help me.

dmesg log :

Code: Select all
[  290.211736] usb 1-1.2.4: new high-speed USB device number 8 using dwc_otg
[  290.325667] usb 1-1.2.4: New USB device found, idVendor=05dc, idProduct=b049
[  290.325702] usb 1-1.2.4: New USB device strings: Mfr=3, Product=4, SerialNumber=5
[  290.325720] usb 1-1.2.4: Product: USB_3_0 Reader
[  290.325735] usb 1-1.2.4: Manufacturer: Lexar
[  290.325750] usb 1-1.2.4: SerialNumber: 000000007889
[  290.331789] scsi1 : usb-storage 1-1.2.4:1.0
[  291.333093] scsi 1:0:0:0: Direct-Access     Lexar    CF  USB_3_0 Read LX01 PQ: 0 ANSI: 5
[  292.443517] scsi 1:0:0:1: Direct-Access     Lexar    SD  USB_3_0 Read LX01 PQ: 0 ANSI: 5
[  292.449081] sd 1:0:0:0: [sdb] 31260096 512-byte logical blocks: (16.0 GB/14.9 GiB)
[  292.452435] sd 1:0:0:0: [sdb] Write Protect is off
[  292.452476] sd 1:0:0:0: [sdb] Mode Sense: 21 00 00 00
[  292.453931] sd 1:0:0:1: [sdc] Attached SCSI removable disk
[  292.455448] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  292.464406]  sdb: sdb1
[  292.469045] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[  358.101712] usb 1-1.2.4: reset high-speed USB device number 8 using dwc_otg
[  358.214328] sd 1:0:0:0: [sdb] Unhandled error code
[  358.214362] sd 1:0:0:0: [sdb] 
[  358.214377] Result: hostbyte=0x07 driverbyte=0x00
[  358.214417] sd 1:0:0:0: [sdb] CDB:
[  358.214432] cdb[0]=0x28: 28 00 00 00 1e 5a 00 00 15 00
[  358.214483] end_request: I/O error, dev sdb, sector 7770
[  359.345344] sd 1:0:0:0: [sdb] Media Changed
[  359.345377] sd 1:0:0:0: [sdb] 
[  359.345390] Result: hostbyte=0x00 driverbyte=0x08
[  359.345406] sd 1:0:0:0: [sdb] 
[  359.345417] Sense Key : 0x6 [current]
[  359.345443] sd 1:0:0:0: [sdb] 
[  359.345456] ASC=0x28 ASCQ=0x0
[  359.345472] sd 1:0:0:0: [sdb] CDB:
[  359.345482] cdb[0]=0x28: 28 00 00 00 1e 5b 00 00 14 00
[  359.345533] end_request: I/O error, dev sdb, sector 7771
[  359.372640] FAT-fs (sdb1): Directory bread(block 7708) failed
[  359.404556] FAT-fs (sdb1): Directory bread(block 7709) failed
[  359.429485] FAT-fs (sdb1): Directory bread(block 7710) failed
[  359.454185] FAT-fs (sdb1): Directory bread(block 7711) failed
[  359.478980] FAT-fs (sdb1): Directory bread(block 7712) failed
[  359.503595] FAT-fs (sdb1): Directory bread(block 7713) failed
[  359.528157] FAT-fs (sdb1): Directory bread(block 7714) failed
[  359.553047] FAT-fs (sdb1): Directory bread(block 7715) failed
[  359.577759] FAT-fs (sdb1): Directory bread(block 7716) failed
[  359.601974] FAT-fs (sdb1): Directory bread(block 7717) failed
[  362.951752] usb 1-1.2.4: reset high-speed USB device number 8 using dwc_otg
[  363.054334] sd 1:0:0:0: [sdb] Unhandled error code
[  363.054372] sd 1:0:0:0: [sdb] 
[  363.054386] Result: hostbyte=0x07 driverbyte=0x00
[  363.054402] sd 1:0:0:0: [sdb] CDB:
[  363.054413] cdb[0]=0x28: 28 00 00 00 04 7e 00 00 0d 00
[  363.054463] end_request: I/O error, dev sdb, sector 1150
Posts: 5
Joined: Sat Apr 06, 2013 1:35 pm
by paulknewton » Sun Apr 07, 2013 7:25 pm
I just tried connecting my CF card vi a multi-card reader, and it worked fine. The Pi recognises the USB device and I can open it in the file explorer:

Code: Select all
pi@papapi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1997:1221 
Bus 001 Device 005: ID 0dda:2027 Integrated Circuit Solution, Inc. USB 2.0 Card Reader


Perhaps there is a problem with the power supply? This seems to be the origin of a lot of unusual filesystem issues seen on the forum?

paul.
Posts: 45
Joined: Tue Mar 12, 2013 9:17 pm
Location: Luxembourg
by Emmanuel » Mon Apr 08, 2013 1:04 pm
Thanks Paul,

My multi-card reader is connect to a self powered USB HUB. Can you tell me what sort of CF you has been used for your test ?

My Card is a Lexar 1000x UDMA 7.


Manu.
Posts: 5
Joined: Sat Apr 06, 2013 1:35 pm
by paulknewton » Mon Apr 08, 2013 5:18 pm
My card is made by Integral. 4GB. It doesn't say much else on it (but it is rather old - probably about 5 yrs old).

Perhaps it is your card reader?

paul.
Posts: 45
Joined: Tue Mar 12, 2013 9:17 pm
Location: Luxembourg
by Emmanuel » Tue Apr 09, 2013 2:02 am
I tried another card reader, and try to connect the card reader directly to the RP. Same errors. Look like it a problem with the UDMA 7 and may be the speed of the card. Next step is to play with the UDMA setting. I have to compare setting and drivers with my ubuntu server where the card works perfectly.
Posts: 5
Joined: Sat Apr 06, 2013 1:35 pm