LaFonera Hardware SD-Card

From DD-WRT Wiki

Revision as of 22:10, 9 May 2007 by Gulp (Talk | contribs)
Jump to: navigation, search

You are here: DD-WRT wiki mainpage / LaFonera / Hardware / SD-Card

Contents

LaFonera SD Card Hack

Caution

JFFS is enabled in 0403 and later builds.

Purpose

It would be nice to be able to attach a SD Card to the LaFonera for storage.

MMC driver for the LaFonera

A kernel module is required in order to use the MMC hack. Using Rob Wentworth MMC drivers for OpenWRT or compile these using the toolchain on your LaFonera.

MMC BETA driver for the LaFonera

A beta MMC Driver for kernel 2.6 is avaible. It uses gpio bitbanging, the code is currently being reworked a bit to make it look nicer.

  • Known issues: (version 0.1 for fonera)
   * seg fault on rmmod -- fixed
   * seg fault when atomic
   * dev nodes do not get allocated automatically yet
   * no detailed howto yet

These issues will be fixed within the next days. the driver runs stable, as long as you do not insert or remove the card while the driver is loaded.

Package and sourcecode of MMC Beta Driver can be downloaded here: http://phrozen.org/fonera.html

SDIO Pinout

Pinout of the LaFonera according to http://kwzs.be/~kevin/ar531x/gpio%20pinout.txt

GPIO	        Pin on LaFonera
0		TP3	
1		pin 5 of SW1
2		WLAN LED
3		pin 1 of SW1
4		pin 2 of SW1
5		RESET (!)
6		RESET button
7		pin 6 of SW1

Cheap SD Card "reader" (floppy cable)

http://uanr.com/sdfloppy/ describes how to build a SD card reader from an old 5.25 floppy drive connector. The description is for WRT but maybe this could be used with LaFonera too.

Bastard Sons of Dial-Up Episode 8 (http://BSoDtv.org/episodes.php) explains how to make an SD Card PCB.

There is a video on making a Floppy Drive SD Card Connector for embeded devices here: http://bsodtv.wiihost.net/Simple%20SD%20Card%20Connector.avi

Existing SD Card hacks for other devices