Skip to content

Enable ModemManager QRTR + QCOM SoC plugin with external M.2 attach through MHI ports#1728

Open
mdembla-bit wants to merge 2 commits intoqualcomm-linux:masterfrom
mdembla-bit:rb3gen2-mm-qrtr
Open

Enable ModemManager QRTR + QCOM SoC plugin with external M.2 attach through MHI ports#1728
mdembla-bit wants to merge 2 commits intoqualcomm-linux:masterfrom
mdembla-bit:rb3gen2-mm-qrtr

Conversation

@mdembla-bit
Copy link

@mdembla-bit mdembla-bit commented Mar 10, 2026

Summary

This PR enables ModemManager support for Qualcomm RB3Gen2 industrial kit, RB4 and RB8 (core kit +mezz) HWs with M.2 external attach modem ( SDX 65) by:

  1. Enabling QRTR support (and disabling MBIM) in the ModemManager build configuration via a Yocto bbappend.
  2. Enabling the Qualcomm SoC plugin required for QRTR/QMI modem discovery/operation on Qualcomm platforms.
  3. Carrying a downstream-only patch to enable/restore MHI support in ModemManager as a downstream exception.

Downstream exception (QLIJIRA-106)

The patch 0001-enable-mhi-support.patch is included as a downstream exception per:

This patch is based on an earlier upstream proposal that was not accepted:

Rationale for downstream exception:

  • Required for current modem bring-up and validation on RB3Gen2 industrial kit/RB4 & RB8 HWs where the modem transport path relies on MHI.
  • Upstreaming will be handled separately as it required code changes to support multiple M.2 attaches which are not supported yet by HW; this PR focuses on enabling functional validation on the target platform.

Yocto build configuration changes (QRTR vs MBIM)

ModemManager is configured to build with QRTR support enabled and MBIM disabled. The bbappend applies:

  • PACKAGECONFIG:remove = "mbim"
  • PACKAGECONFIG:append = " qrtr"
  • EXTRA_OEMESON:remove = "-Dqrtr=false"
  • EXTRA_OECONF:append = " --enable-plugin-qcom-soc"

Files / Key changes

  • Add bbappend under meta-qcom/dynamic-layers/openembedded-layer/recipes-connectivity/modemmanager/ to enable QRTR + QCOM plugin.
  • Add downstream MHI patch under .../modemmanager/files/0001-enable-mhi-support.patch.

Validation

  • bitbake -c cleansstate modemmanager && bitbake modemmanager
  • bitbake qcom-multimedia-proprietary-image-rb3gen2-core-kit
    Runtime (target):
  • systemctl status ModemManager
  • mmcli -L
  • ls /sys/bus/qrtr

@mdembla-bit mdembla-bit changed the title RB3Gen2: Enable ModemManager QRTR + QCOM SoC plugin; downstream MHI support exception Enable ModemManager QRTR + QCOM SoC plugin with external M.2 attach through MHI ports Mar 10, 2026
Resolving syntax error replacing g_strcmp0 (net_port_driver, "mhi_net" == 0) with g_strcmp0 (net_port_driver, "mhi_net") == 0)

Signed-off-by: mdembla-bit <mdembla@qti.qualcomm.com>

This patch enables MHI support over ModemManager.

Upstream-Status: Pending
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAK, please post upstream first and get at least some reviews.


# --- Enable QRTR support, disable MBIM ---
PACKAGECONFIG:remove = "mbim"
PACKAGECONFIG:append = " qrtr"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please coordinate with others. See #1714 and #1722.

EXTRA_OEMESON:remove = "-Dqrtr=false"

# --- Enable Qualcomm SoC plugin (required for QRTR/MM on QCOM) ---
EXTRA_OECONF:append = " --enable-plugin-qcom-soc"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also should go upstream as a PACKAGECONFIG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants