Wiren Board Firmware Update/en: различия между версиями

Материал из Wiren Board
(Новая страница: «#Firmware update is performed by overwriting the controller drive section with the operating system and all installed programs. This does not affect files that ar…»)
(Перенаправление изменено с Wiren Board Firmware Update на Wiren Board Software)
Метка: изменение цели перенаправления
 
(не показано 17 промежуточных версий 3 участников)
Строка 1: Строка 1:
<languages/>
#REDIRECT [[Wiren_Board_Software]]
 
== Partial firmware update using APT==
 
In this method, the firmware is updated in parts using the Debian operating system package manager.
 
The advantage of this method is that the update is fast, you can update only the necessary components, and this method has the least impact on user files and settings.
 
The disadvantage of the method is the need to take a responsible approach to the process and not to do rash actions: careless use of the tool can lead to incomplete installation or even removal of important components of the Wiren Board controller software
 
 
=== Updating the package list ===
 
Before you start, you need to get an up-to-date list of packages from the Debian and Wiren Board repositories.
 
To update all the package lists:
<syntaxhighlight lang="bash">
apt-get update
</syntaxhighlight>
 
 
To update only the packages from the Wiren Board repository:
<syntaxhighlight lang="bash">
apt-get update -o Dir::Etc::sourcelist="sources.list.d/contactless.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"   
</syntaxhighlight>
 
 
 
 
 
== Full firmware update ==
 
 
=== Firmware update via web interface ===
 
Please note that this method is not recommended on Wiren Board 5 when upgrading to the revision with word "stetch" in the name from the version without "stetch" in the file name. This applies in particular to the factory WB5 firmware older than mid-2018 release.
 
#Firmware update is performed by overwriting the controller drive section with the operating system and all installed programs. This does not affect files that are in folders (they are on another partition). Read more to see the files that were lost when you upgrade the system, in the section  update[[Пропажа_файлов_при_обновлении_прошивки/en|Loss of files during a software update]]  
#:These folders store all changes that can be made through the web interface, including settings from the ''Configs'' page, all connected devices and widgets - all this data will be saved.
#:If you stored data on the controller in other folders, or installed your own software, '''they will be lost'''. You can download the desired files to your computer before updating by following the instructions .[[Просмотр файлов контроллера с компьютера|'View the controller files from your computer']].
#Download the latest firmware from the page [https://github.com/contactless/wirenboard/releases https://github.com/contactless/wirenboard/releases]. [[File:Firmware-update-github.png|400px|center|thumb|Firmware file with extension ''.fit'' on Github]].
#Go to the [[Веб-интерфейс Wiren Board/en|web interface]] to the  ''Settings'' section. Find section ''Firmware update'', press ''Select file'', choose the previous downloaded file.[[File:web-settings.png|400px|thumb|center|Press ''Select file'' to download]]
#The file with the new firmware will be downloaded to the controller, after that the update process will begin. Do not close the update page or perform any actions on the controller, including the web interface. The upgrade process will take up to 10 minutes.[[File:Web-settings-firmware-update-messages.png|400px|center|thumb|During the update, system messages appear on the page]]
#After installing the new firmware, the controller will reboot. After that, the update page will display a message about the successful completion of the update - ''Firmware update complete''.[[File:Web-settings-firmware-update-completed.png|400px|center|thumb|Successful update notification]]
 
 
=== Обновление прошивки с помощью USB-накопителя ===
 
В контроллерах Wiren Board 6 добавлена возможность обновления прошивки с использованием USB-накопителя (флешки).
 
Алгоритм обновления похож на тот, что используется при обновлении через Web-интерфейс. Для обновления используется образ прошивки
с расширением ''.fit''.
 
Во время обновления можно подключиться к отладочной консоли контроллера, в которую будет выводиться информация о процессе обновления.
 
# USB-накопитель должен быть отформатирован в FAT32. Если в качестве накопителя используется внешний жёсткий диск, следует также убедиться, что USB-порт контроллера может выдать достаточный ток для запуска диска.
# Скачайте свежую версию прошивки для Вашего контроллера со страницы [https://github.com/contactless/wirenboard/releases].
# Сохраните скачанный файл на USB-накопитель в корневой каталог. Переименуйте этот файл в <code>wb6_update.fit</code>.
# Отключите контроллер.
# На выключенном контроллере потренируйтесь нажимать кнопку FW - в процессе обновления вам нужно будет делать это быстро и аккуратно. Для этого удобно использовать маленькую отвёртку из комплекта поставки контроллера.
# Подключите USB-накопитель к '''первому''' USB-порту контроллера (ближнему к разъёмам Ethernet) и включите контроллер.
# Если USB-накопитель корректно распознан и в корне найден файл <code>wb6_update.fit</code>, светодиод контроллера начнёт часто мигать оранжевым. В этот момент нужно сразу нажать на кнопку FW на плате контроллера и держать её около секунды.
# Светодиод контроллера должен начать мигать красным, затем зелёным чаще, чем при штатной работе.
# Дождитесь окончания процесса обновления, это займёт около 5 минут. В процессе обновления контроллер один раз перезагрузится. Обновление завершено, когда светодиод контроллера начинает мигать зелёным, как в штатном режиме работы. Можно извлечь USB-накопитель.
 
 
== Сброс Wiren Board 6 к заводским настройкам ==
 
'''ВНИМАНИЕ''': при сбросе все пользовательские данные (конфигурация, правила, файлы в домашней директории) будут уничтожены!
 
'''ВНИМАНИЕ''': сбросить к заводским настройкам можно ТОЛЬКО через USB-накопитель с ОСОБЫМ именем файла прошивки.
 
Для сброса к заводским настройкам применяется такой же алгоритм, как при обычном обновлении c USB-накопителя, НО со следующими уточнениями:
 
# Файл на USB-накопителе нужно назвать <code>wb6_update_FACTORYRESET.fit</code> '''(имя файла должно быть именно таким!)''';
# После нажатия на кнопку FW через некоторое время контроллер начнёт издавать писк, а светодиод начнёт часто мигать красным. В этот момент требуется зажать кнопку FW более чем на 4 секунды. Писк станет прерывистым. Пока писк и мигание продолжаются, кнопку нужно держать нажатой. Когда писк и мигание прекратятся, кнопку можно отпустить. Это нажатие требуется для подтверждения сброса настроек.
 
 
== Перезапись прошивки Wiren Board 5 ==
 
Для Wiren Board 5 см. [[Wiren Board 5: Восстановление прошивки|Wiren Board 5: Восстановление прошивки]].
 
Для других версий контроллера см. [[Создание microSD-карты с образом|Создание microSD-карты с образом]].
 
 
== Информация для разработчиков ==
 
Информация о внутреннем устройстве системы обновлений находится на [[WB Firmware Update Details|отдельной странице]].

Текущая версия на 18:11, 20 декабря 2023

Перенаправление на: