Linux driver for Thinkpad X40 SD-Card slot available

Sunday, March 19, 2006 at 07:32 PM

Today, I discovered a Linux 2.6.15 driver for the built-in SD-Card slot of my Thinkpad X40 notebook on the web. A patch can be downloaded here. Get all 3 files and patch your kernel (this description refers to version 0.11 of the driver):

/usr/src/linux-2.6.15.1# patch -p1 < sdhci-0001.bin
/usr/src/linux-2.6.15.1# patch -p1 < pci-sdhc-0001.bin
/usr/src/linux-2.6.15.1# patch -p1 < mmc-respopcode-0001.bin

Update: The driver has been merged into Linux 2.6.17-rc1.

Run `make menuconfig`, goto `Device Drivers -> MMC/SD Card support` and built these as modules:

  • MMC support
  • MMC block device driver
  • Secure Digital Host Controller Interface support (EXPERIMENTAL)

Exit and save the configuration. Now rebuild and install the modules `make modules; make modules_install`. Load the driver:

modprobe mmc_block
modprobe sdhci

On my system dmesg printed the following messages while loading the driver with a 32 MB SD card inserted:

mmc0: SDHCI at 0xd0221000 irq 11 PIO
mmcblk0: mmc0:0001 000000 31360KiB
mmcblk0: p1

The `mmc_block` module should create `/dev/mmc*` device nodes that can be mounted:

mount /dev/mmcblk0p1 /mnt

Entry filed under: Kernel

No entries
Nothing found in the guestbook.