Skip to content

Added the entry of debian for unloading compressed kernel modules - #85

Merged
Shashank Arora (shasaror) merged 5 commits into
qualcomm:developfrom
tejas-sharma27:fix/debian-13-kernel-modules-issue
Aug 7, 2026
Merged

Added the entry of debian for unloading compressed kernel modules#85
Shashank Arora (shasaror) merged 5 commits into
qualcomm:developfrom
tejas-sharma27:fix/debian-13-kernel-modules-issue

Conversation

@tejas-sharma27

Copy link
Copy Markdown
Contributor

Fix: Debian 13 ARM64 – Dependency Module Loading Failures During QUD Driver Installation

Problem

On Debian 13 ARM64, qcom_drivers.sh install failed to load qcom_usb.ko and
qcom_usbnet.ko due to two root causes:

  1. Compressed kernel modules not handled — Debian 13 ships kernel modules compressed
    as .ko.xz or .ko.zst. The usbserial, mii, and usbnet loading blocks only
    performed decompression for RHEL/Fedora (and mii/usbnet partially for Ubuntu 24.04).
    Debian fell into the bare insmod else branch, which silently failed on compressed
    files, leaving the dependencies unloaded before the QUD modules were inserted.

  2. No boot persistence for dependency modules — The script registered only the QUD
    modules (qtiDevInf, qcom_usb, qcom_usbnet) in /etc/modules for autoload, but
    not their dependencies. After a reboot, usbserial, mii, and usbnet were absent,
    causing the QUD modules to fail to load automatically.

After fix

  • qcom_drivers.sh install completes without errors
  • All dependency modules load correctly in the right order
  • All QUD modules (qtiDevInf, qcom_usb, qcom_usbnet) are loaded and confirmed via lsmod
  • /etc/modules-load.d/qcom-qud.conf is written correctly, dependencies persist across reboots without manual intervention

Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>
…ed by depmod

Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>
Comment thread src/linux/qcom_drivers.sh
…ation

Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>
Comment thread src/linux/qcom_drivers.sh
Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>
…mpressed file as well

Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>
Comment thread src/linux/qcom_drivers.sh
@shasaror
Shashank Arora (shasaror) merged commit e79fd53 into qualcomm:develop Aug 7, 2026
12 checks passed
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.

3 participants