Updating with Linux microPlatform (LmP)
This section explains how to do the following if you are using LmP:
- Generate a firmware update package you can push to a device through a firmware update campaign.
- Initiate a firmware update campaign.
Generate a delta firmware update package
To create a delta update package, go to the scripts-edge repository. Follow the instructions about using LmP with OSTree. This will generate a tar.gz file.
Generate a combined update package
If the platform supports combined update, you can choose to generate a combined update image. To do that, go to the scripts-edge repository. Follow the instructions about generating a combined update. This will generate the combined_package_file
file.
Initiate a firmware update campaign
Device Management pushes your firmware update package to a defined set of devices, which unpack the firmware update package and apply the updates within it.
You can initiate a firmware update campaign targeting any registered device from Device Management Portal.
Note: You can also initiate a firmware update campaign using the APIs, as explained in the Izuma Device Management online documentation.
To initiate a firmware update campaign:
-
Upload the firmware update package to Izuma Device Management:
-
Log in to Device Management Portal.
-
From the left navigation pane, select Firmware Update > Images.
-
Click the + Upload Image button.
-
Follow the instructions on the screen to upload the update package file.
After you upload the file, Device Management Portal displays a URL from which devices can download the update package file.
-
-
Create a firmware update manifest:
Use the manifest-dev-tool utility to create a manifest file for your firmware update package:
manifest-dev-tool create -u <firmware.url> -p <firmware-update-package> -o manifest [--combined-image]
Where:
<firmware.url>
is the URL of the firmware update package, as shown in Device Management Portal. Devices use this URL to download the firmware update image.<firmware-update-package>
is the firmware update package file. The manifest-dev-tool utility calculates a hash from the firmware update package.--combined-image
is the flag you must pass for a combined image.- Make sure the
.manifest-dev-tool/
folder is in the current directory.
-
Upload the firmware update manifest to Device Management:
- From the left navigation pane, select Firmware Update > Manifests.
- Click the + Upload Manifest button.
- Follow the instructions on the screen to upload the manifest file.
-
Create a device filter to select a set of registered devices that should receive the firmware update package:
-
From the left navigation pane, select Device directory > Devices.
-
In the grey bar above the list of devices, click the arrow next to Filters.
-
Choose an attribute and operator, and give a value, such as Device ID.
- To combine multiple attributes in one filter, click Add another.
- To use a raw string instead, click Advanced view.
-
Click Save.
This opens the Filter name popup window.
-
Give your filter a name.
-
Click Save filter.
-
-
Create the campaign:
- From the left navigation pane, select Firmware Update > Update campaigns.
- Click the + New Campaign button.
- Populate the Name and Description (optional) fields.
- From the Manifest dropdown list, select the manifest file uploaded earlier.
- From the Filter dropdown list, select the filter that targets the devices you need to update.
- Click Finish to start the campaign.