Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:provider_mirror [2016/01/19 13:30] (current)
Alexander created
Line 1: Line 1:
 +====== Firmware update server for TVIP mediacenters ======
  
 +TVIP Mediacenters use HTTP protocol for automatic firmware update download.
 +
 +===== Update server directory structure =====
 +
 +STB requests updates using the following URL template.
 +<​code>​
 +http://​tvipupdate.net/​stb/<​model>/<​OS>/<​update_type>/​tvip_firmware.ota.zip
 +</​code>​
 +Где:
 +  * <​model>​ - STB model (Like: s410, s500, s412)
 +  * <OS> - OS type (linux/​linux-qt/​android)
 +  * <​update_type>​ - Firmware update type (release/​beta)
 +  ​
 +Example: <​nowiki>​http://​tvipupdate.net/​stb/​s410/​linux-qt/​release/​tvip_firmware.ota.zip</​nowiki>​
 +
 +Firmware version information is located inside "​tvip_firmware.info"​ file in the same directory:
 +<​code>​
 +http://​tvipupdate.net/​stb/<​model>/<​OS>/<​update_type>/​tvip_firmware.info
 +</​code>​
 +This file contains just firmware vesion number/code that is currently avaliable for this update type.\\
 +STB compares this version with installed version. If versions are different, "​Update available"​ window is displayed.\\
 +
 +===== Update server selection algorithm =====
 +By default, firmware updates are checked from [[http://​tvipupdate.net]] server. Operator can override this server using [[provisioning|provisioning]] or  [[dhcp_options|special DHCP options]].\\
 +
 +
 +//**Update server is selected using the following priorities:​**//​
 +
 +**OS Linux:**
 +  - /​var/​tvip/​update_server - the highest priority - set up over telnet access.
 +  - /​var/​tvip/​update_server.prov - [[provisioning|provisioning]] address.
 +  - /​var/​tvip/​update_server.dhcp - [[dhcp_options|DHCP]] provided address.
 +  - /​etc/​default_update_server - firmware default.
 +
 +**OS Android:**
 +  - /​data/​data/​tv.tvip.app/​files/​update_server - the highest priority - set up over root-adb access.
 +  - /​data/​data/​tv.tvip.app/​files/​update_server.prov - [[provisioning|provisioning]] address.
 +  - /​etc/​default_update_server - firmware default.
 +\\
 +\\
 +  * All updates are always accessible from the backup update server (located on a different ip-address):​ //​update.tvip.ru//​
 +  ​
 +===== Local update server setup  =====
 +
 +You can use any Web-server that can serve static files (Apache,​nginx,​lighttpd) ​
 +\\
 +Update can be syncronized over //rsync//.
 +
 +Use the following rsync command:
 +<​code>​
 +rsync -P --timeout=1800 -aWvH --stats --force --delete --delete-after --exclude=prov* rsync://​rsync.netsol.su/​update_netsol/​ /​var/​www/​tvipupdate.net
 +</​code> ​
 +
 +It is recommended to rsync every 24 hours.