1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SD Card mod on WRT54G ver.2.2 with BCM5325EKQM

Discussion in 'Modding Forum' started by tharude, Aug 21, 2005.

  1. tharude

    tharude Network Guru Member


    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.

    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.....

    Please help!
    Best regards!
  2. tharude

    tharude Network Guru Member

    I must admit myself as the most dumb bastard on the WWW !!!

    A short notice to all modders planning to use a soldered slot for SD from an old card reader. Check carefully each pin inside the slot corresponds to which pin out of the slot!! mine was with 9-th pin leaded out to the last position so the slot was positioned like that:

    My SLOT Other
    inside --> outside --> normal slot
    9 --> 9 --> 1
    1 --> 1 --> 2
    2 --> 2 --> 3
    3 --> 3 --> 4
    4 --> 4 --> 5
    5 --> 5 --> 6
    6 --> 6 --> 7
    7 --> 7 --> 8
    8 --> 8 --> 9

    So, check your slots before solder it!! Maybe somebody, lucky as me will get the same reversed slot.

    All works like charm now!!

    Best wishes!
  3. jdepew

    jdepew Administrator Staff Member Member

    excellent! We'd love to see pics of the work. How are you planning on using this?
  4. tharude

    tharude Network Guru Member

    It's not a new mod!
    I've just want to warn the modders that SD card slots with reversed pins may exists like mine. In that case instead of putting the CS on pin 2 on slot as usual, you must put it on pin 1 because pin 9 is located on the last position instead of first. So before solder the wires to the slot first check the pinouts with multimeter.

    Keep on modding!!

Share This Page