#!/bin/sh
export DATE="14.9.2008";SCRIPT=${0#/rom}
export TITLE="Admin: Firmware"
. ${SCRIPT%/*}/cgi-bin-pre.sh
cat< Attention: If you start
the device, it will listen on the IP address 192.168.1.1 for approx. 5 seconds
for a firmware upload via TFTP. If the uploaded firmware is dysfunctional,
the devices can be restored using this mechanism. Connect the PC to the
device using one of the network jacks [1-4]. You can used crossed network
leads as well as straight (uncrossed) network leads. Read
on under Upload Firmware (see below). The network
jack of the PC is normally equipped with a connection LED. The LED will
light up if the network connection is up. After switching on the device,
this LED should light up after a few seconds. On the device itself, one of
the four LEDs should light up after some seconds also. This behavior can
be verified by removing and reinserting the mains plug of the device.
After this test do the following steps: The upload should be
finished after approx. 5 seconds without errors. The devices is
signaling the update process by blinking the power LED. The update process
should be finished after 2 minutes at the latest. The device will
startup the new firmware automatically. The
firmware upload was aborted. Please upload a
suitable *.bin or *.trx firmware file. Firmware
upload was cancelled.
Firmware
file:
Windows XP
192.168.1.2
. Accept the default netmask of 255.255.255.0
.
Leave other settings on their current values.cd
command. Example: Enter cd /d
x:\download\firmware
and confirm with the enter key.tftp
-i 192.168.1.1 put openwrt-g-freifunk-%VERSION%-en.bin
Linux
cd
command. Example: Enter cd /tmp/download/firmware
and
confirm with the enter key.ifconfig eth0
192.168.1.2
tftp 192.168.1.1
. On the TFTP
command prompt, you need to enter two successive commands. Enter binary
and rexmt 1
put openwrt-g-freifunk-%VERSION%-en.bin
Upload Firmware
$ffout
Writing
the $ffout firmware file to flash memory. Please wait...
EOF
echo -n "
"
firmware-burn "$ffout"
echo "
"
;;
*)
rm -f "$ffout"
cat<
Firmware
file has wrong header.
No firmware file
received.
Explanation: The OpenWRT command mtd will possible overwrite the read-write partition OpenWrt. In failsafe mode, this partition is not used. In read-only mode, this partition will be mounted read-only. The following partitions exist:
$(cat /proc/mtd)EOF fi . ${SCRIPT%/*}/cgi-bin-post.sh