Add Debian packaging (DKMS) for Linux kernel drivers#17
Open
hangzqcom wants to merge 2 commits intoqualcomm:mainfrom
Open
Add Debian packaging (DKMS) for Linux kernel drivers#17hangzqcom wants to merge 2 commits intoqualcomm:mainfrom
hangzqcom wants to merge 2 commits intoqualcomm:mainfrom
Conversation
Add .deb package support using DKMS to handle install, uninstall, upgrade, and version control of Qualcomm USB kernel drivers on Debian/Ubuntu systems. New files: - debian/: Full Debian packaging (control, rules, changelog, maintainer scripts) - build-deb.sh: Build script that syncs version from version.h - dkms.conf: DKMS configuration for 4 kernel modules Features: - Builds qtiDevInf, qcom_usb, qcom_usbnet, qcom-serial via DKMS - Auto-rebuilds modules on kernel updates - Blacklists conflicting in-tree modules (qcserial, qmi_wwan, etc.) - Detects and removes conflicting userspace drivers (deb package, /opt/qcom/qcom_userspace, /opt/qcom/QUD, /opt/QTI/QUD, qcom-qud.service) - Cleans up pre-existing manual installs before installation - Installs udev rules for device permissions - Loads modules immediately after installation Updated: - README.md: Added deb package as recommended Linux install method - src/linux/README.md: Added deb package documentation - src/linux/version.h: Version 1.0.6.1 Signed-off-by: Hang Zhao <259427778+hangzqcom@users.noreply.github.com>
0ffa493 to
aa9d18b
Compare
The Conflicts and Replaces fields referenced non-existent package names (qcom-usb-userspace-drivers, qcom-usb-userspace-drivers-dkms). Fixed to use the actual installed package name: qcom-usb-userspace-driver. This enables apt to automatically resolve the mutual exclusion between kernel-mode and userspace driver packages during cross-installation.
shasaror
reviewed
Apr 9, 2026
|
|
||
| # QDSS diagnostic devices | ||
| SUBSYSTEM=="usb", DRIVERS=="QdssDiag", MODE="0660", GROUP="plugdev" | ||
| SUBSYSTEM=="usb", DRIVERS=="QdssMdm", MODE="0660", GROUP="plugdev" No newline at end of file |
Contributor
There was a problem hiding this comment.
QdssMdm is not a driver.
Gobiserial is not in used. User can build it for internal use-case. we are not building it via QcDevDriver.sh script.
and currently we are not using QcDevDriver.sh script as well.
shasaror
reviewed
Apr 9, 2026
| install option /bin/false | ||
| blacklist usb_wwan | ||
| install usb_wwan /bin/false | ||
|
|
Contributor
There was a problem hiding this comment.
we do not need modprobe file here. this content is already taken care by our qcom_driver.sh script.
shasaror
reviewed
Apr 9, 2026
| rmmod "$mod" 2>/dev/null || true | ||
| fi | ||
| done | ||
|
|
Contributor
There was a problem hiding this comment.
This is already handled by the qcom_driver.sh script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
.debpackage support using DKMS to handle install, uninstall, upgrade, and version control of Qualcomm USB kernel drivers on Debian/Ubuntu systems.New Files
debian/build-deb.shversion.hdkms.confFeatures
qtiDevInf,qcom_usb,qcom_usbnet,qcom-serialautomaticallyqcserial,qmi_wwan,cdc_wdm,option,usb_wwan)qcom-usb-userspace*/opt/qcom/qcom_userspace,/opt/qcom/QUD,/opt/QTI/QUDqcom-qud.servicesystemd serviceGobiNet/QdssDiagkernel modulesdpkg -sanddkms statusfor version queries; upgrades viadpkg -iUsage
Testing
Tested on Ubuntu 24.04 (kernel 6.8.0-106-generic):
make installmodulesUpdated Files
README.md: Added deb package as recommended Linux install methodsrc/linux/README.md: Added deb package documentation sectionsrc/linux/version.h: Version 1.0.6.1