Sunday, June 27, 2010

Upgrade DD-WRT and Keep Installed Applications

The DD-WRT support for these new 11N Gigabit routers are still in early stage with new builds rolling out every one to two weeks. The old good "if its not broken then don't fix it" rule might not apply here and I suggest to stay with latest release if you have the time(and guts).

Upgrading a DD-WRT firmware with loaded software is pretty easy, considering the extra work we've done. Take the trouble not to mess with important system folders like /lib /usr and /bin and now its the reward time.

  1. Stop installed software
    Log in the router, rename the /mnt/optware.enable
    mv /mnt/optware.enable /mnt/optware.disable

    Then reboot the router. After rebooting, the router is back to standard DD-WRT with no extra load and ready for flashing.

  2. Upgrade firmware
    Get the new DD-WRT build, the name should be wzr-hp-g300nh-dd-wrt-webupgrade-MULTI.bin. Some suggests a hard reset before and after upgrading but I usually just select "Reset to Default Settings" during flash.
    firmware-reset-to-default
    After flashing, all settings will be erased and then you have to start over again.

  3. Set the router
    Set the router as usual. Here is a quick list for additional setup, all are covered in other posts, I just put these together for easy reference.

    Enable SSH and USB Support. Details here, Step 2.
    Customized startup script. Details here, Step 10.
    Disable DD-WRT's NTP Client if you're about to use local time. Details here, Step 1.
    Disable built-in FTP server(should be off by default). Details here, Step 1.

    Then some nvram variables:

    #use local time. details here, step 3. Change it accordingly
    nvram set time_zone=PST8PDT,M3.2.0,M11.1.0
    #
    move dd-wrt's web admin to another port. Details here, step 1
    nvram set http_lanport=88
    nvram commit

    After that, reboot the router.

  4. Update writable /etc and re-enable installed apps
    After reboot, login the router and run:

    cp -a /etc/* /mnt/etc/
    mv /mnt/optware.disable  /mnt/optware.enable

    The first line is very important. It's for synchronizing our the customized /etc folder with the new firmware's /etc folder. Forget to do so will break the web management interface!

    Somewhat modified, the files in /etc folder are only added(like /etc/TZ) or dynamically updated(the adduser script), so it's safe to overwrite the /etc folder with new contents and all our work is kept intact. After that, reboot the router, and you should have a new DD-WRT with all previously installed software running.

  5. Fix the broken web interface
    You'll get this error ONLY if you forget to update the /etc folder, see Step 4 above. If this ever happens:
    SSH or telnet login the router, run

    mv /mnt/optware.enable /mnt/optware.disable
    reboot

    the web interface should be back after rebooting, then follow Step 4.

    If the web interface is messed and you can't login from PuTTY, unplug the USB disk and power cycle the router. Then manually mount the USB disk(details here, step 2 and 6) and update /etc folder following Step 4.

38 comments:

ccdoggy said...

Works perfect! thanks!

Unknown said...

Lovely stuff.. Followed your guide earlier on 14896 and flashed 14929 and lost the web interface :(

Saddest part is I formatted the USB drive and re-did everything in the prior steps to re-install everything and all I had to do was this. Doh! :)

Unknown said...

Marvelous work.Just wanted to drop a comment and say I am new to your blog and really like what I am reading.
recover data from a formatted hard drive

Router Login said...

this is really useful to me
Router Login not working
Routerlogin admin page
Routerlogin
Routerlogin Net

McAfee Activate said...

I am happy with your article,your website is pretty good. Many articles are very useful for everyone. I am sure your website will grow in the future.

Anonymous said...

I am Very Much Interested on your blog, it was Super.

Thanks for sharing,

Visit us for Antivirus Related Queries,

webroot not working || install antivirus in usb flash drive || install antivirus software || windows defender error code || bitdefender error code || boot kaspersky rescue disk from usb || mcafee antivirus scan not working || windows defender || common antivirus error || create bitdefender rescue cd ||

Anonymous said...

Ohh, great. Thank you for sharing.

Antivirus || Antivirus Software || Antivirus Cleaner || Internet Security || Antivirus Protection || Internet Security Software || Antivirus Download || Security Antivirus || Antivirus and Security Software || Install Antivirus || Antivirus & Security Software || Mobile Security and Antivirus ||

sitampan said...

pasarqq guna dari hondaqq juga turut samat seperti lipoqq.||Setelah melihat hasil hasil dari kemenangan member kami yang bermain di halaman mereka ada juga yang lainnya yaitu : omiqq , saktiqq , fifaqq , dewaqq dan juga murahqq

Martin said...

Thank you for giving such a blog, Here i wanna say about windows update errors, Continuum in Windows 10, this feature turns your Windows phone into a big screen projector and a TV or any monitor, and then open any app to see content on a larger screen. show off your favorite stuff on a PC without the use of an adapter or dock while you use the continuum in windows 10.

JamesAndroose said...

I really thank you for this awesome blog, Microsoft Exchange email server that helps to manage your emails. To know more about the Exchange mail server on iPhone, Mac, and Linux, refer to the content provided below. To know how to configure Exchange email on your iPhone, refer to the guidelines given below.? email setup center will help you in all ways so you also utilize this one.

Steephan Johnson said...

Such a wonderful blog thank you so much, First, make sure that you have done the basic printer setup. Now, begin the Fax connection setup as instructed below. Open the scanner cover of the Brother MFC-J6945DW printer. Get a telephone cord that provided with the printer package. If the telephone cord is not provided, then get it from a trusted online retail store. Connect the Brother MFC-J6945DW printer to the telephone wall jack using the telephone cord. After completing the Fax connection setup, close the scanner cover of the Brother MFC-J6945DW printer. Switch on your printer Now, set the Station ID and Receive Mode options for Brother MFCJ6945DW fax setup.

Martin said...

Thank you so much for this awesome blog, in many I expect and search like these blogs for finding answers for me, I got a solution about the windows to error like blue screen of death windows 10 if you want this please refer to my site.

Martin said...

I really thank you for this fantastic blog, I never saw like this blog in my experience thank you so much, I also having a solution about email sync email to android, if you want this please refer me.

Luzzia said...

Such a superb blog thank you so much if you want to know brother printer j6945dw setup please refer my site.

Linda said...

This is such an awesome blog thank you so much I have never seen like this blog. And also I am having better steps about blue screen of death windows 10 if you want this please refer to my site.

Jessica said...

Thank you so much for this blog, really awesome one I have never seen like this blogs, And here i wanna tell about brother printer J6945dw fax setup if you have any doubts nor want to know about this concept please refer my site.

Tamara said...

Thank you so much for this fantastic blog, The windows update error 80072ee2 message is displayed on the screen when the update process fails or files stored on your system are corrupted. To fix the error 80072ee2 on windows 10, read the troubleshooting instructions that are listed here.

Harry said...

Thank you so much for this blog, If you are not receiving emails on your POP3(Post Office Protocol version 3) account in Outlook 2016, check the internet connection first and restart your Outlook application. Close all other running applications running on your computer. Check if you are using the obsolete OS version.

Watson said...

Thanks a lot for this awesome one..! The brother mfc j6945dw scan to email function can be done following the procedure press the settings icon on the control pannel's LCD screen navigate to all settings and select print reports choose network configuration from this list, this is the basic functions if want to know more about this visit this site.

Femina said...

Thanks a lot for this blog..! Windows update error code 8007000e on your computer this is simple to fix an easy way of methods, some of the methods are listed below if you want to know about this error code visit here also solve the related error codes.

Tinny said...

Thank you so much for this awesome blog I never seen like this blog, Here I wanna say about windows 10 support and configuretion set up all of the users want to configure their system it is so simple to you while you refer this page and get fix your queries in a single steps.

Maddy said...

Awesome, Informative blog thank you so much for this blog, Want to tell something about the IMAP email server software, Email is one of the familiar communication models to people. So we need to configure up to date how it could be done here is the steps to do that.

Reeta said...

Wow, superb, thank you so much, Brother MFC-J6945DW is an Inkjet printer that can print, copy, scan, and fax. It comes with a touchscreen control panel, Auto Document Feeder(ADF), and a paper tray that can hold up to 250 sheets. The print head should be cleaned with proper guidance to get better print quality. You can check the nozzle pattern on the quality check sheet to determine the printing qualities of your Brother Mfc j6945dw Print Head.

Christaniya Jeniphar said...

Thank you so much for this blog, certain PS's enabled on windows 10 come with SIM cards that allow you to connect to a mobile network and configure cellular settings in windows 10. This means that you can get over a network wherever you have a cellular signal.

Jackson said...

Thank you so much for this giving blog, Here I want to say about the brother MFC j6945dw printer wired setup. if you want to know about this printer please refer to my site.

Sumit Kumar said...

Quickbooks error 41

Quickbooks Login error

Quickbooks payroll update

Quickbooks error code 1402

Quickbooks online login error

Mr Frudo said...

i visit your blog oftenly i would be thankful if you can write something reagrding

Mobile Price in Pakistan
or
Air Charter Service

Sumit Kumar said...

Quickbooks error 9999
Quickbooks payroll error 15102
Quickbooks error code 15102
Error code 15102 Quickbooks
Quickbooks 15102 error

Sumit Kumar said...

Unlock Extratorrent
Extratorrent and Mirror sites
Extratorrent unlock
ET Proxy Sites

Extratorrent Proxy websites

Sumit Kumar said...

unblock Extratorrent
Unlock the extratorrent

Sophia Miller said...

Looking how to reinstall firmware on netgear router, visit on Check this Blog

primevideocommytv said...


Just head on over to www.amazon.com/mytv enter code and adhere to the on-screen guidelines. Simply go to the Amazon Instant Video application on your LG TV or Blu-beam Player and afterward Prime Instant Video to begin viewing.
Read more…

Printer News said...

Thank you for sharing this blog, Also, Get more guidelines on our website check it.
Canon Photo Printer Setup|| Canon Pixma Setup|| Canonmx922 Setup|| Ij Start Canon Setup|| Usa Canon Printer Setup|| Canon Pixma Printer Setup|| Ij Start Canon Setup||

Kale Johnson said...

If you wish to know how do I connect my HP Deskjet 2652 to wifi, then read ahead. You need to know the network name and password before you go ahead with the connection process. Also, ensure that there is a stable internet connection. Go to the Control Panel of your printer and press the Wireless button. Now, wait for the Wireless light to blink. This confirms that the wireless function is working properly. Also, make sure that your computer and printer are on the same wireless network. Install the driver when you are asked to install it. Don’t attach any USB cables to your PC. Choose “Printer” by going to “Drivers and printers” and establish a connection.

tanuhealthdoctor said...

thanks for showing indoor games for kids we will try a few although. Sharing appreciated this story
this website

Unknown said...

Nice Blog...Thanks for sharing. Please also check my some of blog

Why is it necessary to access the Huawei router admin login?

Create a Guest Network on the TPLink AC1200 WiFi Router

USB LED Indicates Red Light Of Tplink MiFi Router

Orange Light On Belkin N450 N+ Router

PlayStation 5 Not Connecting To WiFi Of Netgear XR500 Router

Trouble Finding the Synology Router RT2600ac

Laptop Not Connecting To Dlink Gigabit WiFi Router

jhon wicky said...

it's really very good colourist logo

Mobile mall said...

That is an great web Alex Art

Post a Comment