This is how you get CeroWrt running on top of the factory firmware on a WNDR3800 (or WNDR3700v2, if you can find one. Note - ONLY the WNDR3700*v2* is supported of the 3700 series. Do not attempt to use the WNDR3700 v1, v3, or v4: they will not work.) The WNDR3800 is still sold (July 2014), although it seems that mostly refurb units are available
NOTE: The fastest way to flash a router is to upload the factory cerowrt image via the default netgear web interface. You can reflash an already flashed-router using CeroWrt or OpenWrt via the gui interface and the “sysupgrade” image, but we strongly encourage unchecking the “preserve settings” box when doing so. The syntax of the configuration databases changes regularly.
You should take a backup before reflashing - the simplest way is to do a
scp -r root
the.router.ip.addess:/overlay@ which will copy all the
changed files so you can inspect them for differences from a clean
flash. Alternatively, use the config-cerowrt.sh script from
CeroWrtScripts
to re-configure your router repeatedly to a known good configuration
each time you flash it.
If you have trouble reflashing from the gui: The tftp method documented below always works…
Although the CeroWrt build process creates two firmware images, the truly supported firmware upgrade process is using TFTP to load the factory image with squashfs. Examples of suitable images for WNDR3800 and WNDR3700v2 are:
Temporarily remove your Ethernet port from Network Manager’s control. To do this:
Configure an ethernet port on your machine to 192.168.1.2. (command is usually ifconfig eth0 192.168.1.2⁄24); note that if you have an USB ethernet device, the device name may not be eth0, but something else entirely.
Connect port 1 on the router to the ethernet port of your computer (make sure you are connecting to the router’s ethernet port 1, not its WAN port!)
Power on the router and force into tftp mode using the following sequence:
Open terminal on your Linux box and type the following commands to flash the router
If you see “source port mismatch, check bypassedtimeout: retrying…“, this probably means that Network Manager has messed with your Ethernet port behind your back. Disable it, manually set the Ethernet port as before, and try again.
After you have successfully downloaded the image waiting at least 5 minutes is KEY; The router needs to rewrite a lot of flash which is very slow… If impatient, go for a walk, have some coffee… or do another router. After the tftp succeeds you can disconnect your laptop’s network cable with no issues, so this will speed your life up if you are doing multiple routers. Depending on quantum fluctuations, the router may or may not reset - you will see the light go solid green in this case…
A good indicator of completion is a steady green or yellow light for the port you cabled to, together with a steady green power light and steady green or blue wireless lights.
When you have successfully downloaded the image, hand the port back to Network Manager by repeating the steps give above for reaching the “Connect automatically” checkbox; check it, and apply the change.
To test the router’s function, Use Network Manager to attempt to make a wired connection via your Ethernet port. To do this:
(re)Enable dhcp on your machine, get a new address. (it should be in the 172.30.42.2-31 range). Or manually assign 172.30.42.11⁄27 It may take a while to get a DHCP address, and you may temporarily see a link-local (e.g. 169.254.x.x) address.
Continue reading the Final Setup Steps (below).
Power on the router and force into tftp mode using the following sequence:
Open terminal on mac and type the following commands to flash the router
After you have successfully downloaded the image waiting at least 5 minutes is KEY; The router needs to rewrite a lot of flash which is very slow… If you’re impatient, go for a walk, have some coffee… or do another router. After the tftp succeeds you can disconnect your laptop’s network cable with no issues, so this will speed your life up if you are doing multiple routers. Depending on quantum fluctuations, the router may or may not reset - you will see the light go solid green in this case…
A good indicator of completion is a steady green or yellow light for the port you cabled to, together with a steady green power light and steady green or blue wireless lights.
(re)Enable dhcp on your machine, get a new address - it should be in the 172.30.42.2-31 range. Or manually assign 172.30.42.11⁄27 It may take a while to get a DHCP address, and you may temporarily see a link-local (e.g. 169.254.x.x) address.
Continue reading the Final Setup Steps (below)
Install a tftp client. Windows 7 includes a basic tftp client, but it is not installed by default. To do this:
Download the firmware from the current release candidate. Get the “factory” image with squashfs.
Connect port 1 on the router to the ethernet port of your computer (make sure you are connecting to the router’s ethernet port 1, not its WAN port!)
Open a cmd.exe window and navigate to the directory with the downloaded firmware.
Prepare a command for running the tftp client with the correct parameters. Substitute the IP address and filename in the following example appropriately.
Power on the router and force into tftp mode using the following sequence:
Configure the ethernet port on your PC to a static IP address of 192.168.1.2. To do this:
Under the “General” tab that should have appeared in the “Internet Protocol Version 4 (TCP/IPv4) Properties” dialog, select the radio button “Use the following IP address:” and set the following:
Click on the “Ok” button.
Leave the property dialog for “Local Area Connection” open to make it easier to restore the interface to the original configuration.
You are now ready to upload the firmware to the router
Switch to the pre-configure command line in the “cmd.exe” window and run the tftp command. It should only take a couple of seconds to complete.
After you have successfully downloaded the image waiting at least 5 minutes is KEY; The router needs to rewrite a lot of flash which is very slow… If you’re impatient, go for a walk, have some coffee… or do another router. After the tftp succeeds you can disconnect your laptop’s network cable with no issues, so this will speed your life up if you are doing multiple routers. Depending on quantum fluctuations, the router may or may not reset - you will see the light go solid green in this case…
A good indicator of completion is a steady green or yellow light for the port you cabled to, together with a steady green power light and steady green or blue wireless lights.
Restore the PC network connection to use DHCP.
If everything went well, your PC should receive a lease from the DHCP server on the router. (It should be in the 172.30.42.2-31 range). Or manually assign 172.30.42.11⁄27 . It may take a while to get a DHCP address, and you may temporarily see a link-local (e.g. 169.254.x.x) address.
Continue reading the Final Setup Steps (below)
Point your Web browser at http://gw.home.lan If that doesn’t work, try http://172.30.42.1:81
Click on the ‘Administer’ Tab. You can safely ignore any SSL Errors from your browser: CeroWrt uses a self-signed SSL certificate. Proceed to login: the default username is ‘root’, the default password is ‘Beatthebloat’. You can also ssh in as root with that password, or continue using the web interface. If ssh is being refused, or the web interface doesn’t come up, it’s generally still rewriting flash. Be patient…
But if none of this works, power cycle the router and try again. If that doesn’t work, proceed to step 3 of the procedure for your computer to re-flash the router.
Connect the WAN port on the router to your ISP uplink and reboot the router.
Return to the Installation Guide for the next steps.
The following instructions will be helpful if you want to avoid the tftp install method. It assumes that you can ssh to the router and the sysupgrade utility is also installed in your router.