WRT54GL V1.1 SD Card Woes

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


Joined: 02 Oct 2012
Posts: 16

PostPosted: Fri Sep 06, 2013 20:07    Post subject: WRT54GL V1.1 SD Card Woes Reply with quote
Tonight I did the SD car mod using this guide http://beta.ivc.no/wiki/index.php/Adding_SD_card_to_WRT54GL

With MMC enabled using either auto or manual the size shows as

Total / Free Size
2,816.00 KB / 0

no matter if the card is 1gb or 2gb

dmesg |grep mmc
mmc: starting module with: SD_DI=0x4, SD_DO=0x10, SD_CLK=0x8, SD_CS=0x80
mmc: this board has no MMC mod installed!
mmc: error in mmc_init (-1)

also /dev/mmc doesn't exist

any help would be greatly appriciated
Sponsor
lurch
DD-WRT Novice


Joined: 02 Oct 2012
Posts: 16

PostPosted: Sat Sep 07, 2013 9:32    Post subject: Reply with quote
I've tested all the gpio pins on the router

3 on 3.29v off .743v

2 on 3.174 off 179.3mv

7 on 3.112v off .363v

4 on 2.788v off 03.4mv

and also on the sd card slot and everything appears ok?

strings /dev/mtdblock/0 | grep ^gpio
gpioXXXX
gpio%d

strings /dev/mtdblock/0 | grep ^board
boardtype=0x0467
boardnum=42
boardrev=0x10
boardflags=0x2558
boardflags2=0
boardtype
boardtype
boardflags
boardflags2=0
boardrev=%d
boardflags=%d
boardflags
boardtype
boardnum
boardflags

insmod mmc

mmc: starting module with: SD_DI=0x4, SD_DO=0x10, SD_CLK=0x8, SD_CS=0x80
mmc: can't get major 121

nvram show | grep mmc
mmc_cs=7
mmc_di=2
mmc_gpio=1
mmc_do=4
mmc_enable=0
size: 25652 bytes (7116 left)
mmc_clk=3
mmc_enable0=0

nvram show | grep gpio
gpio2=ses_led
gpio3=ses_led2
gpio4=ses_button
gpio5=adm_eedi
gpio6=adm_rc
mmc_gpio=1
wl0gpio0=136
wl0gpio2=0
wl0gpio3=0
size: 25652 bytes (7116 left)
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Sat Sep 07, 2013 13:30    Post subject: Reply with quote
you didn't state what build you have flashed..

19342 (k24) was the LAST build that the sd mod works on. Anything after that, no joy.

I still am running 19342_std_nokaid on my TM.

You need to format the sd card externally.. I use ext2

_________________
[Moderator Deleted] Shocked
lurch
DD-WRT Novice


Joined: 02 Oct 2012
Posts: 16

PostPosted: Sat Sep 07, 2013 15:34    Post subject: Reply with quote
sorry i'm running Firmware: DD-WRT v24-sp2 (10/10/09) std - build 13064

would this work on my WRT54GL v1.1? ftp://www.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2012/06-08-12-r19342/linksys-wrt54g2v11/

or this one? http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/2010/08-12-10-r14929/broadcom/dd-wrt.v24_std_generic.bin

Also whats the max size card I can use I read somewhere 2gb?
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Sat Sep 07, 2013 16:25    Post subject: Reply with quote
flash this:

ftp://www.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2012/06-08-12-r19342/broadcom/dd-wrt.v24_nokaid_generic.bin

it is what I am running on my TM. In regard to card size.. I'm not sure the max. I am using a 2gb card formatted with two partitions.

1st one is opt formatted ext2 (1.4gb), the 2nd one is swap (512mb)

_________________
[Moderator Deleted] Shocked
lurch
DD-WRT Novice


Joined: 02 Oct 2012
Posts: 16

PostPosted: Sat Sep 07, 2013 16:58    Post subject: Reply with quote
cheers mate but i get Upgrade failed.
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Sat Sep 07, 2013 17:10    Post subject: Reply with quote
Maybe does not fit on a 4mb flash router..

Try this:

ftp://www.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2012/06-08-12-r19342/broadcom/dd-wrt.v24_std_generic.bin

for some reason, the std build is smaller than the std_nokaid build.. You would figure without kaid, the build would be smaller but it seems it is not the case.

