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

Bug#356090: kernel: Can't access PCMCIA card adapter



On 2008-09-21 16:11:45 +0200, Bastian Blank wrote:
> On Fri, Sep 19, 2008 at 10:07:36PM +0200, Vincent Lefevre wrote:
> > Same problem on my PowerBook G4, with both a 2-GB SD card and a 1-GB SD
> > card. The 1-GB card reads fine on my Zaurus (2.4.18 Linux kernel). For
> > instance, with the 2-GB card:
> 
> Are you sure that this cards are okay?

Well, there's no problem with the camera. And there's no problem when
I read the 1-GB card on my Zaurus. (I haven't tried the 2-GB card on
my Zaurus since there's a known bug in the driver for SD cards > 1 GB,
and some users had to reflash.)

I've tried with another 1-GB card, a microSD this time (with a microSD
to SD adapter between the PCMCIA adapter and the memory card), and I get
the following errors:

Sep 21 19:18:11 ay kernel: [43576.625314] pccard: PCMCIA card inserted into slot 0
Sep 21 19:18:11 ay kernel: [43576.629566] pcmcia: registering new device pcmcia0.0
Sep 21 19:18:11 ay kernel: [43576.673130] Probing IDE interface ide3...
Sep 21 19:18:11 ay kernel: [43576.741579] hdg: Memory Card Adapter, CFA DISK drive
Sep 21 19:18:11 ay kernel: [43576.893428] ide3 at 0x000-0x007,0x00e on irq 58
Sep 21 19:18:11 ay kernel: [43576.897498] hdg: max request size: 128KiB
Sep 21 19:18:11 ay kernel: [43576.901343] hdg: 1984000 sectors (1015 MB) w/1KiB Cache, CHS=1968/16/63
Sep 21 19:18:11 ay kernel: [43576.905536] ide-cs: hdg: Vpp = 0.0
Sep 21 19:18:13 ay kernel: [43578.447478] printk: 1 messages suppressed.
Sep 21 19:18:13 ay kernel: [43578.449303] Buffer I/O error on device hdg, logical block 0
Sep 21 19:18:13 ay kernel: [43578.453313] Buffer I/O error on device hdg, logical block 1
Sep 21 19:18:13 ay kernel: [43578.457305] Buffer I/O error on device hdg, logical block 2
Sep 21 19:18:13 ay kernel: [43578.461302] Buffer I/O error on device hdg, logical block 3
Sep 21 19:18:13 ay kernel: [43578.465300] Buffer I/O error on device hdg, logical block 0

However, if I try the same microSD card with a USB adapter, on the same
machine, I have no problems:

Sep 21 19:19:36 ay kernel: [43587.545322] usb 2-1: new full speed USB device using ohci_hcd and address 2
Sep 21 19:19:36 ay kernel: [43587.605288] usb 2-1: configuration #1 chosen from 1 choice
Sep 21 19:19:36 ay kernel: [43587.611354] usb 2-1: New USB device found, idVendor=0781, idProduct=b7b1
Sep 21 19:19:36 ay kernel: [43587.613317] usb 2-1: New USB device strings: Mfr=3, Product=4, SerialNumber=5
Sep 21 19:19:36 ay kernel: [43587.617303] usb 2-1: Product: MobileMate Micro
Sep 21 19:19:36 ay kernel: [43587.621304] usb 2-1: Manufacturer: SanDisk
Sep 21 19:19:36 ay kernel: [43587.625299] usb 2-1: SerialNumber: 000000098043
Sep 21 19:19:37 ay kernel: [43588.122107] SCSI subsystem initialized
Sep 21 19:19:37 ay kernel: [43588.209046] Initializing USB Mass Storage driver...
Sep 21 19:19:37 ay kernel: [43588.215909] scsi0 : SCSI emulation for USB Mass Storage devices
Sep 21 19:19:37 ay kernel: [43588.219211] usbcore: registered new interface driver usb-storage
Sep 21 19:19:37 ay kernel: [43588.221317] USB Mass Storage support registered.
Sep 21 19:19:37 ay kernel: [43588.227249] usb-storage: device found at 2
Sep 21 19:19:37 ay kernel: [43588.227270] usb-storage: waiting for device to settle before scanning
Sep 21 19:19:42 ay kernel: [43588.753289] usb-storage: device scan complete
Sep 21 19:19:42 ay kernel: [43588.756648] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9407 PQ: 0 ANSI: 0
Sep 21 19:19:42 ay kernel: [43589.141885] Driver 'sd' needs updating - please use bus_type methods
Sep 21 19:19:42 ay kernel: [43589.167567] sd 0:0:0:0: [sda] 1984000 512-byte hardware sectors (1016 MB)
Sep 21 19:19:42 ay kernel: [43589.179581] sd 0:0:0:0: [sda] Write Protect is off
Sep 21 19:19:42 ay kernel: [43589.181307] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
Sep 21 19:19:42 ay kernel: [43589.181319] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sep 21 19:19:42 ay kernel: [43589.208571] sd 0:0:0:0: [sda] 1984000 512-byte hardware sectors (1016 MB)
Sep 21 19:19:43 ay kernel: [43589.213289] sd 0:0:0:0: [sda] Write Protect is off
Sep 21 19:19:43 ay kernel: [43589.213306] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
Sep 21 19:19:43 ay kernel: [43589.213319] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sep 21 19:19:43 ay kernel: [43589.217313]  sda: sda1
Sep 21 19:19:43 ay kernel: [43589.222203] sd 0:0:0:0: [sda] Attached SCSI removable disk

I could mount it without any problem:

/dev/sda1 on /mnt/mem type vfat (rw,noexec,nosuid,nodev,noatime,user=lefevre)

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Reply to: