Page 1 of 5

FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Tue Oct 06, 2015 6:51 pm
by sirhc
BEFORE YOU BEGIN NOTE THIS PROCEDURE CHANGED DUE TO HARDWARE CHANGES 3/4/2022:
You may follow these instructions to attempt to recover from a failure if you wish, they will still work.
But you can also try to have it done automatically with our recovery tool check this post for details



So you had a power failure during a firmware upgrade or something happened and now your switch will not boot.

Follow these instructions to recover your switch by re-installing the firmware via the console port:

NOTE: In the example below I am using firmware v1.5.12 - PLEASE USE LATEST FIRMWARE VERSION AVAILABLE FOR RECOVERY

Do NOT use an older version of the firmware as some older versions of the firmware are not compatible with all models of switches.

You may use a "newer" version just change the text below regarding the file names.
Even if you had an older version before do NOT use it, USE the latest firmware.


You will need to download the file "recovery.tar.gz" which you can download here:
http://forum.netonix.com/firmware/recovery.tar.gz

Now you need a console connection to the switch that supports XMODEM file transfers.

In this exercise I am using HyperTerminal Private Edition (HTPE) which you can download here:
http://hyperterminal-private-edition-htpe.en.softonic.com/download

You will need to know the com port of your serial port.
You will also need a NULL Modem Serial Cable.
Null_Modem.jpg

Once you install HTPE configure it to connect to your switch via the console port with the following settings:

Baud: 115200
Data Bits: 8
Stop Bits: 1
Parity: None
Flow Control: XON/XOFF

Once you configure HTPE and connect to the switch console port you should come to a Linux style prompt of the switch or the boot loader prompt "RedBoot >".

If you are at the RedBoot > prompt wrote:< Copy and paste this line >
Code: Select all
fis load -d linux_recovery


Now type "go" and Press [Enter]

After you see the "i2c_vcoreiii i2c_vcoreiii: i2c bus driver on IRQ 19" message hit ENTER and you should have a Linux prompt.


< Copy and paste these 2 lines in>
Code: Select all
 
cd /tmp
rx recovery.tar.gz
 


< Use X-Modem to send the recovery.tar.gz - THIS TAKES A FEW MINUTES>

Press [Enter]

< Copy and paste this line in>
Code: Select all
 
tar -xzf recovery.tar.gz


Press [Enter]

< Copy and paste this line in to tell the switch to receive the firmware via XMODEM >
Code: Select all
 rx wispswitch-1.5.12.bin
 


< Use XMODEM in HTPE to upload firmware file - THIS TAKES 75+/- MINUTES >

Press [Enter]

< Copy and paste these lines in >
Code: Select all
 
tar -xjf wispswitch-1.5.12.bin
FISDIR="FIS directory"
REDUNDANT_FISDIR="Redundant FIS"
REDBOOT_CONFIG="RedBoot config"
if [ -n "`dmesg|grep mt25ql512a`" ]; then
cp fisdir_mt25ql512a fisdir
FISDIR="FIS directory 512"
REDUNDANT_FISDIR="Redundant FIS 512"
REDBOOT_CONFIG="RedBoot config 512"
fi
./mtd -p -F linux write kernel.img linux
./mtd -q write fisdir "$FISDIR"
./mtd -q write fisdir "$REDUNDANT_FISDIR"
./mtd -p write rootfs.img rootfs
./mtd -q write redboot_config "$REDBOOT_CONFIG"
reboot


NOTE: Once you paste this in you will need to wait awhile, do NOT rush it, let it do it's thing.

Press [Enter]

You are done!

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Tue Feb 09, 2016 10:49 am
by nasked
Hi:

I have a Netonix KO. I followed all steps but i find this error:


sw1tch@SW-Villena:/# cd /tmp
sw1tch@SW-Villena:/tmp# rx recovery.tar.gz
Csw1tch@SW-Villena:/tmp#
sw1tch@SW-Villena:/tmp# tar -xzf recovery.tar.gz
sw1tch@SW-Villena:/tmp# for i in `cat /proc/switch/status | grep -v Down | cut -
b 1-2`; do ./switch -t $i; done
cat: can't open '/proc/switch/status': No such file or directory
I need help.

Thanks

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Tue Feb 09, 2016 12:17 pm
by nasked
Eureka....

I come back to life Netonix. :-)
I follow steps and install firmware bin and no problem....
but i think you must check problem with recovery.tar.gp step....

Thanks

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Sun Feb 04, 2018 9:37 pm
by marotequiroga
Hi, I'm from Argentina, excuse my translation.

I suffered a power cut while updating the firmware of my netonix 8-150, now I accessed RS232 with windows using putty, the prompt on my computer says:

admin @ NetonixSwitch: /

As I do to load the files, recovery and the corresponding firmware which I have already downloaded and is the last version.

Thank you very much

Francisco

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Mon Feb 05, 2018 9:15 am
by Julian
Leave the console port plugged in, and remove power and reapply. Press control+C when prompted to break boot sequence, and then follow the instructions above, you should be fine.

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Fri Feb 16, 2018 12:01 am
by jagman2020
Hi,
I have a WS-8-150-DC and during a firmware upgrade it either just stopped or the power dropped from a battery that we did not know was faulty..
Either way when power is applied i get a green light but nothing else..

I have a serial cable and have followed the instructions but i just get a flashing cursor.. Not words no nothing..

Any ideas?

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Fri Feb 16, 2018 9:22 am
by Julian
jagman2020 wrote:Hi,
I have a WS-8-150-DC and during a firmware upgrade it either just stopped or the power dropped from a battery that we did not know was faulty..
Either way when power is applied i get a green light but nothing else..

I have a serial cable and have followed the instructions but i just get a flashing cursor.. Not words no nothing..

Any ideas?


In this state, your device is not field recoverable, please RMA.

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Fri Feb 16, 2018 6:23 pm
by sirhc
jagman2020 wrote:Hi,
I have a WS-8-150-DC and during a firmware upgrade it either just stopped or the power dropped from a battery that we did not know was faulty..
Either way when power is applied i get a green light but nothing else..

I have a serial cable and have followed the instructions but i just get a flashing cursor.. Not words no nothing..

Any ideas?


I would make sure your console cable works with another Netonix switch first.

So many people use the wrong cable or software or settings

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Tue May 01, 2018 9:34 pm
by jrobles
some help,

@OpenWrt:/tmp# tar -xjf wispswitch-1.4.9_2.bin
tar: bunzip error -2
tar: short read
and nothing!

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Posted: Wed Jul 25, 2018 11:39 am
by aerickson
Is there a solution for the WS-6 Mini because it does not have a Console Port?