Hi,
i attached a SD-Card to my Linksys WRT54GL 1.1. The following gpio's are used:
2 = data-in
4 = data-out
3 = clock
7 = chip select
The installed OpenWRT version is KAMIKAZE 8.09.1, r16278 (kernel 2.6). I installed these packages:
kmod-mmc 2.6.25.20-brcm47xx-1
kmod-mmc-over-gpio 2.6.25.20-brcm47xx-2
kmod-mmc-spi 2.6.25.20-brcm47xx-1
luci-app-mmc_over_gpio 0.8.7-1
To get the card working i had to modify the mmc_over_gpio startup script. The gpio for data-in was set to 5, but i use gpio 2.
The invocation of '/etc/init.d/mmc_over_gpio start' results then in the following output from dmesg:
gpio-mmc: Failed to request mmc_spi module.
mmc_spi spi32766.0: ASSUMING 3.2-3.4 V slot power
mmc_spi spi32766.0: SD/MMC host mmc0, no DMA, no WP, no poweroff
gpio-mmc: MMC-Card "default" attached to GPIO pins di=2, do=4, clk=3, cs=7
mmc_spi spi32766.0: can't change chip-select polarity
mmc0: new SD card on SPI
mmcblk0: mmc0:0000 NCard 1948672KiB
mmcblk0: p1
Mounting the card is no problem, after
kmod-fs-vfat 2.6.25.20-brcm47xx-1
kmod-nls-cp437 2.6.25.20-brcm47xx-1
kmod-nls-iso8859-1 2.6.25.20-brcm47xx-1
are present.
mount -t vfat /dev/mmcblk0p1 /mnt/mmc -o rw
Now i am able to read and write onto the card. But the speed is a great problem.
I had to adjust the test scripts (which are available on the net) to write only 500kb instead of 32Mb.
The writing of 500kb takes 20 seconds.
The reading of 500kb (after a fresh remount) takes also almost 20s.
That means data is written or read only at approx. 25kb/s.
What are possible reasons for these extreme low transfer rates? Is there anything i can do to improve the speed?
I hope, someone can give me some hints to solve the problem.
Greetings Joe