<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
<title>OpenWrt - Important Knowledge</title>

<h1>OpenWrt - Important Knowledge</h1>

2011-02-19<br />
by Gernot WALZL

OpenWrt (<a href="http://openwrt.org/">http://openwrt.org/</a>)
is a custom GNU/Linux based firmware for network routers.

<h2>Enable boot_wait</h2>

After flashing a custom linux firmware, it is <b>HIGHLY RECOMMENDED</b>
to enable boot_wait.
root@OpenWrt:~# nvram set boot_wait=on
root@OpenWrt:~# nvram get boot_wait     # just to confirm, should respond "on"
root@OpenWrt:~# nvram commit            # takes a few seconds to complete

In case of an emergency, you should be able to easily recover a broken device
via it's bootloader using TFTP to flash another firmware image.

<h2>Recover a broken device</h2>

The bootloader always sets as the devices IP Address.

<li>Remove power cord of the WRT device.</li>
<li>Run TFTP on a computer inside the LAN.<br />
The network device of this computer has to be configured to reach
The WRT device will accept correct binary (*.bin) images only.
$ tftp
tftp> binary
tftp> rexmt 1
tftp> timeout 60
tftp> trace
tftp> put openwrt-wrt54g-squashfs.bin
<li>Plug in power cord. It will take approximately 5 minutes until
the new firmware is flashed.</li>