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.
12 lines
380 B
Text
12 lines
380 B
Text
SUBSYSTEM!="rpmsg", GOTO="qcom_rpmsg_end"
|
|
|
|
# symlink rpmsg endpoints under useful names
|
|
ATTR{name}=="DATA5_CNTL", SYMLINK+="modem"
|
|
|
|
# open SMD channels when the remoteproc comes up
|
|
KERNEL!="rpmsg_ctrl[0-9]*", GOTO="qcom_rpmsg_end"
|
|
ATTRS{rpmsg_name}!="modem|hexagon", GOTO="qcom_rpmsg_end"
|
|
|
|
ACTION=="add", RUN+="/usr/sbin/rpmsgexport /dev/$name DATA5_CNTL"
|
|
|
|
LABEL="qcom_rpmsg_end"
|