SD card not detected in Ubuntu 12.04 LTS!!

Problem : I inserted my 32GB of SD card in the slot of my Lenevo L430 laptop. Unfortunately it could not be detected. I found out that i dont have the device driver installed.


Solution : I installed the device driver and bingo. Please find the steps which i did to solve this problem.


1. Find out the make of the SD card reader. I found out that the card reader is known to OS but somehow not reading the SD card in it.

$ sudo lspci -vnn | grep -A5 RTS5229

01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader [10ec:5229] (rev 01)

    Subsystem: Lenovo Device [17aa:21f7]

    Flags: bus master, fast devsel, latency 0, IRQ 16

    Memory at f1e00000 (32-bit, non-prefetchable) [size=4K]

    Capabilities: [40] Power Management version 3

    Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+

Go to the realtek site and download the device driver for RTS5229. You can download it from here

Note: if you try to download it from windows it will ask for username/password. Generally it uses anonymous login to download. I downloaded it in my Ubuntu itself and it downloaded anonymously.

Once you download it do the following steps to install it.

1. Get into the downloaded directory.

2. Bunzip  and untar it

3. Change directory to rts5229

4. Run the following commands in sequence

 # make

 # sudo make install

 # sudo depmod -a

 # sudo modprobe  rts5229

Complete console logs.

testuser@hostname:~/Downloads$ cd Realtek_RTS5229_Linux_Driver_v1.07/

testuser@hostname:~/Downloads/Realtek_RTS5229_Linux_Driver_v1.07$ bunzip2 rts5229.tar.bz2
testuser@hostname:~/Downloads/Realtek_RTS5229_Linux_Driver_v1.07$ tar -xvf rts5229.tar

rts5229/

rts5229/ms.h

rts5229/define.debug

rts5229/rtsx_transport.h

rts5229/rtsx_sys.h

rts5229/rtsx_transport.c

rts5229/sd.h

rts5229/rtsx.h

rts5229/rtsx_card.h

rts5229/rtsx.c

rts5229/trace.h

rts5229/rtsx_chip.h

rts5229/sd.c

rts5229/rtsx_scsi.c

rts5229/rtsx_card.c

rts5229/Makefile

rts5229/rtsx_scsi.h

rts5229/general.h

rts5229/debug.h

rts5229/README.txt

rts5229/ms.c

rts5229/general.c

rts5229/define.release

rts5229/rtsx_chip.c

testuser@hostname:~/Downloads/Realtek_RTS5229_Linux_Driver_v1.07$ cd rts5229/

testuser@hostname:~/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229$ make

cp -f ./define.release ./define.h

make -C /lib/modules/3.2.0-67-generic/build/ SUBDIRS=/home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229 modules

make[1]: Entering directory `/usr/src/linux-headers-3.2.0-67-generic'

  CC [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx.o

  CC [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx_chip.o

  CC [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx_transport.o

  CC [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx_scsi.o

  CC [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rtsx_card.o

  CC [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/general.o

  CC [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/sd.o

  CC [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/ms.o

  LD [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rts5229.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rts5229.mod.o

  LD [M]  /home/testuser/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229/rts5229.ko

make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-67-generic'

testuser@hostname:~/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229$ sudo make install

[sudo] password for testuser:

cp rts5229.ko /lib/modules/3.2.0-67-generic/kernel/drivers/scsi -f

testuser@hostname:~/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229$ sudo depmod -a

testuser@hostname:~/Downloads/Realtek_RTS5229_Linux_Driver_v1.07/rts5229$ sudo modprobe rts5229

Comments

Popular posts from this blog

Speech recognition - Centos 7

How to troubleshoot hung/stuck jboss container process??

Vmplayer5.1 (32-bit) on Ubuntu14.04 LTS 32-bit!!