* PublicImage - образ подписанный стандартным публичным ключом STB_PUBLIC.
Варианты обновления: Начиная с версии ПО 0.2.14-r8 обновляется по HTTP и (USB без Bootstrap из меню портала) только на «версии ПО завода изготовителя», («версии ПО завода изготовителя» - версии ПО собранные непосредственно производителем и предоставляемые для автоматического и ручного обновления по URL завода изготовителя). На другие версии обновляется только из меню Bootloader-a (multicast, USB&Bootstrap). Заводской вариант образа ПО (imageupdate), подписанный стандартным публичным ключом STB_PUBLIC, выкладывается в каталоге с каждым текущим релизом, соответственно модели STB, по адресу: soft.infomir.com.ua
gpg --import stb_secbin.key export MAG200_OP_KEY=STB_PUBLIC
./kernel_sign_250.sh
imageupdate
:./img_make.sh 216 "test" ../rootfs MAG250 ./img_make.profile.mag250
Внимание!!! Public Firmware versions могут быть установлены в STB только из BIOS. Мы рекомендуем использовать вариант обновления multicast
Пример сборки PublicImage для MAG-254
root@localhost:~/218-r7-test/operators_utils_new_mag200_mag250_mag254# cat /etc/issue Ubuntu 14.04.1 LTS \n \l root@localhost:~/218-r7-test/operators_utils_new_mag200_mag250_mag254# uname -a Linux localhost 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:31:23 UTC 2014 i686 i686 i686 GNU/Linux root@localhost:~/218-r7-test# wget http://wiki.iptv.infomir.com.ua/pub/operators_utils_new_mag200_mag250_mag254.tar.gz Saving to: ‘operators_utils_new_mag200_mag250_mag254.tar.gz’ root@localhost:~/218-r7-test# wget http://soft.infomir.com.ua/mag254/release/0.2.18-r7/vmlinux.bin.mag254 Saving to: ‘vmlinux.bin.mag254’ root@localhost:~/218-r7-test# wget http://soft.infomir.com.ua/mag254/release/0.2.18-r7/rootfs-0.2.18r7.tar.gz Saving to: ‘rootfs-0.2.18r7.tar.gz’ root@localhost:~/218-r7-test# tar -zxf rootfs-0.2.18r7.tar.gz root@localhost:~/218-r7-test# tar -zxf operators_utils_new_mag200_mag250_mag254.tar.gz root@localhost:~/218-r7-test# mv vmlinux.bin.mag254 operators_utils_new_mag200_mag250_mag254/images/ root@localhost:~/218-r7-test# cd operators_utils_new_mag200_mag250_mag254/ root@localhost:~/218-r7-test/operators_utils_new_mag200_mag250_mag254# cat img_make.profile.mag254 # Kernel's file system export KERNEL_PATH=./uImzlib_mag254.img # File name for enviroment variable export ENV_VARIABLE_PATH=./images/env_mag254.txt # Userfs export USERFS_VERSION=1 export USERFS_PATH=./images/userfs.img # File name for SecondBoot export SECONDBOOT_PATH=./images/SbootIm_mag254 # File name for Logotype export LOGOTYPE_PATH=./images/logo.bmp.gz export MAG200_OP_KEY=STB_PUBLIC root@localhost:~/218-r7-test/operators_utils_new_mag200_mag250_mag254# gpg --import stb_secbin.key gpg: key 6BEED1ED: secret key imported gpg: key 6BEED1ED: public key "STB_PUBLIC (Public key!!)" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) gpg: secret keys read: 1 gpg: secret keys imported: 1 root@localhost:~/218-r7-test/operators_utils_new_mag200_mag250_mag254# export MAG200_OP_KEY=STB_PUBLIC root@localhost:~/218-r7-test/operators_utils_new_mag200_mag250_mag254# ./kernel_sign_254.sh File vmlinux.sign create - successfully!!! Image Name: MAG254 SH4 Kernel Linux 2.6.17 Created: Fri Nov 7 10:39:35 2014 Image Type: SuperH Linux Kernel Image (gzip compressed) Data Size: 3244259 Bytes = 3168.22 kB = 3.09 MB Load Address: 0x80800000 Entry Point: 0x80801000 File uImzlib_mag254.img create - successfully!!! root@localhost:~/218-r7-test/operators_utils_new_mag200_mag250_mag254# ./img_make.sh 218 "test" ../rootfs-0.2.18r7 MAG254 ./img_make.profile.mag254 Make rootfs image ../rootfs-0.2.18r7 Append digital signature MAG200_OP_KEY=STB_PUBLIC File ./sumsubfsnone.img.sign create - successfully!!! gpg (GnuPG) 1.4.16 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: ~/.gnupg Supported algorithms: Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA Cypher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 File result:./imageupdate Create section "Kernel size:" and append file ./uImzlib_mag254.img. Create section "Image size:" and append file ./sumsubfsnone.img.sign. Create section "Env size:" and append file ./images/env_mag254.txt. Create section "Userfs size:" and append file ./images/userfs.img. Create section "Logotype size:" and append file ./images/logo.bmp.gz. File ./imageupdate create - successfully!!!