Exporting qmi-firmware-update

Aleksander Morgado aleksander at aleksander.es
Thu Apr 5 13:01:23 UTC 2018


Hey!

>
> I've seen all the good code in src/qmi-firmware-update/ but my worry I
> see is that I need basically all of that in fwupd to do a proper
> plugin -- and none of it seems to be exported as shared API.
>
> Would you consider a patch that either just exported that as part of
> libqmi-glib.so.5 or as a new shared library like
> libqmi-update-glib.so.5? I'm open to alternative ways of doing this,
> but would really rather avoid just shelling out to an executable and
> scraping the output as that is error-prone and fragile.
>

I believe a new library would fit very well, keeping the GIO-style
async APIs, and that would probably be extremely easy to prepare.

Note, though, that despite the name, qmi-firmware-update has currently
only been tested with Sierra Wireless modules. Other QMI based modules
from other vendors support different ways of updating firmware, which
we haven't implemented support for yet. E.g. HPlt4120 may be switched
using QMI into fastboot mode, and then the FW upgrade is done via
fastboot. Does fwupd support fastboot for other device types?

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list