Actions

Difference between revisions of "Turbine Stations - Image recovery"

From Zenitel Wiki

(Preparation of the optional USB to Serial converter cable)
(Phase one - Program the bootloader prepared for auto IP/tftp upgrade)
 
(78 intermediate revisions by the same user not shown)
Line 1: Line 1:
This article describes how the flash image of a ("Compact" and "Extended" versions) can be recovered.  
+
This article describes how to flash a new image on a Zenitel Turbine device ("Compact" and "Extended" versions, based on iMX28 processor).  
  
= Requirements =
+
== Requirements ==
 
* Download and install [[Downloads#Turbine_Test_and_Demo_Application|VS-Tools.msi]]. The PC application '''VS-ProductUpgrade''' is a part of this package. This software runs both a TFTP server, and USB boot of target.  
 
* Download and install [[Downloads#Turbine_Test_and_Demo_Application|VS-Tools.msi]]. The PC application '''VS-ProductUpgrade''' is a part of this package. This software runs both a TFTP server, and USB boot of target.  
 
* A DHCP server handing out TFTP address to Turbine board using DHCP Option 66 (TFTP server address)
 
* A DHCP server handing out TFTP address to Turbine board using DHCP Option 66 (TFTP server address)
Line 7: Line 7:
 
* Access to the physical circuit board.
 
* Access to the physical circuit board.
  
[[File:USBMiniB.jpg|left|500px|USB cable with Mini B plug|frameless]]
+
[[File:USBMiniB.jpg|thumb|left|500px|USB cable with Mini B plug]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
  
== Optional requirements ==
+
== Setup and connections ==
The process can be run without these, but it helps monitoring the process.
+
[[File:TurbineRecovery1.PNG|thumb|left|500px|Principle connection. The upper cable ("USB to serial, TTL level") is optional]]
* A terminal emulator program. PuTTY is recommended
 
* A USB to Serial cable for serial connection from the PC to the Turbine Compact board
 
 
 
== Preparation of the optional USB to Serial converter cable ==
 
 
 
The Turbine station has a TTL level serial interface to which we can connect during the upgrade process. For this purpose a USB to Serial converter cable can be used. Recommended cable is [http://uk.farnell.com/ftdi/ttl-232r-3v3/cable-usb-to-ttl-level-serial-conv/dp/1329311?Ntt=FTDI+-+TTL-232R-3V3+-+CABLE TTL-232R-3V3], available from Farnell.
 
 
 
This cable needs to be slightly modified as per photo below:
 
 
 
* Pin 1 = Black (GND)
 
* Pin 2 = Orange (Turbine RX)
 
* Pin 3 = Yellow (Turbine TX)
 
 
 
[[File:USB Serial orig.PNG|thumb|left|200px|Original cable]]
 
 
 
 
 
[[File:USB Serial mod.PNG|thumb|left|200px|Modified cable]]
 
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
 +
=== Optional connection===
 +
The process can optionally be monitored via the serial port of the board. This is not required, but could be useful for troubleshooting if issues appear during the process. You would need:
 +
* A terminal emulator program. PuTTY is recommended
 +
* A USB to Serial cable for serial connection from the PC to the circuit board
 +
* See [[#Preparation of the optional USB to Serial converter cable|Preparation of the optional USB to Serial converter cable]] if you want to use this option
  
Insert the USB connector in the PC. The unit will now install itself. Make a note of which COM port number it is assigned to. You will also find it in the Device Manager. Baud rate: 115200.
+
== Prepare the "VS-ProductUpgrade" application ==
 
+
*Make sure no other TFTP server is running on the PC.
[[File:USBSerialPort.PNG|thumb|left|500px|USB Serial Port in the Device Manager]]
+
*Launch '''VS-ProductUpgrade''' application from Windows start menu ('''Start''' > '''Vingtor-Stentofon''' > '''VS-ProductUpgrade''').
<br style="clear:both;" />
+
#Download the software image for [[Zenitel Devices based on iMX28]]. Image: [https://alpha.zenitel.com/downloads/vsft-prod-8.2.3.1.zip vsft-prod-8.2.3.1.zip]
 
 
= Setup and connections =
 
[[File:TurbineRecovery1.PNG|left|500px|frameless]]
 
<br style="clear:both;" />
 
 
 
 
 
= Prepare the VS-ProductUpgrade application =
 
*Make sure no other TFTP server is running on PC.
 
*Launch '''VS-ProductUpgrade''' application from Windows start menu.
 
#Download the software image for [[Zenitel Devices based on iMX28]]: [https://alpha.zenitel.com/downloads/vsft-prod-8.2.3.1.zip vsft-prod-8.2.3.1.zip]
 
 
#Load the software image using the '''Open Software Image Archive''' button.
 
#Load the software image using the '''Open Software Image Archive''' button.
 
#Activate tab '''Production Programming'''
 
#Activate tab '''Production Programming'''
 
#Insert input fields '''Operator Name''', '''Programming Device''' and '''Serial Number'''.  
 
#Insert input fields '''Operator Name''', '''Programming Device''' and '''Serial Number'''.  
 +
  
 
Your application should look something like below programming a TCIS-1 Station:
 
Your application should look something like below programming a TCIS-1 Station:
  
[[File:Upgrade application prepare.PNG|left|500px|frameless]]
+
[[File:Upgrade application prepare.PNG|thumb|left|700px|The VS-ProductUpgrade application]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Line 59: Line 38:
 
*The Operator Name can be anything (only used in production)
 
*The Operator Name can be anything (only used in production)
 
*Take care to select the correct Programming Device from drop down <br>
 
*Take care to select the correct Programming Device from drop down <br>
*To reselect Programming Device double click in the label Programming Device<br>
+
*To reselect Programming Device double click in the label "Programming Device"<br>
 
*If not in factory production you can disregard the mac address (only programmed once)
 
*If not in factory production you can disregard the mac address (only programmed once)
 
*Serial number needs to be 4-6 digits/characters and you need to <b>press tab key on your keyboard</b> after entering the serial to get the USB Boot Target button turn green }}
 
*Serial number needs to be 4-6 digits/characters and you need to <b>press tab key on your keyboard</b> after entering the serial to get the USB Boot Target button turn green }}
Line 68: Line 47:
  
  
== Example using "DHCP Server for Windows" ==
+
=== Example using "DHCP Server for Windows" ===
 
This is a simple and easy to use server that works good for this setup.
 
This is a simple and easy to use server that works good for this setup.
 
Note! make sure you are not connected to other networks while doing this.
 
Note! make sure you are not connected to other networks while doing this.
  
Download and install from: http://www.dhcpserver.de/cms/
+
* Download and install from: http://www.dhcpserver.de/cms/
 +
* Configure your computer with static ip 10.0.1.10.
 +
* Configure the DHCP config file
  
Configure your computer with static ip 10.0.1.10.
+
Example of config file '''dhcpsrv.ini'''
 
 
Example of config file dhcpsrv.ini
 
  
 
  [SETTINGS]
 
  [SETTINGS]
Line 105: Line 84:
 
  ROOT=C:\Programs\dhcpsrv2.5.2\wwwroot
 
  ROOT=C:\Programs\dhcpsrv2.5.2\wwwroot
  
{{Note|Notice that parameter NEXTSERVER is set to 10.0.1.10 which in this example is the computer running the VS-ProductUpgrade application. }}
+
{{Note|
 +
* ''Notice that parameter NEXTSERVER is set to 10.0.1.10 which in this example is the computer running the VS-ProductUpgrade application''.
 +
* ''Configure the ROOT path as required}}
 +
 
 +
* Start the DHCP Server by running the '''dhcpsrv.exe'''
  
= Prepare USB boot from PC =
+
[[File:DHCP Inst Start.PNG|thumb|left|400px|Install, then Start the DHCP Server]]
 +
<br style="clear:both;" />
 +
 
 +
== Prepare USB boot from PC ==
 
Use the USB Mini B plug cable.
 
Use the USB Mini B plug cable.
  
*Disconnect the Ethernet cable from the station (you might leave USB to Serial converter cable connected, so you can view progress on PuTTY)
+
*'''Disconnect''' the Ethernet cable from the station (you might leave USB to Serial converter cable connected, so you can view progress on PuTTY)
 
*Connect one end of the USB cable to the PC
 
*Connect one end of the USB cable to the PC
*Push the "'''Recovery button"''' on the station (switch S200), and keep it pressed for 5 sec while connecting the USB cable to the station (connector J2)
+
*Push and hold the "'''Recovery button"''' on the station (switch S200), and keep it pressed for 5 sec while connecting the USB cable to the station (connector J2 on "Compact, J3 on "Extended")
*The PC will indicate new USB Device
+
*The PC should indicate new USB Device
  
[[File:USBDeviceNew.PNG|thumb|left|300px|New USB device discovered]]
+
[[File:USB Device Discovered.PNG|thumb|left|500px|New USB device discovered by the PC]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
* Connect the Ethernet cable. Now you have the following setup: (The usb-to-serial cable is optional)
+
 
 +
* '''Connect''' the Ethernet cable to the Turbine station. Now you have the following setup: (The usb-to-serial cable is optional)
 
[[File:TurbineRecovery3.PNG|thumb|left|500px|Setup - ready to boot from PC]]
 
[[File:TurbineRecovery3.PNG|thumb|left|500px|Setup - ready to boot from PC]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
= Run USB recovery programming of device(s) =
+
<br>
 +
 
 +
== Run USB recovery programming of device(s) ==
 
When all above is prepared all is set to start the full clean programming of the device(s).
 
When all above is prepared all is set to start the full clean programming of the device(s).
== Phase one - Program the bootloader prepared for auto IP/tftp upgrade ==
+
=== Phase one - Program the bootloader prepared for auto IP/tftp upgrade ===
*In the prepared VS-ProductUpgrade Tool do press the big green button USB Boot Intercom Station
+
*In the prepared VS-ProductUpgrade Tool press the big green button '''USB Boot Target'''
*If serial cable connection you can also observe the progress and see status
+
* Watch the progress in the "TFTP Log/Output Console" window in the VS-ProductUpgrade Tool
*This programming will finish after just a couple of seconds. You will get a warning message - just ignore this message.
 
*Remove USB and Ethernet cable.
 
*You can now chose to go to phase two for this board, or continue for next board if you have many boards to re-program.
 
{{Note|To streamline the process first do phase one for all boards. Then do phase two with a number of boards connected to switch (phase two can run in parallel) }}
 
  
03.07.2018 09:45:26 - Starting transfer of file sti_boot
+
[[File:Image PhaseOne.PNG|thumb|left|300px|Output on "TFTP Log/Output Console"]]
03.07.2018 09:45:26 - Ended transfer of file sti_boot
+
<br style="clear:both;" />
03.07.2018 09:45:27 - Starting transfer of file sti_bareboxenv_prod
 
03.07.2018 09:45:27 - Ended transfer of file sti_bareboxenv_prod
 
03.07.2018 09:45:27 - Starting transfer of file sti_oftree <- imx28-st-compact.dtb
 
03.07.2018 09:45:27 - Ended transfer of file sti_oftree
 
03.07.2018 09:45:27 - Starting transfer of file tsu_status
 
  
<br>
+
*If serial cable is connected you can also observe the progress and see status in the terminal program
 +
*This programming will finish after just a couple of seconds. You might get a warning message "Sent and OTP programmed MAC differs. STOP and investigate". This message can be ignored.
 +
*'''Remove''' USB and Ethernet cable.
  
== Phase two - Run full tftp image upgrade ==
+
=== Phase two - Run full tftp image upgrade ===
 
*Have the prepared VS-ProductUpgrade running
 
*Have the prepared VS-ProductUpgrade running
*Connect any number of "phase one prepared" boards to the PoE switch (do not connect USB cable)
+
*Connect the "phase one prepared" board to the PoE switch (do not connect the USB cable)
*The upgrade should commence automatically, observe progress in Current Full Image Programming Status. This process takes a while, be patient.
+
*The upgrade should now start automatically. Observe the progress in the "TFTP Log/Output Console" window. This process takes a while (typically approx. 4 minutes), so be patient.
<br>
+
 
 +
[[File:Image PhaseTwo3.PNG|thumb|left|300px|Progress shown in the "TFTP Log/Output Console"]]
 +
<br style="clear:both;" />
 +
 
 +
* The process is finished when '''recovery successfully written to flash''' is displayed.
 +
 
 +
 
 +
The board will now reboot, and start in normal operational mode. The board can be accessed through its web interface.
 +
 
 +
 
 +
== Preparation of the optional USB to Serial converter cable ==
 +
 
 +
The Turbine station has a TTL level serial interface to which we can connect during the upgrade process. For this purpose a USB to Serial converter cable can be used. Recommended cable is [http://uk.farnell.com/ftdi/ttl-232r-3v3/cable-usb-to-ttl-level-serial-conv/dp/1329311?Ntt=FTDI+-+TTL-232R-3V3+-+CABLE TTL-232R-3V3], available from Farnell.
 +
 
 +
This cable needs to be slightly modified as per photo below:
 +
 
 +
* Pin 1 = Black (GND)
 +
* Pin 2 = Orange (Turbine RX)
 +
* Pin 3 = Yellow (Turbine TX)
 +
 
 +
[[File:USB Serial orig.PNG|thumb|left|300px|Original cable]]
 +
 
 +
 
 +
[[File:USB Serial mod.PNG|thumb|left|300px|Modified cable]]
 +
<br style="clear:both;" />
 +
 
 +
 
 +
Insert the USB connector in the PC. The unit will now install itself. Make a note of which COM port number it is assigned to. You will also find it in the Device Manager. Baud rate: 115200.
 +
 
 +
[[File:USBSerialPort.PNG|thumb|left|500px|USB Serial Port in the Device Manager]]
 +
<br style="clear:both;" />
  
== Final phase ==
 
3.07.2018 09:45:55 - Starting transfer of file sti_info.txt
 
03.07.2018 09:45:55 - Ended transfer of file sti_info.txt
 
03.07.2018 09:45:55 - Starting transfer of file sti-4.7.3.2_boot
 
03.07.2018 09:45:56 - Ended transfer of file sti-4.7.3.2_boot
 
03.07.2018 09:45:56 - Starting transfer of file sti-4.7.3.2_bareboxenv
 
03.07.2018 09:45:56 - Ended transfer of file sti-4.7.3.2_bareboxenv
 
03.07.2018 09:45:56 - Starting transfer of file sti-4.7.3.2_kernel
 
03.07.2018 09:45:58 - Ended transfer of file sti-4.7.3.2_kernel
 
03.07.2018 09:45:58 - Starting transfer of file sti-4.7.3.2_rootfs
 
03.07.2018 09:46:41 - Ended transfer of file sti-4.7.3.2_rootfs
 
03.07.2018 09:47:01 - Starting transfer of file tsu_status
 
Starting New Image Upgrade process
 
macaddress=00:13:CB:08:28:6A
 
tftp:Server OK
 
Image sti-4.7.3.2_boot downloaded and verified
 
Image sti-4.7.3.2_bareboxenv downloaded and verified
 
Image sti-4.7.3.2_kernel downloaded and verified
 
No ubifs image, checking for root.ubi image
 
Image sti-4.7.3.2_rootfs downloaded and verified
 
Image sti-4.7.3.2_boot succsessfully written to Flash
 
Image sti-4.7.3.2_boot succsessfully written to Flash
 
Image sti-4.7.3.2_bareboxenv succsessfully written to Flash
 
Image sti-4.7.3.2_kernel succsessfully written to Flash
 
Image sti-4.7.3.2_rootfs succsessfully written to Flash
 
  
{{note|When doing image recovery to 5.1.3.0, the station must be reset manually by typing "reset" and pressing Enter in the Putty command window of the serial connection}}
 
  
 
[[Category: Turbine - Restore Factory Defaults and Software Upgrade]]
 
[[Category: Turbine - Restore Factory Defaults and Software Upgrade]]

Latest revision as of 08:58, 21 June 2024

This article describes how to flash a new image on a Zenitel Turbine device ("Compact" and "Extended" versions, based on iMX28 processor).

Requirements

  • Download and install VS-Tools.msi. The PC application VS-ProductUpgrade is a part of this package. This software runs both a TFTP server, and USB boot of target.
  • A DHCP server handing out TFTP address to Turbine board using DHCP Option 66 (TFTP server address)
  • A USB Mini B plug cable.
  • Access to the physical circuit board.
USB cable with Mini B plug



Setup and connections

Principle connection. The upper cable ("USB to serial, TTL level") is optional


Optional connection

The process can optionally be monitored via the serial port of the board. This is not required, but could be useful for troubleshooting if issues appear during the process. You would need:

Prepare the "VS-ProductUpgrade" application

  • Make sure no other TFTP server is running on the PC.
  • Launch VS-ProductUpgrade application from Windows start menu (Start > Vingtor-Stentofon > VS-ProductUpgrade).
  1. Download the software image for Zenitel Devices based on iMX28. Image: vsft-prod-8.2.3.1.zip
  2. Load the software image using the Open Software Image Archive button.
  3. Activate tab Production Programming
  4. Insert input fields Operator Name, Programming Device and Serial Number.


Your application should look something like below programming a TCIS-1 Station:

The VS-ProductUpgrade application


Note icon
  • The Operator Name can be anything (only used in production)
  • Take care to select the correct Programming Device from drop down
  • To reselect Programming Device double click in the label "Programming Device"
  • If not in factory production you can disregard the mac address (only programmed once)
  • Serial number needs to be 4-6 digits/characters and you need to press tab key on your keyboard after entering the serial to get the USB Boot Target button turn green


Prepare the DHCP server

You can use any DHCP server, but you need to be able to configure DHCP option 66/Nextserver (TFTP server address) to point to the IP of the PC running VS-ProductUpgrade.


Example using "DHCP Server for Windows"

This is a simple and easy to use server that works good for this setup. Note! make sure you are not connected to other networks while doing this.

Example of config file dhcpsrv.ini

[SETTINGS]
IPPOOL_1=10.0.1.100-120
IPBIND_1=10.0.1.10
AssociateBindsToPools=1
Trace=1
DeleteOnRelease=0
ExpiredLeaseTimeout=3600
 
[GENERAL]
LEASETIME=86400
NODETYPE=8
SUBNETMASK=255.255.255.0
NEXTSERVER=10.0.1.10
ROUTER_0=10.0.1.1
 
[DNS-SETTINGS]
EnableDNS=0
 
[TFTP-SETTINGS]
EnableTFTP=0
ROOT=C:\Programs\dhcpsrv2.5.2\wwwroot
WritePermission=1

[HTTP-SETTINGS]
EnableHTTP=0
ROOT=C:\Programs\dhcpsrv2.5.2\wwwroot
Note icon
  • Notice that parameter NEXTSERVER is set to 10.0.1.10 which in this example is the computer running the VS-ProductUpgrade application.
  • Configure the ROOT path as required


  • Start the DHCP Server by running the dhcpsrv.exe
Install, then Start the DHCP Server


Prepare USB boot from PC

Use the USB Mini B plug cable.

  • Disconnect the Ethernet cable from the station (you might leave USB to Serial converter cable connected, so you can view progress on PuTTY)
  • Connect one end of the USB cable to the PC
  • Push and hold the "Recovery button" on the station (switch S200), and keep it pressed for 5 sec while connecting the USB cable to the station (connector J2 on "Compact, J3 on "Extended")
  • The PC should indicate new USB Device
New USB device discovered by the PC



  • Connect the Ethernet cable to the Turbine station. Now you have the following setup: (The usb-to-serial cable is optional)
Setup - ready to boot from PC



Run USB recovery programming of device(s)

When all above is prepared all is set to start the full clean programming of the device(s).

Phase one - Program the bootloader prepared for auto IP/tftp upgrade

  • In the prepared VS-ProductUpgrade Tool press the big green button USB Boot Target
  • Watch the progress in the "TFTP Log/Output Console" window in the VS-ProductUpgrade Tool
Output on "TFTP Log/Output Console"


  • If serial cable is connected you can also observe the progress and see status in the terminal program
  • This programming will finish after just a couple of seconds. You might get a warning message "Sent and OTP programmed MAC differs. STOP and investigate". This message can be ignored.
  • Remove USB and Ethernet cable.

Phase two - Run full tftp image upgrade

  • Have the prepared VS-ProductUpgrade running
  • Connect the "phase one prepared" board to the PoE switch (do not connect the USB cable)
  • The upgrade should now start automatically. Observe the progress in the "TFTP Log/Output Console" window. This process takes a while (typically approx. 4 minutes), so be patient.
Progress shown in the "TFTP Log/Output Console"


  • The process is finished when recovery successfully written to flash is displayed.


The board will now reboot, and start in normal operational mode. The board can be accessed through its web interface.


Preparation of the optional USB to Serial converter cable

The Turbine station has a TTL level serial interface to which we can connect during the upgrade process. For this purpose a USB to Serial converter cable can be used. Recommended cable is TTL-232R-3V3, available from Farnell.

This cable needs to be slightly modified as per photo below:

  • Pin 1 = Black (GND)
  • Pin 2 = Orange (Turbine RX)
  • Pin 3 = Yellow (Turbine TX)
Original cable


Modified cable



Insert the USB connector in the PC. The unit will now install itself. Make a note of which COM port number it is assigned to. You will also find it in the Device Manager. Baud rate: 115200.

USB Serial Port in the Device Manager