Contents
OpenWrt is free software, provided AS-IS under the terms of the GNU General Public License. We expect that you are knowledgeable about GNU/Linux and basic networking concepts, before you install OpenWrt on your router. Support may be provided on a voluntary basis by developers and fellow users, but support is not guaranteed.
This page covers general instructions. Device-specific instructions can be found on that device's page on the TableOfHardware.
Supported hardware
See TableOfHardware.
Choosing the right firmware
If you're new to OpenWrt, you'll probably want the latest release, Kamikaze, available here:
The general method for picking the right image is visiting the TableOfHardware, then matching the "Platform & Frequency" of your device with the image you're downloading. Sometimes, the "Status" column will have additional for your device, such as building its image or device-specific installation instructions.
If there isn't a pre-built image for your device, follow the OpenWrtDocs/BuildingKamikazeHowTo instructions to build a custom image.
The legacy White Russian release is also available, but Kamikaze is strongly encouraged.
[OpenWrtDocs/WhiteRussian/Distribution]
Any bugs in the firmware should be reported via the ticket system here.
TRX vs. BIN
The firmware files are shipped as either "trx" or "bin" files. The bin file is nothing more than a trx file with additional information added to make it compatible with the vendor's upgrade utilities. You should only use the bin files when you cannot use the trx files directly.
openwrt-brcm-2.4-<type>.trx
This is the firmware in raw format, exactly as it will be written to the flash. This format is used when upgrading from within OpenWrt or during the initial install on one of the following:
openwrt-wrt54g-<type>.bin; openwrt-wrt54gs-<type>.bin; openwrt-wrt54gs_v4-<type>.bin; openwrt-wrtsl54gs-<type>.bin
- This is the exact same as the trx file above, with one exception -- a small header has been added to the start of the file, marking it as a valid upgrade for Linksys models. Supported models:
openwrt-wrt54g-<type>.bin
Linksys WRT54G (v1.0, v1.1, v2.0, v2.2, v3.0, v4.0)
openwrt-wrt54gs-<type>.bin
Linksys WRT54GS (v1.0, v1.1, v2.0, v3.0)
openety-wrt54g3g-<type>.bin
openwrt-wrt54gs_v4-<type>.bin
openwrt-wrtsl54gs-<type>.bin
- This is the exact same as the trx file above, with one exception -- a small header has been added to the start of the file, marking it as a valid upgrade for Linksys models. Supported models:
openwrt-wa840g-<type>.bin; openwrt-we800g-<type>.bin; openwrt-wr850g-<type>.bin
- This is also a trx file, but with a Motorola header added to the start of the file, making it a valid firmware file for a Motorola device.
There are 3 trx files, found in the micro, pptp and bin directories explained above. Size restrictions aside, it doesn't matter which directory you pick, although if your device only has 2M of flash you will need to use micro.
After downloading the firmware image you should make sure that the file is not corrupt. This can be verified by comparing the md5sum from your downloaded image with the md5sum listed in the md5sums file found in the download directory. For win32 platforms use md5sums.exe for GNU/Linux systems use the md5sum command.
Installing OpenWrt
There are multiple ways to reflash the firmware, we will explain each method below. You can use any method, the end result will be the same. After reflashing, the device will automatically reboot into the new firmware.
If you are not happy with OpenWrt, you can always reinstall your original firmware. Please be sure you have it downloaded and saved on your PC.
We strongly suggest print a copy of OpenWrtDocs/Troubleshooting in case you have any trouble with the install
via vendor supplied web interface
This is the easiest method, Open your web browser and use the firmware upgrade page on your device to upload the OpenWrt firmware.
You should use HTTP rather than HTTPS for the firmware upgrade.
via tftp
If you're being extremely cautious or are attempting to reflash from a failed upgrade, you can use tftp to install the firmware. This method is explained in detail on the OpenWrtViaTftp page.
Note: some models have additional requirements, please refer to the CategoryModel page for documentation specific to your router model.
via CFE
If you already have the serial cable, you'll know how to do it, nevertheless... go OpenWrtDocs/Installing/CFE
via JTAG
It's not recommended to flash the kernel image via jtag, as it will take more than 2 hours, but it is possible OpenWrtDocs/Installing/JTAG
via the OpenWrt commandline
Reflashing OpenWrt will overwrite the filesystem, erasing all previous applications and data. You are strongly urged to back up any changes you may have made to the system.
mtd -r write firmware.trx linux
- For models low on memory (8MB), the firmware can be flashed directly from a web site.
Do not use this unless absolutely necessary. A dropped connection will result in a partially flashed router. You have been warned.
wget http://www.somesite.com/firmware.trx -O - | mtd -e linux -r write - linux
What's Next?
Begin by logging in with telnet to 192.168.1.1 and setting a password. Kamakaze users will then want to see OpenWrtDocs/KamikazeConfiguration.