OpenWrt Forum Archive

Topic: Add MMC/SD card to Openwrt

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everyone!

I have a Fonera and a Linksys WRT54GL, and I want add a MMC/SD card to have more space.

I have some questions:

1. Can I use a 8GB SD card? Is there any limit?

2. Which component I need to install it? Except the SD card.

3. Can I buy somethere (online) all the components together?

4. Where I can found a tutorial to install on the Fonera and on the Linksys?

Thanks for all and regards!

For 2.6 Kernel MMC/SD is broken at the moment. For 2.4 I don't know (I don't use 2.4).

Hi Dogge,

Has the bug# been submitted/reported?

I'am right now testing sd card over gpio support on a sdmod'ed wrt54gl ... so far

recent ddwrt_v2.4_std works out of the box
openwrt brcm-2.4 8.09.1 works with drivers 1.3.4 from
http://oldwiki.openwrt.org/OpenWrtDocs( … f)MMC.html

openwrt brcm-47xx (kernel2.6) 8.09.1 & trunk do _not work_

I enabled mmc debugging in kernel_menuconfig and got the following

dmesg output-->
gpio-mmc: Failed to request mmc_spi module.
mmc_spi spi32766.0: ASSUMING 3.2-3.4 V slot power
mmc0: clock 0Hz busmode 0 powermode 0 cs 0 Vdd 0 width 0 timing 0
mmc_spi spi32766.0: SD/MMC host mmc0, no DMA, no WP, no poweroff
gpio-mmc: MMC-Card "default" attached to GPIO pins di=2, do=4, clk=7, cs=0
mmc0: clock 0Hz busmode 2 powermode 1 cs 1 Vdd 21 width 0 timing 0
mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
mmc_spi spi32766.0: can't change chip-select polarity
mmc0: starting CMD0 arg 00000000 flags 000000c0
mmc0: req done (CMD0): -145: 00000000 00000000 00000000 00000000
mmc0: starting CMD8 arg 000001aa flags 000002f5
mmc0: req done (CMD8): -145: 00000000 00000000 00000000 00000000
mmc0: starting CMD5 arg 00000000 flags 000002e1
mmc0: req failed (CMD5): -145, retrying...
mmc0: req failed (CMD5): -145, retrying...
mmc0: req failed (CMD5): -145, retrying...
mmc0: req done (CMD5): -145: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 000000f5
mmc0: req done (CMD55): -145: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 000000f5
mmc0: req done (CMD55): -145: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 000000f5
mmc0: req done (CMD55): -145: 00000000 00000000 00000000 00000000
mmc0: starting CMD55 arg 00000000 flags 000000f5
mmc0: req done (CMD55): -145: 00000000 00000000 00000000 00000000
mmc0: starting CMD1 arg 00000000 flags 000000e1
mmc0: req done (CMD1): -145: 00000000 00000000 00000000 00000000
mmc0: clock 0Hz busmode 2 powermode 0 cs 1 Vdd 0 width 0 timing 0


I can't see a ticket for this .. I am gonna open one ... bud

(Last edited by bud on 9 Jul 2009, 19:32)

The discussion might have continued from here.