@@ -2,7 +2,8 @@ Firmware Upgrades
22=================
33
44OpenWISP Firmware Upgrader has been introduced in OpenWISP 20 and focuses
5- on allowing users to maintain the firmware of their network devices up to date.
5+ on allowing users to maintain the firmware of their network
6+ devices up to date.
67
78.. contents :: **Table of Contents**:
89 :backlinks: none
@@ -26,95 +27,112 @@ Quickstart Guide
2627
2728Requirements:
2829
29- - Devices running at least OpenWRT 12.09 Attitude Adjustment, older versions
30- of OpenWRT have not worked at all in our tests
30+ - Devices running at least OpenWRT 12.09 Attitude Adjustment,
31+ older versions of OpenWRT have not worked at all in our tests
3132- Devices must have enough free RAM to be able to upload the
3233 new image to ``/tmp ``
3334
34351. Create a category
3536~~~~~~~~~~~~~~~~~~~~
3637
3738Create a category for your firmware images
38- by going to *Firmware management > Firmware categories > Add firmware category *,
39+ by going to
40+ *Firmware management > Firmware categories > Add firmware category *,
3941if you use only one firmware type in your network, you could simply
4042name the category "default" or "standard".
4143
4244.. image :: https://raw.githubusercontent.com/openwisp/openwisp-firmware-upgrader/docs/docs/images/quickstart-category.gif
4345
44- If you use multiple firmware images with different features, create one category
45- for each firmware type, eg:
46+ If you use multiple firmware images with different features,
47+ create one category for each firmware type, eg:
4648
4749- WiFi
4850- SDN router
4951- LoRa Gateway
5052
5153This is necessary in order to perform mass upgrades only on specific
52- firmware categories when, for example, a new *LoRa Gateway * firmware becomes available.
54+ firmware categories when, for example, a new
55+ *LoRa Gateway * firmware becomes available.
5356
54572. Create the build object
5558~~~~~~~~~~~~~~~~~~~~~~~~~~
5659
5760Create a build a build object by going to
5861*Firmware management > Firmware builds > Add firmware build *,
59- the build object is related to a firmware category and is the collection of the
60- different firmware images which have been compiled for the different hardware models
61- supported by the system.
62+ the build object is related to a firmware category and
63+ is the collection of the different firmware images which have
64+ been compiled for the different hardware models supported by the system.
6265
63- The version field indicates the firmware version, the change log field is optional but
64- we recommend filling it to help operators know the differences between each version.
66+ The version field indicates the firmware version,
67+ the change log field is optional but we recommend filling it to help
68+ operators know the differences between each version.
6569
6670.. image :: https://raw.githubusercontent.com/openwisp/openwisp-firmware-upgrader/docs/docs/images/quickstart-build.gif
6771
68- An important but optional field of the build model is **OS identifier **, this field
69- should match the value of the **Operating System ** field which gets automatically filled
70- during device registration, eg: ``OpenWrt 19.07-SNAPSHOT r11061-6ffd4d8a4d ``.
72+ An important but optional field of the build model is **OS identifier **,
73+ this field should match the value of the **Operating System **
74+ field which gets automatically filled
75+ during device registration, eg:
76+ ``OpenWrt 19.07-SNAPSHOT r11061-6ffd4d8a4d ``.
7177It is used by the firmware-upgrader module to automatically
72- create ``DeviceFirmware `` objects for existing devices or when new devices register.
73- A ``DeviceFirmware `` object represent the relationship between a device and a firmware image,
78+ create ``DeviceFirmware `` objects for existing devices or when
79+ new devices register.
80+
81+ A ``DeviceFirmware `` object represent the relationship between a
82+ device and a firmware image,
7483it basically tells us which firmware image is installed on the device.
7584
7685To find out the exact value to use, you should either do a
77- test flash on a device and register it to the system or you should inspect the firmware image
86+ test flash on a device and register it to the system or you
87+ should inspect the firmware image
7888by decompressing it and find the generated value in the firmware image.
7989
80- If you're not sure about what **OS identifier ** to use, just leave it empty, you can fill
81- it later on when you find out.
90+ If you're not sure about what **OS identifier ** to use,
91+ just leave it empty, you can fill it later on when you find out.
8292
8393Now save the build object to create it.
8494
85953. Upload images to the build
8696~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8797
88- Now is time to add images to the build, we suggest adding one image at time.
89- Alternatively the `REST API <#rest-api >`__ can be used to automate this step.
98+ Now is time to add images to the build, we suggest adding one
99+ image at time. Alternatively the
100+ `REST API <https://github.com/openwisp/openwisp-firmware-upgrader/tree/1.0#rest-api >`__
101+ can be used to automate this step.
90102
91103.. image :: https://raw.githubusercontent.com/openwisp/openwisp-firmware-upgrader/docs/docs/images/quickstart-firmwareimage.gif
92104
93105If you use a hardware model which is not listed in the image types, if the
94- hardware model is officially supported by OpenWRT, you can send us a pull-request to add it,
95- otherwise you can use `the setting OPENWISP_CUSTOM_OPENWRT_IMAGES <#openwisp_custom_openwrt_images >`__
106+ hardware model is officially supported by OpenWRT,
107+ you can send us a pull-request to add it,
108+ otherwise you can use
109+ `the setting OPENWISP_CUSTOM_OPENWRT_IMAGES
110+ <https://github.com/openwisp/openwisp-firmware-upgrader/tree/1.0#openwisp_custom_openwrt_images> `__
96111to add it.
97112
981134. Perform a firmware upgrade to a specific device
99114~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
100115
101116.. image :: https://raw.githubusercontent.com/openwisp/openwisp-firmware-upgrader/docs/docs/images/quickstart-devicefirmware.gif
102117
103- Once a new build is ready, has been created in the system and its image have been uploaded,
104- it will be the time to finally upgrade our devices.
118+ Once a new build is ready, has been created in the system and its
119+ image have been uploaded, it will be the time to finally
120+ upgrade our devices.
105121
106122To perform the upgrade of a single device, navigate to the device details,
107123then go to the "Firmware" tab.
108124
109- If you correctly filled **OS identifier ** in step 2, you should have a situation
110- similar to the one above: in this example, the device is using version ``1.0 ``
111- and we want to upgrade it to version ``2.0 ``, once the new firmware image
112- is selected we just have to hit save, then a new tab will appear in the device page
113- which allows us to see what's going on during the upgrade.
125+ If you correctly filled **OS identifier ** in step 2,
126+ you should have a situation similar to the one above: in this example,
127+ the device is using version ``1.0 `` and we want to upgrade it to
128+ version ``2.0 ``, once the new firmware image is selected we just have to
129+ hit save, then a new tab will appear in the device page which allows us
130+ to see what's going on during the upgrade.
131+
132+ Right now, the update of the upgrade information is not asynchronous yet,
133+ so you will have to reload the page periodically to find new information.
114134
115- Right now, the update of the upgrade information is not asynchronous yet, so you will
116- have to reload the page periodically to find new information. This will be addressed
117- in a future release.
135+ This will be addressed in a future release.
118136
1191375. Performing mass upgrades
120138~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -134,21 +152,24 @@ At this stage you can try a mass upgrade by doing the following:
134152
135153.. image :: https://raw.githubusercontent.com/openwisp/openwisp-firmware-upgrader/docs/docs/images/quickstart-batch-upgrade.gif
136154
137- At this point you should see a summary page which will inform you of which devices
138- are going to be upgraded, you can either confirm the operation or cancel.
155+ At this point you should see a summary page which will inform you of
156+ which devices are going to be upgraded, you can either confirm the
157+ operation or cancel.
158+
159+ Once the operation is confirmed you will be redirected to a page
160+ in which you can monitor the progress of the upgrade operations.
139161
140- Once the operation is confirmed you will be redirected to a page in which you
141- can monitor the progress of the upgrade operations .
162+ Right now, the update of the upgrade information is not asynchronous yet,
163+ so you will have to reload the page periodically to find new information .
142164
143- Right now, the update of the upgrade information is not asynchronous yet, so you will
144- have to reload the page periodically to find new information. This will be addressed
145- in a future release.
165+ This will be addressed in a future release.
146166
147167Find out more about OpenWISP Firmware Upgrader
148168----------------------------------------------
149169
150- For more information about the features offered by OpenWISP Firmware Upgrader
151- we refer to the following sections of its README:
170+ For more information about the features offered by
171+ OpenWISP Firmware Upgrader we refer to the following sections
172+ of its documentation:
152173
153174- `List of the available features
154175 <https://github.com/openwisp/openwisp-firmware-upgrader/tree/1.0#openwisp-firmware-upgrader> `_
0 commit comments