Потеря файлов при обновлении ПО/en: различия между версиями

Материал из Wiren Board
(Новая страница: «You can learn more about the update process via the web interface in the corresponding section: Firmware _update. This met…»)
 
(не показано 8 промежуточных версий этого же участника)
Строка 3: Строка 3:
== Firmware update methods ==
== Firmware update methods ==


There are three ways to update the controller SOFTWARE:
There are three ways to update the controller software:
#via the web interface.
#Via the web interface.
#By complete flashing the controller.
#By complete flashing the controller.
#Updating packages installed on the device.
#Updating packages installed on the device.
Строка 14: Строка 14:
This method is recommended because some system settings (such as network settings, time zone, web interface password, etc.), as well as all user settings and configuration files will remain unchanged. In particular, many files in the ''<nowiki>''</nowiki>''/etc/''<nowiki>''</nowiki> directory are untouched.   
This method is recommended because some system settings (such as network settings, time zone, web interface password, etc.), as well as all user settings and configuration files will remain unchanged. In particular, many files in the ''<nowiki>''</nowiki>''/etc/''<nowiki>''</nowiki> directory are untouched.   


При обновлении сохраняются:  
When you upgrade, the following files are saved:  
*все устройства, подключенные по ''RS-485'' (файл <nowiki>''</nowiki>''/etc/wb-mqtt-serial.conf''<nowiki>''</nowiki>),  
*all devices connected via по ''RS-485'' (файл <nowiki>''</nowiki>''/etc/wb-mqtt-serial.conf''<nowiki>''</nowiki>),  
*модули ввода-вывода и расширения (файл <nowiki>''</nowiki>''/etc/wb-hardware.conf''<nowiki>''</nowiki>),
*I/O modules and extensions( <nowiki>''</nowiki>''/etc/wb-hardware.conf''<nowiki>''</nowiki> file),
*настройки универсальных входов/выходов A1-A4 (файл <nowiki>''</nowiki>''/etc/wb-homa-adc.conf''<nowiki>''</nowiki>),
*universal input/output settings A1-A4 (file <nowiki>''</nowiki>''/etc/wb-homa-adc.conf''<nowiki>''</nowiki>),
*пользовательские скрипты (находятся в директории <nowiki>''</nowiki>''/etc/wb-rules/''<nowiki>''</nowiki>),
*user scripts (located in the  <nowiki>''</nowiki>''/etc/wb-rules/''<nowiki>''</nowiki> folder),
*настройки выводов GPIO контроллера (файл <nowiki>''</nowiki>''/etc/wb-homa-gpio.conf''<nowiki>''</nowiki>).
*controller GPIO pin settings (file <nowiki>''</nowiki>''/etc/wb-homa-gpio.conf''<nowiki>''</nowiki>).
Если вы хранили какие-либо файлы на контроллере, то при обновлении они будут потеряны, поэтому рекомендуется сделать резервную копию, подключив контроллер к ПК для [[Special:MyLanguage/Просмотр_файлов_контроллера_с_компьютера|просмотра файлов]].
If you have stored any files on the controller, they will be lost during the upgrade, so it is recommended to make a backup by connecting the controller to the PC to view the files.[[Special:MyLanguage/Просмотр_файлов_контроллера_с_компьютера|просмотра файлов]].
<div class="tcenter" style="clear:none">[[Special:MyLanguage/Файл:Etc-wbconfigs.png|thumb|600px|center|Содержимое директории <nowiki>''</nowiki>''/etc/''<nowiki>''</nowiki>]]</div>
<div class="tcenter" style="clear:none">[[File:Etc-wbconfigs.png|thumb|600px|center|Folder contents <nowiki>''</nowiki>''/etc/''<nowiki>''</nowiki>]]</div>




===Полная перепрошивка контроллера===
===Full flashing of the controller===


