New ultra-fast SDHC driver/module - ported to DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3  Next
Author Message
aszu
DD-WRT Novice


Joined: 14 Oct 2009
Posts: 4

PostPosted: Wed Oct 14, 2009 14:25    Post subject: New ultra-fast SDHC driver/module - ported to DD-WRT Reply with quote
Hi!

Recently I have been playing with my WRT54G v3.1 and SD mod. Then I read about improved SDHC driver for Tomato: http://gemini.net.pl/~slodki/tomato-sdhc.html

It would be nice to have such a thing on DD-WRT, isn't it?

Well, good news! I was quite bored today and compiled this module for DD-WRT v24-SP2. I am not a programmer and have never done it before, so it was really painful process. Also, I had to modify the source a bit.

It might work on the other DD-WRT versions, but I cannot guarantee this.

Results?

1. MASSIVE speed improvement (from roughly 150KB/s to almost 500KB/s on my 1GB Sandisk MicroSD)
2. Possible SDHC support (haven't test it yet, but it looks promising)

For some reason passing GPIO parameters to module during the initialization doesn't work, so I prepared two versions (for GPIO 2 or 5 as a DI).

Please feel free to test:

http://niuki.net/sdhc-gpio2.o
http://niuki.net/sdhc-gpio5.o

(I made only a three or so small modification to the source, but I will post it soon nevertheless)

Quick instruction:

1. Make sure that an old mmc module is not loaded. You can check it using lsmod. Run 'umount /mmc' & 'rmmod mmc' if it is).

2. Download the new module:

Code:

cd /tmp
wget http://niuki.net/sdhc-gpio2.o (or gpio5 version)


3. Load new module:

Code:
insmod /tmp/sdhc-gpio2.o


or

Code:
insmod /tmp/sdhc-gpio5.o


4. Mount SD card:

Code:
mount /dev/mmc/part1 /mmc/


Voila! ;)

Enjoy blazing speed and SHDC support (hopefully;)

Kudos for the original creators of this module (Chris Krusch, Augusto Bott and others involved).


Last edited by aszu on Wed Oct 14, 2009 15:28; edited 1 time in total
Sponsor
MrAlvin
DD-WRT User


Joined: 07 Jan 2007
Posts: 457
Location: Denmark

PostPosted: Wed Oct 14, 2009 15:21    Post subject: Re: New ultra-fast SDHC driver/module - ported to DD-WRT Reply with quote
aszu wrote:
cd /tmp
http://niuki.net/sdhc-gpio2.o (or gpio5 version)

Think it should read:

cd /tmp
wget http://niuki.net/sdhc-gpio2.o
aszu
DD-WRT Novice


Joined: 14 Oct 2009
Posts: 4

PostPosted: Wed Oct 14, 2009 15:30    Post subject: Re: New ultra-fast SDHC driver/module - ported to DD-WRT Reply with quote
MrAlvin wrote:
aszu wrote:
cd /tmp
http://niuki.net/sdhc-gpio2.o (or gpio5 version)

Think it should read:

cd /tmp
wget http://niuki.net/sdhc-gpio2.o


Thanks, corrected! Smile
ramon.godoy
DD-WRT Novice


Joined: 15 Aug 2009
Posts: 25
Location: Brazil

PostPosted: Wed Oct 14, 2009 15:51    Post subject: Reply with quote
nice!

im having a hard time with my mod.

ill try your module as soon as possible.
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Wed Oct 14, 2009 22:13    Post subject: Reply with quote
Wow, those performance numbers say the driver can write faster than it can read. Laughing Laughing
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
aszu
DD-WRT Novice


Joined: 14 Oct 2009
Posts: 4

PostPosted: Thu Oct 15, 2009 4:26    Post subject: Reply with quote
phuzi0n wrote:
Wow, those performance numbers say the driver can write faster than it can read. Laughing Laughing


This seems to be true ;)

I ran some benchmark (1GB Sandisk MicroSD):

Code:
root@my-ap:~#  sync; date; dd if=/dev/zero of=/mmc/test.bin bs=1024 count=102400; sync; date
Thu Oct 15 06:02:55 UTC 2009
102400+0 records in
102400+0 records out
Thu Oct 15 06:05:19 UTC 2009


This is whooping 711KB/s write speed!! :D

