Modem Firmware Update

API Reference


Firmware update allows the various firmware images to be updated from the application processor. This may include the modem bootloader, modem firmware, and linux image, where the linux image consists of the linux bootloader, linux kernel, and linux rootfs.

Firmware update is useful when the image comes from an alternative source, rather than as an over-the-air update through the AirVantage service.

IPC interfaces binding

All the functions of this API are provided by the le_fwupdate service.

Here's a code sample binding to the le_fwupdate service:

bindings:
{
   clientExe.clientComponent.le_fwupdate -> fwupdateService.le_fwupdate
}

Update Firmware Image

The firmware update process is started by calling le_fwupdate_Download(). This function takes a file descriptor, rather than a file, to provide flexibility in the source of the image. In particular, this can be used to stream the image, rather than having to save it on the file system before doing the update.

If the image is successfully downloaded, a reset will occur in order to apply the update. This will reset all processors. After the application processor has restarted, the Query Firmware Version APIs can be used to determine whether the firmware has been updated to the new version.