Подробнее данный процесс описан [[Wiren_Board_5:_Восстановление_прошивки|здесь]].
This process is described in detail [[Wiren_Board_5:_Firmware_Recovery|here]]. This method of updating destroys '''absolutely all data''' of the device. It is recommended for use in case of emergency situations or improper operation of the controller. The internal storage partitions are overwritten in the full system image, so even user settings and scripts are lost. You can learn more about the internal storage partition structure by reading
Этот способ обновления уничтожает '''абсолютно все''' данные на устройстве. Рекомендуется к применению в случае возникновения внештатных ситуаций или неправильной работы контроллера. Разделы внутреннего накопителя перезаписываются полным образом системы, соответственно, теряются даже пользовательские настройки и скрипты. Узнать больше о структуре разделов внутреннего накопителя можно, прочитав [[Special:MyLanguage/Обновление_прошивки#Схема разделов microSD/eMMC|эту статью]].
[[Special:MyLanguage/Firmware_Update#Sections microSD/eMMC scheme|this article]].




===Обновление установленных пакетов===
===Updating installed packages===


Не стоит путать обновление прошивки контроллера с обновлением установленных на устройстве пакетов, производимым командами
Do not confuse the controller firmware update with the update of the installed packages on the device, produced by the commands
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
apt-get update
apt-get update
apt-get upgrade
apt-get upgrade
</syntaxhighlight>
</syntaxhighlight>
При обновлении пакетов, пользовательские данные остаются без изменений, однако может появиться диалоговое окно вида:
When you upgrade packages, the user data remains unchanged, but you may see a dialog box like:
<div class="tcenter" style="clear:none">[[Special:MyLanguage/Файл:Dialog.png|900px|center|Директория с настройками из раздела ''Configs'']]</div>
<div class="tcenter" style="clear:none">[[File:Dialog.png|900px|center|Folder with settings from ''Configs'' Configs]]</div>
В котором нужно выбрать, перезаписать ли конфигурационные файлы. Это окно появляется, если Вы производили изменение конфигурационного файла, относящегося к обновляемому пакету (''например, добавляли модули расширения или modbus-устройства через веб-интерфейс''). Чтобы произведённые Вами ранее настройки контроллера сохранились, нужно отказаться от перезаписи конфигурационного файла, выбрав пункт <nowiki>''</nowiki>''keep the local version currently installed''<nowiki>''</nowiki>. В случае же подтверждения перезаписи (выбора самого верхнего пункта), старые конфигурационные файлы '''безвозвратно''' удаляются.
in which you choose whether to overwrite the configuration files. This window appears if you have modified the configuration file related to the updated package (''for example, you have added extension modules or modbus devices via the web interface''). To save the controller settings you've made before, you should refuse to overwrite the configuration file by selecting <nowiki>''</nowiki>''keep the local version currently installed''<nowiki>''</nowiki>. In case of confirmation of overwriting (choosing the top point), old configuration files are '''irretrievably''' deleted.

Текущая версия на 18:23, 26 апреля 2019

Другие языки:

Firmware update methods

There are three ways to update the controller software:

  1. Via the web interface.
  2. By complete flashing the controller.
  3. Updating packages installed on the device.


Updating via web interface

You can learn more about the update process via the web interface in the corresponding section: Firmware _update. This method is recommended because some system settings (such as network settings, time zone, web interface password, etc.), as well as all user settings and configuration files will remain unchanged. In particular, many files in the ''/etc/'' directory are untouched.

When you upgrade, the following files are saved:

  • all devices connected via по RS-485 (файл ''/etc/wb-mqtt-serial.conf''),
  • I/O modules and extensions( ''/etc/wb-hardware.conf'' file),
  • universal input/output settings A1-A4 (file ''/etc/wb-homa-adc.conf''),
  • user scripts (located in the ''/etc/wb-rules/'' folder),
  • controller GPIO pin settings (file ''/etc/wb-homa-gpio.conf'').

If you have stored any files on the controller, they will be lost during the upgrade, so it is recommended to make a backup by connecting the controller to the PC to view the files.просмотра файлов.

Folder contents ''/etc/''


Full flashing of the controller

This process is described in detail here. This method of updating destroys absolutely all data of the device. It is recommended for use in case of emergency situations or improper operation of the controller. The internal storage partitions are overwritten in the full system image, so even user settings and scripts are lost. You can learn more about the internal storage partition structure by reading this article.


Updating installed packages

Do not confuse the controller firmware update with the update of the installed packages on the device, produced by the commands

apt-get update
apt-get upgrade

When you upgrade packages, the user data remains unchanged, but you may see a dialog box like:

Folder with settings from Configs Configs

in which you choose whether to overwrite the configuration files. This window appears if you have modified the configuration file related to the updated package (for example, you have added extension modules or modbus devices via the web interface). To save the controller settings you've made before, you should refuse to overwrite the configuration file by selecting ''keep the local version currently installed''. In case of confirmation of overwriting (choosing the top point), old configuration files are irretrievably deleted.