OpenWrt Forum Archive

Topic: Crazy? (Beefy up WRT54G v5 increase RAM)

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have searched the forums and haven't seen too many people doing what I would like to try and do.  I was given a WRT54G v5 and have successfully loaded dd-wrt micro on it.  This made me wonder why not beef up the router to handle the full blown OpenWrt?  From the system requirements, it seems the 2 MB of Flash might suffice, and the .bin file for kamikaze (any thoughts on kamikaze vs. WR?) is only 1.8 MB so I should be able to flash it (am I missing anything?  I am new to this type of hacking and loving it).  I ordered some RAM chips from Micron and intend to bump my RAM up to 64 MB (if not 256 MB if A12 is connected) which seems to be the only reason OpenWrt isn't supported on v5?

Anyone have any cautionary tales, or holes in my thinking???

Following the successful implementation of OpenWrt, I intend to add an SD card for package storage (expanded flash, correcting the second problem with v5).

Should things go to plan, would anyone be interested in a write up of my adventure?  I would be happy to share my experiences if it encourages others to undo what Linksys did (restore functionality to the hardware).

Good luck with that. If you manage to increase both the 2MB flash and the 8MB system memory without spending more than one hour of effort, then you've got my vote. otherwise, it's too easy to buy a router with 4/16MB. Too easy.

wl520gu-hax wrote:

Good luck with that. If you manage to increase both the 2MB flash and the 8MB system memory without spending more than one hour of effort, then you've got my vote. otherwise, it's too easy to buy a router with 4/16MB. Too easy.

I only know the Linksys line up, but finding a "proper" WRT54G for less than $50 doesn't seem to be too easy to me.  Most of the ebay auctions that were close to closing seemed to be in the $70 range.  Since I got the v5 for free, I think a couple hours of "work" (I consider this fun afterall, hardware is not only my job, but my hobby) to make something useful is well worth it.  This would also offer a path for all those boxes that people have collecting dust, plus the older hardware is going to start dying off eventually smile

My primary question is if I do manage to up the RAM (to 64 MB), will that change installing OpenWrt from a guaranteed brick-fest to something usable?  Is the RAM the source of the bricks, or do they require the added Flash as well?  I would prefer to just change out the RAM, install OpenWrt, then increase the Flash.

Well, if you want to go for it, go for it!

I'll join you in your endeavor if you like, I have a wrt54g v8 over here with a serial mod and 512MB SD dangling out of it already.  But then I got frustrated by the scale of the problem and gave up,  There are plenty of Linksys WRT54G v8's for sale in this town... in my case I gleefully bought one without researching it first, thinking - how bad could it be? then, when i found about about the reduced RAM i was kicking myself. It can be very, very bad. The next router I bought after that, I took it up to the counter and insisted that the guy look it up on the OpenWrt Table of Hardware First smile   and even though the WL-520GU is also a somewhat crippled router - at least it has 4MB of flash already!

Even if adding more memory is possible, you see, there is still the problem of working with a configuration that doesn't know it, and the problem of telling it how to go about using all the fancy new stuff you just added. it's a bit of a catch 22.

The way I imagine it working is: you compile an openwrt kernel that's using most of brainslayer's .config so it's really quite braindead at first. smile That should be the first step to get around this 2MB limitation. 

Once that boots, Then add the RAM, double and triple check everything of course, and boot. If it still isn't a brick, then change nvram.
If it still isn't a brick, I suppose you could throw all caution to the wind and add more flash.

And if all of that goes well, then it may be safe to start adding packages or using a proper kernel.

good luck

(Last edited by wl520gu-hax on 1 Apr 2008, 16:47)

guys, I'm seriously hoping that this 2MB router flash thing is just a blip on the screen of the entire computer industry... when I found out about it I was hypothesizing that somebody had a very large pile of old RAM chips that they sold at a major discount to linksys just to clear stock.

If we still see 2MB linksys routers next year, I think we should revolt.

wl520gu-hax wrote:

Even if adding more memory is possible, you see, there is still the problem of working with a configuration that doesn't know it, and the problem of telling it how to go about using all the fancy new stuff you just added. it's a bit of a catch 22.

The way I imagine it working is: you compile an openwrt kernel that's using most of brainslayer's .config so it's really quite braindead at first. smile That should be the first step to get around this 2MB limitation.

My RAM arrived today, so tomorrow I plan to bump up to 64 MB (will test the 256 MB later since I am still not certain A12 would be connected, and I don't feel like x-raying the guy to find out).  I have installed dd-wrt micro on this guy, so I think I can test out the increased RAM through that, once that is verified, then I plan to try and flash OpenWrt onto it with 2 MB of flash since the .bin file is 1.8 MB.  Am I missing something there?

After OpenWrt is up and running, then it will be time for the mmc hack to increase the flash space, I have a 32 MB SD card waiting with a floppy cable salvaged from the scrap heap in the garage.  I love doing hardware on a budget, I have quite the reputation as a dumpster diver around the office smile

I'll keep you posted on my adventures, given the cheap v8s found on ebay, I may try and pick one up to test with since I ordered extra RAM.


Update:  Well, all is not happy in Muddville.  Adding the RAM chip is easy when you have proper tools (hot air station, fine tip iron), but you are dead nuts on, the config is not going well.  I have installed dd-wrt micro so I have a telnet to change nvram parameters, but that doesn't seem too kosher to the v5 for some reason.  I did have to tie A12 on the RAM to ground (it is NOT connected on the board...geez guys thanks for bothering to take a trace away you had on previous revs!), but it happily boots with the new chip as an 8 MB chip (it is a 256 Mbit chip, so 64 MB onboard).  Trying to turn on the "extra" memory leads to wonderful bricklike behavior.  Thankfully, a simple erase of the NVRAM and it returns to operation (make a jtag cable before changing any chips...odds are you will need it!).  I am going to keep monkeying with the nvram settings and see if I can get it to open up, but I am starting to wonder if the guys at Linksys have actually gone to the trouble to screw us over on the BCM5352.

OK, some success.  I don't understand why it took so long to work, but this morning I did the following from the telnet prompt:

nvram set sdram_init=0x0A
nvram set sdram_ncdl=0x0000
nvram commit

I then exited the telnet session and instead of power cycling, used the dd-wrt webpage to reboot, and presto, 16 MB now available on my v5 router.  I swear I tried the nvram settings above first shot with a brick following a power cycle, but maybe I screwed something up.  Sadly, the chip I put in only has 9-bit column addressing, so I can't get at the rest of the memory (it is a 256 Mbit chip), but if things go well from here on out, I will probably get a better chip to put on now that I have a better understanding of what is happening.  I will keep you posted with further progresses as it occurs (just tested a power cycle, all is well, still have my 16 MB).  Joy returns to Muddville!

(Last edited by Milkman on 9 Apr 2008, 13:41)

cool! well, now i'm casting a wary eye at the old wrt54g v8 shopping mistake with it's unfortunate SD-MMC mod hanging out of the side, sitting just over there.

I did the SD-MMC mod, all excited about increasing it's memory but noooooooo, there is no such support for such modules under any micro kernel that i have found yet... but i could compile one... i suppose...


and i do have some old ram chips around here...

16MB would be nice...

way to go so far!

Milkman, can you post which RAM chip you used for your upgrade?
I'm looking to do the same mod, as well.

Also, did you ever look into the Flash chip upgrade?

The discussion might have continued from here.