Compiling drivers for Realtek card reader
HP Mini 110 netbook comes with a built-in multi-card reader. However by default the drivers do not seem to be in PCLinuxOS 2011.6. The relevant drivers have also not been included in the repositories.
This can be overcome by installing Linux drivers downloaded from the Realtek website directly. The procedure for that is enumerated below.
As the drivers are not in Synpatic, they will need to be compiled and installed manually. It needs some command line work. Please follow the procedure detailed below exactly.
Get and prepare
- Download the driver file called rts.pstor.tar.bz2 from the Realtek website.
- Extract the contents into a subdirectory called rts_pstor.
- Open a terminal such as Konsole and navigate to the rts_pstor directory.
- Become root by typing su followed by the root password when prompted.
- Confirm that you are indeed in the rts_pstor directory by issuing ls command and the output should be like this:
[root@localhost rts_pstor]# ls debug.h ms.c rtsx_chip.c rtsx_transport.c timestamp.in define.debug ms.h rtsx_chip.h rtsx_transport.h trace.h define.release README.txt rtsx.h sd.c xd.c general.c rtsx.c rtsx_scsi.c sd.h xd.h general.h rtsx_card.c rtsx_scsi.h spi.c Makefile rtsx_card.h rtsx_sys.h spi.h
- In case the output is as below then you will have to issue the cd rts_pstor command and recheck with ls.
[root@localhost rts_pstor]# ls rts_pstor
Compile and install
- Type make in the command line and you should get a sample output like below :
[root@localhost rts_pstor]# make sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h cp -f ./define.release ./define.h make -C /lib/modules/220.127.116.11-pclos3.bfs/build/ SUBDIRS=/home/xxx/Downloads/rts_pstor/rts_pstor modules make: Entering directory `/usr/src/kernel-devel-18.104.22.168-pclos3.bfs' CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/rtsx.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/rtsx_chip.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/rtsx_transport.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/rtsx_scsi.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/rtsx_card.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/general.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/sd.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/xd.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/ms.o CC [M] /home/xxx/Downloads/rts_pstor/rts_pstor/spi.o LD [M] /home/xxx/Downloads/rts_pstor/rts_pstor/rts_pstor.o Building modules, stage 2. MODPOST 1 modules CC /home/xxx/Downloads/rts_pstor/rts_pstor/rts_pstor.mod.o LD [M] /home/xxx/Downloads/rts_pstor/rts_pstor/rts_pstor.ko make: Leaving directory `/usr/src/kernel-devel-22.214.171.124-pclos3.bfs'
- Type make install for an output like below :
[root@localhost rts_pstor]# make install cp rts_pstor.ko /lib/modules/126.96.36.199-pclos3.bfs/kernel/drivers/scsi -f
- Type depmod and you may not get any output :
[root@localhost rts_pstor]# depmod [root@localhost rts_pstor]#
Activate your driver
- Easiest and most clean way will be to reboot your computer now.
- Try any compatible SD or MMC card by inserting it into the reader now. It should be instantly visible and offered for mounting.