VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Need help getting built-in SD card reader to work  (Read 4154 times)

apock627

  • Member
  • *
  • Posts: 35
Need help getting built-in SD card reader to work
« on: July 20, 2007, 09:50:12 am »

Hi. I'm running VL5.8 on a Toshiba laptop (Tecra A8) which has a built-in SD card reader.

Code: [Select]
root:# lspci | grep -i sd
03:0b.3 Class 0805: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller

I have re-compiled a 2.6.21 kernel which I think includes what I  need. I can modprobe sdhci (which also loads mmc_core. I have to separately modprobe mmc_block)

There are some posts like http://forums.scotsnewsletter.com/index.php?s=5d201e89a0b49c546935da5abb412b5e
which discuss using setpci to change one of the registers, but i don't think that applies to me because i think they had to disable another device from trying to access the reader

Then everyone seems to be able to access the device on /dev/mmcblk0p1

I get no such device. I've also tried /dev/sdb (/dev/sda is my sata hard drive) and a few other names without success.

Would device should it be called for mounting etc. ?
Is there something else I should check? The card is definitely OK, formatted with fat32

Thanks
Logged

Joe1962

  • Administrator
  • Vectorian
  • *****
  • Posts: 2499
    • Joe1962's Website
Re: Need help getting built-in SD card reader to work
« Reply #1 on: July 20, 2007, 11:12:36 am »

For that I think you also need the modules: tifm_7xx1, tifm_core, tifm_sd. I got it working like that on a previous laptop, but don't remember the exact combination of modules, as some load automatically as dependencies of another.
Logged
O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10

apock627

  • Member
  • *
  • Posts: 35
Re: Need help getting built-in SD card reader to work
« Reply #2 on: July 21, 2007, 05:31:56 am »

Thanks. I re-compiled including these modules

Code: [Select]
root:# lsmod | grep "sd\|tifm\|mmc"
mmc_block               6412  0
tifm_sd                 8848  0
tifm_7xx1               6400  0
tifm_core               6160  2 tifm_sd,tifm_7xx1
sdhci                  14744  0
mmc_core               20500  3 mmc_block,tifm_sd,sdhci

Still no device found at /dev/mmcblk0p1
Sounds like i definitely needed to do that but, any more ideas?
Thanks
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: Need help getting built-in SD card reader to work
« Reply #3 on: July 21, 2007, 05:48:11 am »

Which version of VL 5.8 are you using, and is that card reader capable of reading multiple card types?
Logged

apock627

  • Member
  • *
  • Posts: 35
Re: Need help getting built-in SD card reader to work
« Reply #4 on: July 21, 2007, 06:35:21 am »

Using VL5.8 standard, kernel 2.6.21 and this reader is SD only.
Thanks
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: Need help getting built-in SD card reader to work
« Reply #5 on: July 21, 2007, 07:02:43 am »

when you boot-up, leave the card in the reader, an then check to see if any scsi device nodes appear (sda, sdb, sdd, etc) in /dev after VL has booted.

If not then also check if your kernel has multiple LUNs scanning enabled.
Logged

apock627

  • Member
  • *
  • Posts: 35
Re: Need help getting built-in SD card reader to work
« Reply #6 on: July 21, 2007, 07:50:44 am »

My sata hard drive is already detected as sda.
Probe all LUNs was not enabled but have now re-compiled again including this.
Just for kicks have changed all these config options from modules to built-ins

There was one line in dmesg I don't remember from before

sd 0:0:0:0: Attached scsi generic sg0 type 0

but then
root:# mount -t vfat /dev/sg0 /mnt/sd
mount: /dev/sg0 is not a block device

Thanks again
Logged

easuter

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 2160
Re: Need help getting built-in SD card reader to work
« Reply #7 on: July 21, 2007, 07:57:36 am »

You may find this config by Joe1962 a good base to build your own on, since the one for VL 5.8 Standard's 2.6.18.5 kernel had quite a few options left out, and that normally are also carried on into the next kernel you build.

Not to mention, Joe1962's config makes the kernel a little lighter on memory too :)
Logged

apock627

  • Member
  • *
  • Posts: 35
Re: Need help getting built-in SD card reader to work
« Reply #8 on: July 22, 2007, 09:21:29 pm »

THanks. I did a make menuconfig importing that config to 2.6.21, and couldn't make myself a bootable kernel. Too many versions ago I guess. Oddly the kernel panic happened very late, after going multiuser, I guess when some module was being loaded. I haven't got time to analyse that at the moment, but I have been looking for a base config with Vector recommendations so that will still be useful. No progress on the SD reader though. Thanks anyway.
Logged