FIRMWARE RECOVERY VIA CONSOLE PORT

DOWNLOAD THE LATEST FIRMWARE HERE
User avatar
sirhc
Employee
Employee
 
Posts: 7347
Joined: Tue Apr 08, 2014 3:48 pm
Location: Lancaster, PA
Has thanked: 1597 times
Been thanked: 1317 times

FIRMWARE RECOVERY VIA CONSOLE PORT

Tue Oct 06, 2015 6:51 pm

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!
Support is handled on the Forums not in Emails and PMs.
Before you ask a question use the Search function to see it has been answered before.
To do an Advanced Search click the magnifying glass in the Search Box.
To upload pictures click the Upload attachment link below the BLUE SUBMIT BUTTON.

User avatar
nasked
Member
 
Posts: 38
Joined: Thu Sep 10, 2015 1:00 pm
Location: Spain
Has thanked: 2 times
Been thanked: 3 times

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Tue Feb 09, 2016 10:49 am

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

User avatar
nasked
Member
 
Posts: 38
Joined: Thu Sep 10, 2015 1:00 pm
Location: Spain
Has thanked: 2 times
Been thanked: 3 times

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Tue Feb 09, 2016 12:17 pm

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

marotequiroga
Member
 
Posts: 6
Joined: Thu Sep 28, 2017 7:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Sun Feb 04, 2018 9:37 pm

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

Julian
 

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Mon Feb 05, 2018 9:15 am

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.

jagman2020
Member
 
Posts: 17
Joined: Wed Nov 01, 2017 5:28 pm
Has thanked: 2 times
Been thanked: 3 times

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Fri Feb 16, 2018 12:01 am

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?

Julian
 

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Fri Feb 16, 2018 9:22 am

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.

User avatar
sirhc
Employee
Employee
 
Posts: 7347
Joined: Tue Apr 08, 2014 3:48 pm
Location: Lancaster, PA
Has thanked: 1597 times
Been thanked: 1317 times

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Fri Feb 16, 2018 6:23 pm

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
Support is handled on the Forums not in Emails and PMs.
Before you ask a question use the Search function to see it has been answered before.
To do an Advanced Search click the magnifying glass in the Search Box.
To upload pictures click the Upload attachment link below the BLUE SUBMIT BUTTON.

jrobles
Member
 
Posts: 3
Joined: Wed May 11, 2016 5:34 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Tue May 01, 2018 9:34 pm

some help,

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

aerickson
Member
 
Posts: 7
Joined: Wed Jan 11, 2017 5:42 pm
Has thanked: 0 time
Been thanked: 1 time

Re: FIRMWARE RECOVERY VIA CONSOLE PORT

Wed Jul 25, 2018 11:39 am

Is there a solution for the WS-6 Mini because it does not have a Console Port?

Next
Return to Hardware and software issues

Who is online

Users browsing this forum: No registered users and 22 guests