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
Где:
- <model> - STB model (Like: s410, s500, s412)
- <OS> - OS type (linux/linux-qt/android)
- <update_type> - Firmware update type (release/beta)
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:
- /var/tvip/update_server - the highest priority - set up over telnet access.
- /var/tvip/update_server.prov - provisioning address.
- /var/tvip/update_server.dhcp - 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 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:
rsync -P --timeout=1800 -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.