All was well done with my mod. I've checked almost 10 times all the soldering and wiring. Compiled the module mmc.o inserted and.... nothing. The result was broken SD card.... I'm using WRT v2.2 all wiring was done like in v3.0 since they are not so different. Checked the signaling with GPIO tool a couple of times just to be shure for myself and all was perfect, so what is the reason to burn a brand new 128MB SD card upon you??
here is the wiring:
1 - CS - GPIO7 (DMZ LED right pin at the beginning, after that putted to GND)
2 - DI - GPIO5 - RA10 as described in http://nanl.de/
3 - Vss - GND - pin 10 on JP1
4 - Vdd - 3.3v powered by pin 1 on JP1
5 - CLK - GPIO3 - RP4 pin 3 as described in http://nanl.de/
6 - Vss2 - GND - pin 10 on JP1
7 - DO - GPIO4 - next to RA13 pin (before the switch which is not present in v2.2)
Both 3 and 6 are properly grounded - measured between antenna GND and pin 9,10 on JP1 GND. Later added the ChipSelect (CS) to the same GND.
I'll try to return my SD back since it is with 3 years warranty but that's not my point. Does someone at all succeeded with this mod? Is it tested on v2.2 WRT's or we are the pioneers at this area?
I can also provide some photos of my mod but i dont think that they will be useful for now.
P.S. Here is my output from insmod mmc.o:
mmc Hardware init
mmc Card init
mmc Card init
mmc: error in mmc_card_init (1)
mmc: error in mmc_init (-1)
here is the output after compile:
/var/tmp/WRT/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc -O2 -DMODULE -D__KERNEL__ -W -Wall -Wstrict-prototypes -Wmissing-prototypes -fno-strict-aliasing -mips32 -isystem /var/tmp/WRT/openwrt/build_mipsel/linux/include -fno-pic -mno-abicalls -mlong-calls -c -o mmc.o mmc.c
mmc.c: In function `mmc_open':
mmc.c:278: warning: unused variable `device'
mmc.c: At top level:
mmc.c:324: warning: unused parameter 'filp'
/var/tmp/WRT/openwrt/build_mipsel/linux/include/asm/uaccess.h:130: warning: unused parameter 'type'
mmc.c:276: warning: unused parameter 'inode'
mmc.c:49: warning: 'gpioaddr_control' defined but not used
mmc.c:517: warning: 'mmc_check_media_change' defined but not used
The warnings they say are normal.....