![Infomir MAG-200 Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/infomir/mag-200/mag-200_operators-manual_2058022026.webp)
MAG-200 Operator Guide Rev 1.05.
Utilities description
Utility fw_printenv
The utility allows learning the value of the bootstrap variable. It c an be used by
integrators and operators for creating various algorithms of the basic program
operation.
Use:
fw_printenv ‘variable name’
As the result, if such variable exists, this variable and its value can be derived.
Utility fw_setenv
The utility allows establishing the value of the bootloader variable. It can be used
by integrators and operators for building various algorithms of the main program
operation.
Use:
fw_setenv var1 1 “|” var2 2
The line “|” is used as the partition and allows establishing the value of several
bootloader variables and avoiding a re-call of this utility.
As the result the variable var1 shall set the value 1, while the variable var2 shall set the
value 2.
If it is necessary to remove the variable omitting its value shall suffice. For example, for
deleting the variable from the bootloader with the name var3: “
fw_setenv var3
”.
Utility dsign
The utility dsign is designed for performing auxiliary works with the keys. The file
activated in the operation is used as the input parameters. The operation for checking
digital signature is most typical. For example:
./dsign --signfile ./test_img.sign --pubkey ./stb_secbin.key ./test_img
The example assumes that the file ./test_img.sign contains digital signature for the file
test_img, while the file stb_secbin.key – contains the public part of the key in binary
form.
26