Posted: Wed Oct 04, 2006 4:13 Post subject: SD card help
Hi,
I am trying to get an SD card working on my wrt54g v2.
I'm running DD-WRT v23 sp2, and i have enabled the SD card support on the admin screen.
I am wondering what else exactly i need to do to get it running.
What commands do i need to type (say to possibly mount it,) and then how do i check that it is in fact running.
I have been searching online for quite some time, and I can't seem to find any current (as in when using the firmware that already supports SD cards) information.
IIRC there are other (better?) pictures available. Look in the Wiki, and also OpenWRT's Wiki.
Next, use the gpio utility to check your wiring (you cannot check the input signal. obviously, but you may switch on/off the other three periodically and watch the voltages).
Unfortunately, the mmc module doesn't write any log messages anymore.
I'm not sure whether an unformatted card would work (couldn't get mke2fs to run on my card that otherwise works perfectly)
If your wiring is correct, and you may make an ext2 fs on the card externally, you should see /mmc mounted after bootup.
If nothing has changed since the version I used you don't need to do anything else then enabling the card in the webinterface. If the SD-Card interface ist working the router will do a automatic format with ext2fs during the next powerup. If this is successfull the card will be mounted to "/mmc/" ,if you can see a "lost+found" folder in it it should be ok. Furthermore you can run "df -h" to check if it is really mounted and to see how much space is left on the media. The router will try to automount the card with every powercycle, changing the card while the router is running is a bit tricky...
If it's true what stephen is saying detecting errors will be a bit tricky. Before you could just run "dmesg" in a shell and you would have some output about the mmc/sd card initialization.
My dd-wrt did run some time with a 512MB Hama card, now I am using a No-Name 1GB card which seems to work flawless (even though the version of dd-wrt v24 I have currently installed doesn't seem to support mmc at all^^)!
MfG
.D0T
Joined: 06 Oct 2006 Posts: 6 Location: Lyon, France
Posted: Fri Oct 06, 2006 13:20 Post subject: Re: SD card help
rtpmatt wrote:
Hi,
I am trying to get an SD card working on my wrt54g v2.
I'm running DD-WRT v23 sp2, and i have enabled the SD card support on the admin screen.
I am wondering what else exactly i need to do to get it running.
What commands do i need to type (say to possibly mount it,) and then how do i check that it is in fact running.
I have been searching online for quite some time, and I can't seem to find any current (as in when using the firmware that already supports SD cards) information.
hi !
on my wrt54g V2, I had to reverse the CLK and the DO compared to the photo of the site _________________ recall you that same the largest of the oaks was a nipple.
Ok, i finally found my multimeter (after trying to read the GPIO lines with my oscope and finding out that my 60MHZ scope was actually too fast for once!!!)
Im just wondering if any body knows exactly what GPIO lines go to what. I am assuming this diagram of the SD card here is correct:
http://kiel.kool.dk/
I just want to make sure I solder it correct next (i accidentally soldered GPIOs 4 and 5 together today, so i need to get a desolderer tomorrow) but it seems:
CS = GPIO 7 = DMZ LED
DI = GPIO 5
CLK = GPIO 3
DO = GPIO 5
the clock and and DO lines in particular interest me
V+ and GRND should be easy enough
Also, has any body else used the 5.25 floppy connector? thats what I am trying to use, just want to make sure it really does work.
i have a wrt54gl and i want to put him a 256mb sd card and install a ftp server in the router...
is that possible?
my knowledge about that is none... if someone can send me the links to photos and schematics to my router, i will be very happy!
thank you!