Загрузка основного ПО для MAG-100 осуществляется только по сети:
Опции DHCP для MAG100:
class "MAG100_boot" { match if (( option vendor-class-identifier="TeleTecMAG100boot")); filename "stb/100/uImage_mag100"; next-server 10.1.1.1; option root-path "10.1.1.1:/srv/stb/100/rootfs/"; }
Где:
filename «stb/100/uImage_mag100»;
- путь к ядру (протокол TFTP)option root-path «10.1.1.1:/srv/stb/100/rootfs/»;
- путь к корневой файловой системе (Протокол NFS)stalker_db
:stalker
пароль 1
mysql -u USER -pPASSWORD DATABASE < /path/TO/dump.SQL
Адрес портала можно указать в rootfs в файле /etc/stbparams
Примерное содержание файла stb_params
:
PORTAL_IP="10.1.1.1" PORTAL_1="stalker_portal/client" STAT_IP="" MASK_IP="" GATE_IP="" DNS_IP="" NTP_IP="" ITV_CH="" BRI="147" V_OUT="rca"
http://<your_ip_or_domain>/stalker_portal/
Пример конфига DHCP для Ubuntu 12.04
option ntp-servers 10.1.1.1; option domain-name-servers 10.1.1.1; authoritative; option subnet-mask 255.255.255.0; option routers 10.1.1.1; option log-servers 10.1.1.15, 10.1.1.16; default-lease-time 600; max-lease-time 7200; allow bootp; ########################## Space Teletec ################################## option space TeleTec; option TeleTec.update_url code 24 = text; option TeleTec.update_sboot code 25 = text; option TeleTec.update_ver code 26 = text; option TeleTec.update_mode code 27 = text; option TeleTec.portal_dhcp code 22 = text; option TeleTec.update_sboot_ver code 28 = text; option TeleTec.logo_x code 16 = integer 16; option TeleTec.logo_y code 17 = integer 16; option TeleTec.bg_color code 18 = integer 32; option TeleTec.fg_color code 19 = integer 32; option TeleTec.mcip code 3 = ip-address; option TeleTec.mcport code 4 = integer 16; option TeleTec.oppubfile code 9 = text; option TeleTec.mcip_img code 10 = ip-address; option TeleTec.mcport_img code 11 = integer 16; option TeleTec.mcip_mng code 12 = ip-address; option TeleTec.mcport_mng code 13 = integer 16; option TeleTec.ip_log code 14 = ip-address; option TeleTec.port_log code 15 = integer 16; option TeleTec.VerNumber code 20 = text; option TeleTec.DateTime code 21 = text; ############################## BOOT MAG100 ############################### class "MAG100_boot" { match if (( option vendor-class-identifier="TeleTecMAG100boot")); filename "stb/100/uImage_mag100"; next-server 10.1.1.1; option root-path "10.1.1.1:/srv/stb/100/rootfs/"; } ############################## NETWORK #################################### subnet 10.1.1.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; next-server 10.1.1.1; pool { range 10.1.1.10 10.1.1.254; next-server 10.1.1.1; option ntp-servers 10.1.1.1; } }