36f13ad1ab
So far we have only created /dev/modem based on the DATA5_CNTL channel available from the modem. The DATAX_CNTL channels allow sending QMI messages to the modem. This is sufficient for oFono to work. Unfortunately, ModemManager currently does not support starting calls through the QMI interface. Instead, it uses serial AT commands that can be alternatively used on all USB-based Qualcomm modems. It turns out that we can also send serial AT commands through the RPMSG interface: the DATAX channels (without _CNTL) all respond to serial AT commands. We set it up at /dev/modem-at, configure ModemManager accordingly and then we are able to start calls. Yay!
33 lines
1 KiB
Text
33 lines
1 KiB
Text
pkgname=msm-modem
|
|
pkgver=2
|
|
pkgrel=0
|
|
pkgdesc="Common support for Qualcomm MSM modems"
|
|
url="https://postmarketos.org/"
|
|
arch="armhf armv7 aarch64"
|
|
license="GPL-3.0-or-later"
|
|
depends="rmtfs rmtfs-openrc"
|
|
install="$pkgname.post-install"
|
|
subpackages="$pkgname-rpmsg $pkgname-downstream"
|
|
source="udev-rpmsg.rules udev-downstream.rules"
|
|
options="!check"
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
rpmsg() {
|
|
pkgdesc="$pkgdesc (via RPMSG)"
|
|
depends="$pkgname rpmsgexport"
|
|
|
|
install -Dm644 "$srcdir/udev-rpmsg.rules" "$subpkgdir/usr/lib/udev/rules.d/55-$pkgname.rules"
|
|
}
|
|
|
|
downstream() {
|
|
pkgdesc="$pkgdesc (downstream)"
|
|
depends="$pkgname libqipcrtr4msmipc libsmdpkt_wrapper"
|
|
|
|
install -Dm644 "$srcdir/udev-downstream.rules" "$subpkgdir/usr/lib/udev/rules.d/55-$pkgname.rules"
|
|
}
|
|
|
|
sha512sums="11437625988fcf57aa0b70f11496c458d4516de16391c2869ae975362f282d21d3af521a41dea00312797d20d52be5112dbf0041986bfb40f3b9fa5948d2c695 udev-rpmsg.rules
|
|
2a511c2e249d0ec5a52f04ffe1ef3d29cf3c4813143b103e54879ff89176ea45b1a5ffe21cb7dc2f1cdd84c3102ba45ef9926ed37e00b1ae12a36d01de35ea5a udev-downstream.rules"
|