A few months back I was playing around with my WRT54G2 and ended up bricking it. Don't worry, if you follow the instructions in my post on upgrading the WRT54G2 to DD-WRT, you'll be fine. I was trying to put firmware on there that didn't fit and I screwed up. Well, after I bricked it, I decided to pick up a WRT310N from Best Buy. I think I paid around $100 for the router, and after bricking the last one, I decided to not upgrade it to DD-WRT. Well, that lasted until about an hour ago.
I missed the fun stuff that DD-WRT gives me. After doing some research on putting DD-WRT on the WRT310N, I decided that it wasn't very likely that I would brick the thing, so I got to work on it. First thing you are going to need is the firmware files. You can download everything you need here. In that zip file you're going to find multiple version of the firmware. I'll get to those in a second. Now, let's do this step by step.
1.) DO A HARD RESET BEFORE YOU FLASH FIRMWARE. This does not mean hitting the reset button and saying you are done. This means doing the 30-30-30 reset. To do a 30-30-30 reset you must push the reset button with your router powered on. Hold it for 30 seconds with the router powered on. STILL holding it, pull the power cord for 30 seconds. Still holding it, plug the router back in and continue to hold the reset button for 30 more seconds. You will have held the button for a full 90 seconds without releasing it. You will not get a password renewal page as you have stock Linksys firmware on the router still.
2.) Plug a cable into the lan port of the router and your computer, and disable any wireless to the computer. You may have to set a static IP on your computer (I did). Set the IP on your computer to 192.168.1.2, subnet of 255.255.255.0, and the default gateway of 192.168.1.1.
3.) Go to 192.168.1.1 in your web browser. The stock Linksys username is "admin" and the stock password is "admin".
4.) Go to the "Administration" tab and click on "Firmware Upgrade".
5.) Browse to the dd-wrt.v24_mini_wrt310n.bin file that is part of the .zip file I linked to at the top of this post. YOU NEED TO INSTALL THE MINI FIRST! You CANNOT install the standard yet.
6.) Click on the upgrade button and WAIT for the upgrade successful message. Give it some time and don't be so impatient. I have received too many emails and comments from people that get impatient and start messing with stuff before the flash is complete.
7.) Power cycle your router. (very important) WAIT until you can relogin at 192.168.1.1. This should take around 20 seconds. If it takes longer, it takes longer. Once again, don't get impatient.
8.) Once the Web GUI for DD-WRT comes up, you will be asked to change your username and password. Do this immediately.
You can now upgrade to any generic dd-wrt build except Mega and Micro, or you can just leave the mini on there. The Wiki says that you need to do a hard reset before and after flashing to new firmware, but I didn't have any problems without doing a hard reset between the mini and the standard. NEVER re-use a configuration file from a previous build or another router. Reconfigure from scratch.
Now, about the files in the .zip file. I have included a multitude of firmware packages that will run on this router. I have the standard, usb, VoIP, and VPN. All of these have different functions. I originally put the standard version on and ran into some issues because the Port Forwarding has a bug in it. You can't add ports to forward! Once I put the VPN version on, it solved the Port Forwarding issue. So, if you have to do a lot of Port Forwarding on your router, I suggest using the VPN version that is included in that .zip file.
I hope this guide helps you out. I haven't had any problems with it yet, and if I do run into issues, I'll be sure to post them here. Let me know how your upgrade went in the comments below!
I have run into 1 issue so far. I started messing around with the router trying to set up different things on it. When I really started banging on it and resetting it, I was having trouble getting an IP address over the WAN link. Granted, all this took was rebooting the router and the cable modem, but I felt like I should let you guys know.