I have the same card reader in my HP Pavilion g6-2090ca notebook.
Thanks buzzcook for your post. I found it just after finding the Realtek driver webpage that you link to. I wanted to add a few things.
The 'make' command wouldn't work for me with or without sudo in front. I had to use 'sudo su' first and then the 'make' command after. I also ran into another error which experienced people might find obvious but I had to search online for the answer. I'm gonna walkthrough what I did and it may help someone else.
To find out what my card reader was (make, device id, etc) I tried lspci. It was listed but didn't say 'card reader' and I didn't know it's made by realtek. I guess I could have googled every device in the lspci output that I wasn't sure of but instead I went into Windows 7 device manager to look for it. I had to click on the item whose first word is memory (can't remember exactly) and the only item in the submenu was Realtek Card Reader. On a different computer of mine the card reader is under a different heading so you may have to look for it. Right click on it, choose properties (properties window pops up), click on the details tab, click on the drop-down menu and choose 'hardware id'. The ID is a string of characters with 'VEN_10EC&DEV_5229' in the middle. I believe it also had rev_01 in that string of characters.
In Ubuntu, using the command 'lspci -nn' shows the vendor/device number as "Realtek Semiconductor Co., Ltd. Device [10ec:5229] (rev 01)"
Using just lspci shows "Realtek Semiconductor Co., Ltd. Device 5229 (rev 01)"
I googled 10ec:5229 and found the Realtek driver webpage that buzzcook links to (it was on the first page of results). On the realtek page it shows the card reader as "PCIE RTS5229 card reader". To make sure that is the exact same one I googled that and found this thread, which confirmed it for me.
I downloaded the driver, extracted the zip file, then extracted the tar.bz2 file, opened the current folder as root (in the 'tools' menu of the file manager), copied and pasted the folder to my /tmp folder and then opened a terminal.
Tried the make command:
Code:
paul@notebook-pc:/tmp/rts5229$ make
cp -f ./define.release ./define.h
cp: cannot create regular file `./define.h': Permission denied
make: *** [default] Error 1
Tried sudo make:
Code:
paul@notebook-pc:/tmp/rts5229$ sudo make
[sudo] password for paul:
cp -f ./define.release ./define.h
make -C /lib/modules/3.2.0-36-generic/build/ SUBDIRS= modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-36-generic'
/usr/src/linux-headers-3.2.0-36-generic/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[1]: gcc: Command not found
HOSTCC scripts/basic/fixdep
/bin/sh: 1: gcc: not found
make[3]: *** [scripts/basic/fixdep] Error 127
make[2]: *** [scripts_basic] Error 2
make[2]: *** No rule to make target `arch/x86/tools/relocs.c', needed by `arch/x86/tools/relocs'. Stop.
make[1]: *** [archscripts] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-36-generic'
make: *** [default] Error 2
Googled the 'stack protector' and 'gcc not found' errors.
Installed gcc in Synaptic (probably could have done it with sudo apt-get install gcc).
Was still getting errors:
Code:
paul@notebook-pc:/tmp/rts5229$ sudo make
cp -f ./define.release ./define.h
make -C /lib/modules/3.2.0-36-generic/build/ SUBDIRS= modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-36-generic'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-36-generic'
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-36-generic'
make[2]: *** No rule to make target `arch/x86/tools/relocs.c', needed by `arch/x86/tools/relocs'. Stop.
make[1]: *** [archscripts] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-36-generic'
make: *** [default] Error 2
Googled some more. Installed 'build-essential'. I'm not sure if this was necessary or not.
Was still getting an error when trying sudo make.
Found this online:
Beware of using sudo for the first command. I got this error until I realized my mistake.
$ sudo make
cp -f ./define.release ./define.h
make -C /lib/modules/3.2.0-31-generic/build/ SUBDIRS= modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-31-generic'
make[2]: *** No rule to make target `arch/x86/tools/relocs.c', needed by `arch/x86/tools/relocs'. Stop.
make[1]: *** [archscripts] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-31-generic'
make: *** [default] Error 2
Used 'sudo su' (press enter ), then 'make'. This time the make command worked for me.
The rest is as explained in the read-me file and buzzcook's post:
Code:
root@notebook-pc:/tmp/rts5229# sudo make install
cp rts5229.ko /lib/modules/3.2.0-36-generic/kernel/drivers/scsi -f
root@notebook-pc:/tmp/rts5229# sudo depmod
root@notebook-pc:/tmp/rts5229# sudo modprobe rts5229
I've installed drivers once or twice before but this is the first time using the modprobe command. I still primarily use Windows but am slowly learning more and more commands. I hope this helps someone.
Bookmarks