Comment 171 for bug 53923

Revision history for this message
Id2ndR (id2ndr) wrote : Re: tifm: Texas Instruments Card reader not working

As we have no information about the progress in resolving this bug, I tried to in an other way. I visited http://developer.berlios.de/projects/tifmxx and downloaded latest version available.

Then I tried to compile it but I got an unexpected error :

$ make
echo /tmp/tifm-0.8e.tar.bz2_FILES
/tmp/tifm-0.8e.tar.bz2_FILES
make -C /lib/modules/2.6.20-16-generic/build M=/tmp/tifm-0.8e.tar.bz2_FILES
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.20-16-generic »
  CC [M] /tmp/tifm-0.8e.tar.bz2_FILES/tifm_sd.o
/tmp/tifm-0.8e.tar.bz2_FILES/tifm_sd.c:16:32: erreur: linux/mmc/protocol.h : Aucun fichier ou répertoire de ce type
make[2]: *** [/tmp/tifm-0.8e.tar.bz2_FILES/tifm_sd.o] Erreur 1
make[1]: *** [_module_/tmp/tifm-0.8e.tar.bz2_FILES] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.20-16-generic »
make: *** [all] Erreur 2

linux-headers-2.6.20-16-generic packet is installed on my computer, so I don't know if mmc-support is enabled. It was needed with 2.6.17 according to http://gentoo-wiki.com/HARDWARE_Gentoo_Acer_Ferrari_4005WLMi_Manual.
I'd like to be able to compile the module or to understand how it was compile on this version.

================

With current version, blockdevice /dev/mmcblk0p1 isn't created after inserting a SD card.
With older version, automount of the card worked, and here are the information on the module :

$ modinfo tifm_sd
filename: /lib/modules/2.6.17-10-generic/kernel/drivers/mmc/tifm_sd.ko
author: Alex Dubov
description: TI FlashMedia SD driver
license: GPL
version: 0.5
vermagic: 2.6.17-10-generic SMP mod_unload 586 REGPARM gcc-4.1
depends: mmc_core,tifm_core
srcversion: 01E00C53E8DFA16C1BE7F45
parm: no_dma:bool

And in dmesg :
[17180510.468000] mmcblk0: mmc0:b3c7 SD064 60928KiB
[17180510.468000] mmcblk0: p1
[17180525.908000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!