_________________
[Moderator Deleted] Shocked
lurch
DD-WRT Novice


Joined: 02 Oct 2012
Posts: 16

PostPosted: Sat Sep 07, 2013 17:21    Post subject: Reply with quote
failed again? strange
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Sat Sep 07, 2013 19:12    Post subject: Reply with quote
you do have dd-wrt on the router now.. right?

if not, you have to flash a trailed build 1st, then follow up with the build you want..

I have not checked file sizes but 15962 is a great build also.. I ran it for months and still run it on e2000 ~ e3000 routers.. best build to date for those routers.

_________________
[Moderator Deleted] Shocked
lurch
DD-WRT Novice


Joined: 02 Oct 2012
Posts: 16

PostPosted: Sat Sep 07, 2013 19:42    Post subject: Reply with quote
yes I have DD-WRT v24-sp2 (10/10/09) std - build 13064

I managed to go back to mini ok but when trying to go up to ftp://www.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2012/06-08-12-r19342/broadcom/dd-wrt.v24_std_generic.bin upgrade failed again
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Sat Sep 07, 2013 19:49    Post subject: Reply with quote
lurch wrote:
yes I have DD-WRT v24-sp2 (10/10/09) std - build 13064

13064 was the WORST build for broadcom routers no matter what the router DB says..

I have no idea why you can not flash 15962 or 19342.

Make sure your av and fw software is disabled.. then clear your browsers cache & cookies and give it another go..

I use IE as my browser..

_________________
[Moderator Deleted] Shocked
lurch
DD-WRT Novice


Joined: 02 Oct 2012
Posts: 16

PostPosted: Sat Sep 07, 2013 20:00    Post subject: Reply with quote
I can upgrade from mini back to 13064 again but not to 15962 or 19342 strange as filesize is under 4mb
lurch
DD-WRT Novice


Joined: 02 Oct 2012
Posts: 16

PostPosted: Sat Sep 07, 2013 20:55    Post subject: Reply with quote
Someone in this thread reported same issue on this router http://www.dd-wrt.com/phpBB2/viewtopic.php?t=155542

so i've managed to install build 18777

now I get

dmesg |grep mmc
[INF] mmc: Version: 2.0.1 Parms: major=0 din=2 dout=4 clk=3 cs=7 maxsec=32 rahead=2
[ERR] mmc: init: No card detected
[ERR] mmc: init: No card detected
[INF] mmc: Module unloaded due to error
[INF] mmc: Version: 2.0.1 Parms: major=0 din=2 dout=4 clk=3 cs=7 maxsec=32 rahead=2
[ERR] mmc: init: No card detected
[ERR] mmc: init: No card detected
[INF] mmc: Module unloaded due to error

even though there is a card inserted
lurch
DD-WRT Novice


Joined: 02 Oct 2012
Posts: 16

PostPosted: Sun Sep 08, 2013 9:19    Post subject: Reply with quote
When I do auto detect I get

nvram show | grep mmc
mmc_cs=7
mmc_di=2
mmc_gpio=0
mmc_do=4
mmc_enable=1
size: 23230 bytes (9538 left)
mmc_clk=3
mmc_enable0=1

manually it shows

nvram show | grep mmc
mmc_cs=7
mmc_di=2
mmc_do=4
mmc_gpio=1
mmc_enable=1
mmc_clk=3
size: 23230 bytes (9538 left)
mmc_enable0=1

the gpios are the same so I must be on the right track?
jamaroney
DD-WRT Novice


Joined: 09 Nov 2014
Posts: 22

PostPosted: Mon Jul 27, 2015 21:19    Post subject: Reply with quote
barryware wrote:

19342 (k24) was the LAST build that the sd mod works on. Anything after that, no joy.


I tried firmware 25544 with my WRT54GS v2 (because I wanted a newer version of OpenVPN and workable ipv6). I couldn't get the SD/MMC mod to work. I then found out that it was missing the ext2.o file in /lib/modules/2.4.37/. I assume this is the problem with all post-19342 versions.

I used "Firmware Mod Kit" to extract ext2.o from an earlier firmware and then to re-build 25544 with that ext2.o file added.

As soon as I did that, voila! DDWRT read my 2GB SD card accurately. It even read a 16GB micro SDHC, defying the general word on this forum that only cards up to 2GB could be read.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
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