Difference between revisions of ":Preparing Hardware/10/en"

From meteobridge
Jump to: navigation, search
(Importing a new version from external source)
 
(Importing a new version from external source)
 
(2 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
fi
 
fi
 
</pre>
 
</pre>
The script needs to be called with the flash update file [http://www.meteohub.de/files/meteobridge-wl-330n3g-v1.2.sys meteobridge-wl-330n3g-v1.2.sys] as parameter. Please execute the script as root, otherwise "ifconfig" and "tftp" will not do or will ask for root password. "ifconfig" sets a virtual ethernet adapter with IP 192.168.1.20 on your Linux box, which is the IP the router expects to get the firmware update from.
+
The script needs to be called with the flash update file [http://connect.meteobridge.com/files/meteobridge-wl-330n3g-v1.2.sys meteobridge-wl-330n3g-v1.2.sys] as parameter. Please execute the script as root, otherwise "ifconfig" and "tftp" will not do or will ask for root password. "ifconfig" sets a virtual ethernet adapter with IP 192.168.1.20 on your Linux box, which is the IP the router expects to get the firmware update from.

Latest revision as of 22:15, 27 January 2018

Flashing via TFTP on Linux

TFTP update does not need any additional software installed, your Linux already has all you need. Flashing is very straight forward, just execute the script below.
#!/bin/sh
#
if [ "$1" = "" ]
then
  echo "error: flash sys file missing as parameter"
  exit 1
else
  echo "power cycle WL-330N3G with button pressed and wait"
  echo "until power LED does go off and on again. Then "
  echo "release button and press <RETURN>."
  read a
  echo "start flashing..."
  ifconfig br0:0 192.168.1.20
  echo -ne "binary\ntrace\nrexmt 1\nput $1\nquit\n" | tftp 192.168.1.1
  echo "...transfer done."
  echo "Wait until unit does reboot (will take at least 2 minutes). "
  echo "Do not remove from power during flash process!"
fi

The script needs to be called with the flash update file meteobridge-wl-330n3g-v1.2.sys as parameter. Please execute the script as root, otherwise "ifconfig" and "tftp" will not do or will ask for root password. "ifconfig" sets a virtual ethernet adapter with IP 192.168.1.20 on your Linux box, which is the IP the router expects to get the firmware update from.