8e080015d7
Newer Qualcomm SoCs (e.g. SDM845. MSM8953) seem to use a different method to talk to the modem. There are no longer separate rpmsg/SMD channels for QMI messags, instead the modem is also available through QRTR. On these newer SoCs, installing msm-modem-mainline is pointless, because the created /dev/modem device will not actually allow communicating with the modem. However, you still need the part from the base package (msm-modem), which installs+enables rmtfs. To avoid confusion, rename the msm-modem-mainline subpackage to msm-modem-rpmsg. Install only "msm-modem" on SDM845 because that likely does not allow communication with the modem through RPMSG anyway.
33 lines
1 KiB
Text
33 lines
1 KiB
Text
pkgname=msm-modem
|
|
pkgver=1
|
|
pkgrel=2
|
|
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="f842f617c441b8e6c1f8a7802792f5dfc22ab92216641f54e1a1fb8faec00a78b473baf02ef85b6ec295a88aa89a25325479380e1e65db62be879064782790ab udev-rpmsg.rules
|
|
64a40fb88d40ae0ff64d3545f7a54c6f10f2ab366ef75b8b158c2d5a3733223839c87aed8d5c6685d5056a5840d3943e68c76bd1bda2b48388161849d5e253f3 udev-downstream.rules"
|