WR Switch: How-To Flash a WR Switch
THIS HOWTO IS DEPRECATED
Introduction
Most importantly, you should the WRS manual. For version 4.2, see
here.
Basically, all you need to do is to place a tarball containing the new firmware into a specific folder on the switch. It is almost like flashing an Android based device.
Flashing
The following must be done.
- Get tarball with firmware from ohwr
- Move tarball to WRS
- logon to WRS
- check stuff in folder
/update
. In case there is another old tar file, rename the old file so that the update procedure will not recognize it
- check version of switch using
wrsw_version
- version >= 4.1: Use scp to put the firmware as tarball
wrs-firmware.tar
to the folder /update
.
- version = 4.0: Consult the manual and follow the instructions. You need to do stuff like redirecting output to a console in order to avoid bricking.
- Reboot the WRS
- Logon and make sure flashing was successful by using the command
wrsw_version
.
- Take care about switch config. The whole config is contained in a file
/wr/etc/dot-config
.
- We have prepared two config files
- on the WRS, cd to folder /wr/etc and rename the actual
dot-config
.
- use scp to copy the appropriate config file to
/wr/etc/dot-config
.
- Reboot the WRS
- Logon and make sure everything is fine
Just in Case: Creating a Configuration File
Logon to the WRS, cd to folder /wr/etc and make a backup of the existing file
/wr/etc/dot-config
(just to be sure). Create your own config by typing "make" and follow the procedure. For creating the files above, keep all values as default except the following ones
- NTP server ->
192.168.16.10
- Remote syslog server ->
140.181.134.178
(? I am not quite sure this is correct)
- Temperature PSL ->
60
- Temperature PSR ->
60
dot-config for bc
...
# CONFIG_TIME_GM is not set
# CONFIG_TIME_FM is not set
CONFIG_TIME_BC=y
...
dot-config for gm
CONFIG_TIME_GM=y
# CONFIG_TIME_FM is not set
# CONFIG_TIME_BC is not set
...
--
DietrichBeck - 18 Dec 2015