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

Материал из Wiren Board
(Новая страница: «To reset to factory settings, the same algorithm is used as in a normal update from a USB drive, BUT with the following refinements:»)
(Перенаправление изменено с Wiren Board Firmware Update на Wiren Board Software)
Метка: изменение цели перенаправления
 
(не показано 8 промежуточных версий 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]]
 
 
=== Firmware update via USB drive ===
 
You can update the firmware of the Wiren Board 6 controllers using USB drive (flash drive).
 
The upgrade algorithm is similar to the one used when upgrading via the Web interface. The firmware image with the extension is used for the upgrade ''.fit''
 
During the upgrade, you can connect to the controller's debug console, which displays information about the upgrade process.
 
# The USB drive must be formatted to FAT32. If you are using an external hard drive, you should also make sure that the USB port of the controller can provide sufficient current to start the drive.
# Download the latest firmware for Your controller from [https://github.com/contactless/wirenboard/releases].
# Save the downloaded file to the USB drive in the root directory. Rename this file to <code>wb6_update.fit</code>.
# Power off the controller.
# Practice pressing the FW button when  the controller is turned off - during the update you will need to do it quickly and accurately. To do this, it is convenient to use a small screwdriver supplied with the controller.
# Connect the USB drive to the first USB port of the controller (the one closest to the Ethernet connectors) and turn on the controller.
# If the USB drive is correctly recognized and the <code>wb6_update</code> file is found in the root.fit, the controller led will start flashing orange frequently. At this point, you need to press the FW button on the controller Board and hold it for about a second.
# The controller led should start blinking red, then green more often than in normal operation.
# Wait for the update process to finish, it will take about 5 minutes. During the upgrade, the controller will reboot once. The upgrade is complete when the controller led starts flashing green as in normal operation. You can remove the USB drive.
 
 
== The Wiren Board 6 factory reset ==
 
'''NOTE''': when you reset all user data (configuration, rules, files in the home directory) will be destroyed!
 
'''NOTE''': you can ONLY reset to factory settings via a USB flash drive with a SPECIAL firmware file name.
 
To reset to factory settings, the same algorithm is used as in a normal update from a USB drive, BUT with the following refinements:
 
# Файл на 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

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