Code:
root@my-ap:~#  sync; date; dd if=/mmc/test.bin of=/dev/null bs=1024 count=102400; sync; date
Thu Oct 15 06:11:46 UTC 2009
102400+0 records in
102400+0 records out
Thu Oct 15 06:15:55 UTC 2009

Read speed is 'only' 411KB/s ;)

I am completely amazed by this driver - it brings usability of SD-mod to the completely new level (i.e. setting up swap space on SD now makes much more sense). Also, it is rock-stable for me. And please remember it should support SDHC!Wink
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Thu Oct 15, 2009 7:09    Post subject: Reply with quote
This should be in the Wiki! Cool....Does it work with External HDD's?
_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Thu Oct 15, 2009 7:16    Post subject: Reply with quote
Masterman wrote:
This should be in the Wiki! Cool....Does it work with External HDD's?


This is for the mmc mod, nothing to do with usb. Wink

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Thu Oct 15, 2009 7:19    Post subject: Reply with quote
autobot wrote:
Masterman wrote:
This should be in the Wiki! Cool....Does it work with External HDD's?


This is for the mmc mod, nothing to do with usb. Wink


Dammit Mad lol...Guess I'm stuck with 10MByte/sec transfer speeds... Smile

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
autobot
DD-WRT Guru


Joined: 07 May 2009
Posts: 1596

PostPosted: Thu Oct 15, 2009 7:23    Post subject: Reply with quote
Masterman wrote:
autobot wrote:
Masterman wrote:
This should be in the Wiki! Cool....Does it work with External HDD's?


This is for the mmc mod, nothing to do with usb. Wink


Dammit Mad lol...Guess I'm stuck with 10MByte/sec transfer speeds... Smile


Yes *stuck* lol.

_________________
Eko Builds

BrainSlayer Builds

DD-WRT Changelog RSS Feed
Masterman
DD-WRT Guru


Joined: 24 Aug 2009
Posts: 2070
Location: South Florida

PostPosted: Thu Oct 15, 2009 7:31    Post subject: Reply with quote
autobot wrote:
Masterman wrote:
autobot wrote:
Masterman wrote:
This should be in the Wiki! Cool....Does it work with External HDD's?


This is for the mmc mod, nothing to do with usb. Wink


Dammit Mad lol...Guess I'm stuck with 10MByte/sec transfer speeds... Smile


Yes *stuck* lol.



Hehe..Now I'm wonderin about the Asus RT-N16 with 128MB of DDR2 RAM and a driver like this.. Very Happy

_________________
Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
aszu
DD-WRT Novice


Joined: 14 Oct 2009
Posts: 4

PostPosted: Sun Oct 18, 2009 9:55    Post subject: Reply with quote
Yes! It works! Very Happy

Finally I have got Transcend 8GB class 6 SDHC MicroSD card. I just swapped it with exising 1GB cart and after reloading module it worked straight away (however, it took ages to format this card)!

Code:
root@my-ap:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.6M      2.6M         0 100% /
/dev/mmc/part1            7.9G       49M      7.5G   1% /mmc
/dev/mmc/part1            7.9G       49M      7.5G   1% /jffs
/dev/mmc/part1            7.9G       49M      7.5G   1% /opt


The performance (write/read speed) is almost the same as on the non-SDHC card. Still, I am very very happy with this driver Smile
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11563
Location: Wherever the wind blows- North America

PostPosted: Sun Oct 18, 2009 17:38    Post subject: Reply with quote
I asked BrainSlayer to view this thread this morning....it appears that he is going to incorprate the SDHC driver into the build.

http://svn.dd-wrt.com:8000/dd-wrt/changeset/13105

redhawk

_________________
The only stupid question....is the unasked one.
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Sun Oct 18, 2009 22:05    Post subject: Reply with quote
redhawk0 wrote:
I asked BrainSlayer to view this thread this morning....it appears that he is going to incorprate the SDHC driver into the build.

http://svn.dd-wrt.com:8000/dd-wrt/changeset/13105

redhawk


YEA!!!!!!! Laughing

_________________
The New Me
abarrow
DD-WRT Novice


Joined: 29 Jan 2009
Posts: 20
Location: Currently Mexico

PostPosted: Tue Nov 10, 2009 13:07    Post subject: Release? Reply with quote
Anyone know when the next release is going to be? It's been a month since the last one.

I would really like to be able to use this module!
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum