LMDE T61 SD Card Reader Not Mounting Card

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

LMDE T61 SD Card Reader Not Mounting Card

Postby MightyMouth on Tue Aug 02, 2011 6:21 pm

Lenovo T61 with Integrated Smart Card Reader.

I have just recently installed LMDE after using Ubuntu 11.04 on which the SD card reader worked ok. I have read several threads in the forums about similar issues and so have tried the suggestions as follows but none of the threads I have found go beyond this.

If I do "lsusb" I get a list with the following at the bottom.
Bus 006 Device 002: ID 17ef:1003 Lenovo Integrated Smart Card Reader

If I remove the card and do "sudo tail -f /var/log/messages" then plug the card in I get

Aug 2 23:15:41 t61 kernel: [ 901.296084] r852: detected xD writeable card in slot
Aug 2 23:15:42 t61 kernel: [ 901.600141] NAND device: Manufacturer ID: 0x98, Chip ID: 0x71 (Toshiba xD 256MiB 3,3V)

but the card is not mounted.

I have checked that libccid and pcscd are installed.

Any suggestions?
MightyMouth
Level 1
Level 1
 
Posts: 4
Joined: Tue Dec 28, 2010 2:46 pm

Linux Mint is funded by ads and donations.
 

Re: LMDE T61 SD Card Reader Not Mounting Card

Postby MightyMouth on Wed Aug 03, 2011 8:09 am

Ok some development, It appears it is only xD-Picture cards that do not work, SD Cards woork fine. Is there something which might prevent one card type from working?
MightyMouth
Level 1
Level 1
 
Posts: 4
Joined: Tue Dec 28, 2010 2:46 pm

Re: LMDE T61 SD Card Reader Not Mounting Card

Postby AlbertP on Wed Aug 03, 2011 9:52 am

Please post the complete output of these commands:
Code: Select all
lspci
lsusb


It's possible that the xD cardreader is in lspci (a Ricoh r852 perhaps?) and the reader in lsusb is the SD part.
Last edited by AlbertP on Fri Aug 05, 2011 5:01 am, edited 1 time in total.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: LMDE T61 SD Card Reader Not Mounting Card

Postby MightyMouth on Thu Aug 04, 2011 4:43 pm

Hey AlbertP thanks for the reply, you are right.

Code: Select all
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation G84M [Quadro NVS 140M] (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)


I have since tried the following after seeing a similar problem on the Ubuntu Forums.

Code: Select all
sudo setpci -v -s 15:00.2 0xCA=0x57
sudo setpci -v -s 15:00.2 0xCB=0x02
sudo setpci -v -s 15:00.2 0xCA=0x00


But for some reason I get an error

Code: Select all
setpci: Missing width.
MightyMouth
Level 1
Level 1
 
Posts: 4
Joined: Tue Dec 28, 2010 2:46 pm

Re: LMDE T61 SD Card Reader Not Mounting Card

Postby AlbertP on Fri Aug 05, 2011 4:53 am

You're having exactly the same cardreader as I (but at me the Lenovo lsusb device is missing - my laptop is HP).

Support for 'MS' cards for this reader has been introduced in the 2.6.39 kernel, but support for SD cards has been there for years and is, at me, working fine on the 2.6.3x kernels. Make sure the sdhci-pci driver is loaded for the R5C822 chip:
Code: Select all
lspci -k
Last edited by AlbertP on Sun Aug 07, 2011 5:59 am, edited 2 times in total.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: LMDE T61 SD Card Reader Not Mounting Card

Postby MightyMouth on Sat Aug 06, 2011 7:55 pm

It's strange that this has all worked fine in Ubuntu and Linux Mint for years but Debian has a problem with it. I like the speed I get with LMDE on this older laptop though so it is worth working through these issues. I have also come across another issue with the Samba Client not working very well but that is an issue for another time. Anyway...

lspci -knn | grep 1180 gives

Code: Select all
15:00.0 CardBus bridge [0607]: Ricoh Co Ltd RL5c476 II [1180:0476] (rev ba)
15:00.1 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 04)
15:00.2 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 21)
15:00.4 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 11)
15:00.5 System peripheral [0880]: Ricoh Co Ltd xD-Picture Card Controller [1180:0852] (rev 11)
MightyMouth
Level 1
Level 1
 
Posts: 4
Joined: Tue Dec 28, 2010 2:46 pm

Re: LMDE T61 SD Card Reader Not Mounting Card

Postby AlbertP on Sun Aug 07, 2011 5:36 am

Oops, that was the wrong command. I meant to know the driver loaded for each card, but because I did grep it did not show those lines.

Edit. I found the driver for the 'Lenovo Integrated Smart Card Reader'! It's libccid in the repository.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6513
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 10 guests