Exporting qmi-firmware-update

Dan Williams dcbw at redhat.com
Thu Apr 5 13:08:48 UTC 2018


On Thu, 2018-04-05 at 15:01 +0200, Aleksander Morgado wrote:
> 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?

(for Richard) For more info on the fastboot process, see:

https://abarouski.blogspot.com/2016/07/configuring-hp-lt4120-in-linux-a
s-i.html

Dan


More information about the libqmi-devel mailing list