OpenWrt Forum Archive

Topic: insmod mmc.o under WRT54GL, got"not an ELF file" error

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

Download mmc.c and Makefile from http://www.frontiernet.net/~beakmyn/openwrt/mmc/GPIO2/   ,compiled by myself, loaded to the router, tried to insmod, got " not an ELF file Could not load the module: Invalid argument", anyone can help?  Thanks.

(Last edited by wifi00 on 6 Jan 2007, 22:04)

Try this . You probably did not cross-compiled the driver.

If you give me the GPIOs you're using I can compile the driver for you and give you the mmc.o, but it's always the best if you compile it by yourself...

(Last edited by forum2006 on 6 Jan 2007, 21:47)

Is this correct for your router and soldering points? Is your GL a v1.0 or a v1.1 ?

/* for WRT54GL */
#define SD_DI 0x04  // GPIO 2
#define SD_DO 0x10  // GPIO 4
#define SD_CLK 0x08 // GPIO 3
#define SD_CS 0x80  // GPIO 7

(Last edited by forum2006 on 6 Jan 2007, 22:12)

forum2006 wrote:

Is this correct for your Router and soldering? Is your GL a v1.0 or a v1.1 ?

/* for WRT54GL */
#define SD_DI 0x04  // GPIO 2
#define SD_DO 0x10  // GPIO 4
#define SD_CLK 0x08 // GPIO 3
#define SD_CS 0x80  // GPIO 7

Yes, that is right, I am using GL V1.1

Here you go: mmc.o (for WRT54GL v1.1)

(Last edited by forum2006 on 23 Jan 2007, 23:25)

Thanks a lot!

Hello,

The mmc.o for the linksys wrt54gl (v1.1) can be obtained from http://devel.masikh.org/OpenWRT

Many thanks forum2006,

Masikh Masih

(Last edited by masikh on 24 Jan 2007, 18:04)

does it matter if it is a v1.1 or a 1.0
I have a 1.0 and I am trying to configure my mmc card as well.

The discussion might have continued from here.