Table of Contents

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.

http://tvipupdate.net/stb/<model>/<OS>/<update_type>/tvip_firmware.ota.zip

Где:

Example: http://tvipupdate.net/stb/s410/linux-qt/release/tvip_firmware.ota.zip

Firmware version information is located inside “tvip_firmware.info” file in the same directory:

http://tvipupdate.net/stb/<model>/<OS>/<update_type>/tvip_firmware.info

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 or special DHCP options.

Update server is selected using the following priorities:

OS Linux:

  1. /var/tvip/update_server - the highest priority - set up over telnet access.
  2. /var/tvip/update_server.prov - provisioning address.
  3. /var/tvip/update_server.dhcp - DHCP provided address.
  4. /etc/default_update_server - firmware default.

OS Android:

  1. /data/data/tv.tvip.app/files/update_server - the highest priority - set up over root-adb access.
  2. /data/data/tv.tvip.app/files/update_server.prov - provisioning address.
  3. /etc/default_update_server - firmware default.



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:

rsync -P --timeout=3000 -aWvH --stats --force --delete --delete-after --exclude=prov* rsync://rsync.netsol.su/update_netsol/ /var/www/tvipupdate.net

It is recommended to rsync every 24 hours.