While trying to mod my WRT54G v4 with an SD card, I could not locate GPIO 5 which is needed for data input. After weeks of searching for GPIO 5 using the GPIO Utility, I decided to use GPIO 2 instead. Here is my pinout:
SD WRT54G v4
1 CS GPIO7 DMZ LED
2 DI GPIO2 White LED
3 VSS GND JP2 (9)
4 VDD PWR (3.3v) JP2 (1)
5 CLK GPIO3 Amber LED
6 VSS2 GND JP2 (10)
7 DO GPIO4 Cisco SW
I used an SD slot from SparkFun, and connected it up.. Here are the images:
Then I had to compile the MMC Driver after modifying the following GPIO options:
#define SD_DI (1 << 2)
#define SD_DO (1 << 4)
#define SD_CLK (1 << 3)
#define SD_CS (1 << 7)
Which you can download the binary or source.