mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Integrates the modem management subsystem, donated by Avvero Pty Ltd,
adapted to work on any platform without proprietary hardware (simctrl,
modules.json, /sys/class/sim/).
Components:
- package/feature-modem: Buildroot feature package pulling in modemd,
ModemManager, libmbim, libqmi, and USB serial/MBIM/QMI kernel drivers
- package/modemd: Buildroot package for the modemd daemon and helpers
- src/modemd: modem management daemon — detects modems via ModemManager,
connects bearers, configures IP addresses, handles SMS and location
- src/confd/src/modem.c: confd plugin — enables/disables modemd and
modem-manager via sysrepo, forwards RPCs (restart/reset/send-sms)
- src/confd/src/interfaces.{c,h}: IFT_MODEM type for wwan* interfaces;
confd manages address/route assignment, modem daemon owns link state
- src/confd/yang/confd/infix-modem.yang: YANG model for modem config and
operational state (bearers, APN, bands, modes, location, SMS)
- src/statd/python/yanger/infix_modem.py: operational state collector
- patches/modem-manager: upstream patches for udev install path,
multiplexed interface naming, and MBIM port trust from udev hint
(the last fixes Dell DW5811e / Sierra EM7455 on cold boot)
- patches/libqmi: ignore sysfs in download mode
Platform portability fixes for boards without simctrl hardware:
- modem-info: fall back to /run/modems.json when /run/modules.json is
absent; discover wwan interfaces via sysfs scan; provide synthetic SIM
entry when /sys/class/sim/ is not present; fix dbg() to respect flag
- modemd: make --set-allowed-modes=any best-effort (some modems only
support one mode combination and reject any change); skip mode set
when current mode already matches requested mode
- sim-setup: guard simctrl open, return None when modules.json absent
to skip SIM slot switching entirely on non-simctrl hardware
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
20 lines
721 B
Plaintext
20 lines
721 B
Plaintext
config BR2_PACKAGE_FEATURE_MODEM
|
|
bool "Feature Modem"
|
|
select BR2_PACKAGE_MODEMD
|
|
select BR2_PACKAGE_MODEM_MANAGER
|
|
select BR2_PACKAGE_MODEM_MANAGER_LIBMBIM
|
|
select BR2_PACKAGE_MODEM_MANAGER_LIBQMI
|
|
select BR2_PACKAGE_MODEM_MANAGER_LIBQRTR
|
|
help
|
|
Enables cellular modem support in Infix via ModemManager and
|
|
the modemd management daemon. Includes drivers for common
|
|
USB option modems and QMI/MBIM-based devices.
|
|
|
|
config BR2_PACKAGE_FEATURE_MODEM_QUALCOMM
|
|
bool "Qualcomm-based modems (QMI/QRTR/MHI)"
|
|
depends on BR2_PACKAGE_FEATURE_MODEM
|
|
help
|
|
Adds kernel support for Qualcomm-based cellular modems that use
|
|
the MHI bus and QRTR IPC router (e.g. Sierra Wireless EM7xxx,
|
|
Quectel EM/RMxxx, Telit LN9xx).
|