Richard Hughes
0415db6f67
Revert "trivial: Use files() rather than current_source_dir()"
...
This reverts commit b581fa5670
as it breaks
`ninja dist` with `-Dgresource_quirks=enabled`.
2022-09-25 10:31:14 +01:00
Richard Hughes
b581fa5670
trivial: Use files() rather than current_source_dir()
2022-09-24 09:12:14 -05:00
Richard Hughes
2d2bde2268
trivial: Fix -Wunused-but-set-variable warning
2022-09-22 14:24:50 +01:00
Richard Hughes
1dab4f67cf
modem-manager: Fix debug format string
...
PVS: The size_t type argument is expected.
2022-09-09 19:23:29 +01:00
Richard Hughes
908c1d8c02
modem-manager: Do not print (null)
...
PVS: Incorrect format. A null pointer is used.
2022-09-09 19:23:29 +01:00
Richard Hughes
92db5fc87a
modem-manager: Fix a critical warning when issuing Secure Boot AT commands
...
Fixes https://github.com/fwupd/fwupd/issues/4998
2022-09-05 17:53:27 +01:00
Ivan Mikhanchuk
c14129a149
modem-manager: add Quectel secure boot status AT commands
2022-07-29 09:32:56 +01:00
Richard Hughes
829258401e
Allow plugins and backends to print debugging information to the console
...
This is really useful for debugging.
2022-07-28 16:10:06 +01:00
Mario Limonciello
611cf51fc8
trivial: lower modem manager probing verbosity in one other place
...
Fixes: 030a0d51c
("trivial: quiet the modem manager error about unable to probe")
2022-07-14 12:59:53 -05:00
Richard Hughes
a61bb37881
Build the quirk files into the daemon as a GResource
...
Interestingly, this increases the `fwupd` binary size by ~30kb but
reduces the installed size of /usr/share/fwupd/quirks.d by ~330kb.
2022-06-30 18:52:24 +01:00
Mario Limonciello
030a0d51c1
trivial: quiet the modem manager error about unable to probe
...
We don't show messages in the logs about unable to probe other
device types by default, MM should be no different.
This gets rid of this message coming up every fwupd startup on a
EM05-G:
"failed to probe MM device: modem cannot be put in programming mode"
2022-06-23 14:53:58 -05:00
Gaël PORTAY
299b42fe96
trivial: Make meson.build indentation consistent
2022-06-21 03:27:38 -04:00
Richard Hughes
4105768a01
Remove the 'common' prefix when parsing version numbers
2022-06-14 14:36:52 -05:00
Richard Hughes
3e0a4dc1c3
Be smarter and include less header files per source file
2022-06-14 14:36:52 -05:00
Richard Hughes
067d7d8088
Split out the path helpers to a new source file
2022-06-14 14:36:52 -05:00
Richard Hughes
7f86ffab6f
Split out the dump helpers to a new source file
2022-06-14 14:36:52 -05:00
Richard Hughes
3f77af3cd4
Split out the kernel helpers to a new source file
2022-06-14 14:36:52 -05:00
Richard Hughes
425fedcca1
trivial: Remove fu_byte_array_set_size_full()
2022-06-14 14:36:52 -05:00
Richard Hughes
4b1313b406
Split out the GByte helpers to a new source file
2022-06-14 14:36:52 -05:00
Richard Hughes
9d33c29e92
Split out the string helpers to a new source file
2022-06-14 14:36:52 -05:00
Richard Hughes
e6b487e762
Add FuProgress to ->startup() and ->coldplug()
...
This allows us to profile the daemon startup so we can find any plugins
taking an inordinate amount of time to start.
2022-06-04 20:21:50 +01:00
Richard Hughes
dc91d59f8e
Remove the recently added fu_progress_add_step_full()
...
Just break API instead.
2022-06-03 13:47:11 -05:00
Richard Hughes
be271f8213
modem-manager: Fix a small leak and critical warning on failed update
2022-05-26 10:50:54 +01:00
Richard Hughes
061b377977
modem-manager: Fix one critical warning when updating
2022-05-26 10:50:54 +01:00
Richard Hughes
d3d7cfa816
Add plugin quirk keys earlier in the startup process
...
This allows creating the silo when starting the engine with custom
plugin keys such as WacomI2cFlashBaseAddr.
If we move the plugin initialization earlier then we don't get the
HwID matches, so we really do have to split this into a 4-stage startup,
e.g. ->load(), ->init(), ->startup() and ->coldplug().
2022-05-09 11:13:52 +01:00
Richard Hughes
45b1a0bbe3
modem-manager: Remove unused variable
2022-04-23 10:28:16 +01:00
Richard Hughes
035490d39e
modem-manager: Remove the cache item and use a shadow device instead
...
Fixes https://github.com/fwupd/fwupd/issues/4394
2022-04-12 09:59:19 +01:00
Richard Hughes
7f6605cf8d
Revert "modem-manager: uninhibit modem after upgrade"
...
This reverts commit e3b62e643b
which
fixes a crash when updating devices.
2022-03-28 20:19:09 +01:00
Richard Hughes
17854099d0
modem-manager: Add signed-payload metadata for some Quectel devices
2022-03-28 08:47:02 +01:00
Richard Hughes
ed247d32b2
modem-manager: Use the correct icon name
...
The list is specified in https://lvfs.readthedocs.io/en/latest/metainfo.html
2022-03-24 13:05:23 +00:00
Richard Hughes
e8e94b5c63
modem-manager: Quirk a vendor name to be less shouty
2022-03-24 11:12:13 +00:00
Ivan Mikhanchuk
e3907a116e
modem-manager: add Quectel EM05 firwmare update support
...
EM05 switches to the EDL mode over MBIM port, then uses
Sahara to load a firehose binary. The firmware is loaded to
the modem using Firehose protocol.
2022-03-22 14:26:49 +00:00
Ivan Mikhanchuk
6fa82b10bc
modem-manager: add Sahara IO functions to Firehose
2022-03-22 14:26:49 +00:00
Ivan Mikhanchuk
27a68de8ee
modem-manager: add Sahara protocol
2022-03-22 14:26:49 +00:00
Ivan Mikhanchuk
716a47db8c
modem-manager: move firehose related functions to one
2022-03-22 14:26:49 +00:00
Ivan Mikhanchuk
ee71e5ffa9
modem-manager: fix fu_chunk padding in firehose
2022-03-22 14:26:49 +00:00
Ivan Mikhanchuk
387b797c6f
modem-manager: add get_mbim_device method for MbimQdu
2022-03-22 14:26:49 +00:00
Richard Hughes
2085a2a1c3
modem-manager: Detect presence of modem-power driver
...
Quectel EG25-G modem in the Pine64 PinePhone and PinePhone Pro can be
booted with the eg25-manager (user space) or modem-power (kernel space).
We only support the eg25-manager for upgrading these modems.
Based on a patch by Dylan Van Assche <me@dylanvanassche.be>, thanks.
2022-03-02 13:36:19 +00:00
Mario Limonciello
661990ed98
Convert build system to use meson tristate features
...
tristate features will automatically disable if dependencies marked
as required are missing.
Packagers can manually override using `auto_features`.
Link: https://mesonbuild.com/Build-options.html#features
2022-02-28 08:34:48 -06:00
Richard Hughes
ccc897e574
modem-manager: Copy the AT retry behaviour in ModemManager
...
Fixes https://github.com/fwupd/fwupd/issues/4319
2022-02-23 07:14:24 +00:00
Richard Hughes
675c5f41a6
modem-manager: Assign the FuUsbDevice to the FuMmDevice
...
This allows protocol code like Sahara to use GUsb.
2022-02-16 16:07:23 +00:00
Richard Hughes
4b48b2ea27
trivial: Fix a warning in the latest clang release
2022-01-31 14:36:38 +00:00
Dylan Van Assche
b5077745a7
modem-manager: use version format from metadata
...
Some modems use a plain string as version while others use a
standardized version format. If such a format is provided by
the metadata, set it.
2022-01-30 20:01:52 +00:00
Richard Hughes
0264c29bda
modem-manager: Only try to get the branch if there exists an AT port
...
Fixes https://github.com/fwupd/fwupd/issues/4190
2022-01-19 20:06:25 +00:00
Richard Hughes
4329ddbd76
modem-manager: Fix a segfault on startup for some MBIM-QDU devices
...
Works around https://github.com/fwupd/fwupd/issues/4190 although we
still need to find the root cause.
2022-01-19 13:46:05 +00:00
Dylan Van Assche
e3b62e643b
modem-manager: uninhibit modem after upgrade
...
When fastboot is used, the modem is rediscovered through udev
after upgrading. However, the modem-manager plugin did not mark
the modem as unhibited with ModemManager. This resulted into
ModemManager not exposing the modem without restarting ModemManager or
rebooting the device.
Mark the modem as uninhibited and do not take ownership over the
plugin data as this caused segfaults.
2022-01-13 20:30:09 +00:00
Richard Hughes
e17a107ce1
trivial: Cast the g_signal_connect() object to allow static analysis
...
This is useful when using https://gitlab.freedesktop.org/tartan/tartan
2022-01-03 22:46:23 +00:00
Richard Hughes
2e99055d1e
trivial: Add some more annotations for language bindings
2022-01-03 22:46:23 +00:00
Dylan Van Assche
9d7e4309a3
modem-manager: add firmware branch AT command for Quectel EG25-G
...
Alternative firmwares implement AT+GETFWBRANCH to get the current firmware branch
2021-12-29 14:33:02 +00:00
Dylan Van Assche
f0016cf11e
modem-manager: add firmware branch support
...
Some modems such as the Quectel EG25-G have alternative firmwares available.
Read the firmware branch if supported by the firmware and set it,
if not, fall back to the default branch.
2021-12-29 14:33:02 +00:00