modem/msm-modem: skip SIM configuration on APQ* SoCs (MR 2632)
Unfortunately, msm-modem-uim-selection causes boot delays on APQ* SoCs (without most modem functionality) at the moment. The modem will never show up so it keeps waiting and waiting. To allow using the same rootfs on devices that have MSM* and APQ* variants (e.g. Samsung MSM8916 tablets), add a quick check at the beginning of the service to cancel early when running on an APQ* SoC. This is easy to check because the SoC is actually exposed in sysfs.
This commit is contained in:
parent
63b7969efd
commit
674c7f63ad
2 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
pkgname=msm-modem
|
||||
pkgver=5
|
||||
pkgrel=1
|
||||
pkgver=6
|
||||
pkgrel=0
|
||||
pkgdesc="Common support for Qualcomm MSM modems"
|
||||
url="https://postmarketos.org/"
|
||||
arch="armhf armv7 aarch64"
|
||||
|
@ -38,6 +38,6 @@ downstream() {
|
|||
|
||||
sha512sums="
|
||||
3172f8c409f552f13d1da29f14ab6c79072cd6da4acab151a1a0ea1858a416974456852609f14fe29cf97a6a45e60b99d0a57ddcde751da243ee5ac6fa8b672c msm-modem-downstream.initd
|
||||
9ce373d668a4324ef4d2f465b2524e45b46dc2b93a718ec6bd0c681a99a6506c707083dc9295f30a704526f7b2c508af8bef873fd2ef7ee4638f573677ac79e4 msm-modem-uim-selection.initd
|
||||
177cf671a12a9b1de24d1223043fb9fe6dd15f3675112123f2fa080c074cc7c6e7024ed1542ae824bb036cc51a020b8e3ab146106cecd1315649073fd2118db8 msm-modem-uim-selection.initd
|
||||
2a511c2e249d0ec5a52f04ffe1ef3d29cf3c4813143b103e54879ff89176ea45b1a5ffe21cb7dc2f1cdd84c3102ba45ef9926ed37e00b1ae12a36d01de35ea5a udev-downstream.rules
|
||||
"
|
||||
|
|
|
@ -15,6 +15,12 @@ depend() {
|
|||
# All of the logic is placed in the service start method as we want to block
|
||||
# other services while the modem isn't ready yet.
|
||||
start() {
|
||||
case "$(cat /sys/devices/soc0/machine)" in
|
||||
APQ*)
|
||||
eend 0 'Skipping SIM configuration on APQ SoC.'
|
||||
return 0
|
||||
esac
|
||||
|
||||
# libqmi must be present to use this script.
|
||||
if ! [ -x "$(command -v qmicli)" ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue