OpenWrt Forum Archive

Topic: how to compile mmc

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

hello,

I put a sd card reader to my wrt54g ver2 but I don't know how to compile the mmc.c driver.
Can I compile the driver directly on the wrt?

Here is my installed openwrt

root@Daniel:/lib# cat /etc/banner
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M

root@Daniel:/lib# uname -a
Linux Daniel 2.4.30 #1 Wed May 25 16:25:58 EDT 2005 mips unknown
root@Daniel:/lib#

Can someone help me, please?

Thanks
Daniel

Is it also possible to compile the mmc driver on a pc?

Search this forum and you will find links to already compiled copies. You can compile it yourself althought I think it is quite involved and requires a linux machine with the proper configuration, buildchains, etc. Something I haven't tackled yet but is documentated in the OpenWRT Wiki. My suggestion would be to download the correct mmc.o from links in this forum.

There are 2 versions of the mmc module. One uses GPIO5 and the other uses GPIO2. You want the version that uses GPIO5

The discussion might have continued from here.