Commit graph

47 commits

Author SHA1 Message Date
Vincent Knecht
2886477023
modem/rmtfs: upgrade to 0.2_git20201113 (MR 1744)
Update rmtfs, so that upstreamed change necessary for upcoming/WIP
alcatel-idol3 port is integrated already.
2020-11-20 11:12:10 -08:00
Joel S
8cbe2d1308
modem/pd-mapper: upgrade to 0_git20201110 (MR 1700) 2020-11-10 10:19:06 +01:00
Joel S
8a477b6599
modem/qrtr: upgrade to 0.3_git20201110 (MR 1700) 2020-11-10 10:18:50 +01:00
Minecrell
2d10cc697a
modem/msm-modem(-downstream): start modem if necessary (MR 1640)
On some downstream kernels it seems like we need to explicitly keep
/dev/subsys_modem open (without writing anything), otherwise the modem
will be stopped (or never started). Weird.
2020-10-25 18:35:21 +01:00
Minecrell
799821e163
modem/rmtfs: fix downstream (MR 1640)
The -s switch to automatically start/stop the modem remoteproc only
works on mainline, on downstream it fails with "Failed to get rprocfd".

Let's abuse /usr/lib/preload/libqipcrtr4msmipc.so to check if we are
(probably) running on a downstream installation, and omit the -s
argument in this case. The modem remoteproc needs to be started
differently on downstream.
2020-10-25 18:34:57 +01:00
Minecrell
58a8f32e2f
modem/rmtfs: upgrade to 0.2_git20200928, make qrtr-ns optional (MR 1640)
qrtr-ns is not needed (or working) on downstream, also it is no longer
needed for mainline starting with Linux 5.9. Convert the "need" dependency
to a "use" so qrtr-ns is only started if it is really needed.
2020-10-25 18:34:48 +01:00
Minecrell
3b8031445c
modem/qrtr: upgrade to 0.3_git20200928, separate library into -libs (MR 1640)
In most cases, the qrtr-ns is not needed anymore now, but we still
need the libqrtr library. Separate that out into a separate package
so it can be installed independently.
2020-10-25 18:34:39 +01:00
Minecrell
d070b0b19f
modem/q6voiced: upgrade to 0_git20200604 (MR 1607)
Also listen to DBUS events from ModemManager, to start call audio
when necessary.
2020-10-23 12:12:25 +03:00
Minecrell
36f13ad1ab
modem/msm-modem: expose serial AT port from DATA4 SMD channel (MR 1607)
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!
2020-10-23 12:12:22 +03:00
Minecrell
8e080015d7
modem/msm-modem: rename msm-modem-mainline to msm-modem-rpmsg (MR 1356)
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.
2020-06-25 09:41:35 +02:00
Caleb Connolly
1ba5bbeac2
modem/msm-modem: add rmtfs-openrc dependency (MR 1274)
It is possible for msm-modem to get installed before
rmtfs-openrc, which causes the following error in
post-install:

 * rc-update: service `rmtfs' does not exist
ERROR: msm-modem-1-r0.post-install: script exited with error 1

Add a dependency to ensure rmtfs-openrc gets installed first
2020-05-27 20:16:50 +03:00
Minecrell
cc689bb4d1
modem/q6voiced: new aport (MR 1233)
linux-postmarketos-qcom-msm8916 now supports voice call audio.
However, at the moment the audio stream needs to be explicitly started
by opening some PCM audio devices when the call is started
(even though no audio data is written to the PCM device).

Eventually this should go away by implementing codec2codec support
for q6voice in the kernel. In that case, the stream would be started
once the audio routes are set up using ALSA UCM. However, this is a bit
complicated actually so for now it's nice to have a workaround:

q6voiced listens on dbus for signals from oFono, and opens/closes the
PCM device when a call is initiated/ended in oFono. This essentially
makes voice call audio work out of the box (provided that the audio
routing, e.g. Earpiece and a microphone is set up appropriately).

Co-Authored-By: Nikita Travkin <nikitos.tr@gmail.com>
2020-05-25 10:19:05 +02:00
Dolphin von Chips
ba26b27673
modem/pd-mapper: new aport (MR 1080) 2020-05-23 18:10:02 +02:00
Dolphin von Chips
6bd3f0ead8
modem/tqftpserv: new aport (MR 1080) 2020-05-23 18:09:40 +02:00
Luca Weiss
e350b00b9b
treewide: chmod -x files (MR 1237)
We don't want executable APKBUILDs, deviceinfo files, etc in pmaports.
Remove the executable bit from those files.

[ci:skip-build]
[ci:skip-vercheck]
2020-05-23 17:29:18 +02:00
Danct12
0169350bb9
modem/libsamsung-ipc: fix linting (MR 1260)
[ci:skip-vercheck]

Signed-off-by: Danct12 <danct12@disroot.org>
2020-05-23 17:23:27 +02:00
Danct12
2aaece5219
modem/libsamsung-ipc: update source url (MR 1260)
[ci:skip-vercheck]

Signed-off-by: Danct12 <danct12@disroot.org>
Reviewed-by: Asriel Dreemurr <asriel.danctnix@gmail.com>
Signed-off-by: Asriel Dreemurr <asriel.danctnix@gmail.com>
2020-05-23 17:20:57 +02:00
Minecrell
942861a3cb
modem/modem-qcom-msm-{mainline,downstream}: combine to msm-modem (!1032)
Combine modem-qcom-msm-{mainline,downstream}-common to a single APKBUILD
with mainline and downstream subpackages.

Enable rmtfs service here instead of directly in the package.

[ci:skip-vercheck]: for qrtr version fix
2020-03-18 14:09:29 +01:00
Minecrell
e8cdc37dbe
modem/rmtfs: rename from qcom_rmtfs (!1032)
Other distributions do not make use of the qcom_ prefix.
Also it's not like there are other projects named the same.
2020-03-18 14:09:26 +01:00
Minecrell
f9295cfcd5
modem/qcom_rmtfs: cleanup (!1032)
- use supervise-daemon to restart when necessary
- run normally, without wrapping with sh and logger
- add "need qrtr-ns" to make sure it gets started first
- stop enabling service directly in rmtfs package
  (moved to msm-modem)
2020-03-18 14:09:23 +01:00
Minecrell
fa80843a46
modem/qcom_rmtfs: upgrade to 0.2_git20200131 (!1032) 2020-03-18 14:09:20 +01:00
Minecrell
a5eb030452
modem/qrtr: cleanup (!1032)
- Fix version
- Rename init script to qrtr-ns ("nameservice") to clarify which
  service is actually started
- Use supervise-daemon
- Configure and start daemon in one command (no need for qrtr-cfg)
- Remove "before qcom_rmtfs": it should depend on qrtr-ns,
  not the other way around
- Do not activate qrtr daemon by default - this should happen automatically
  if other service files have "need qrtr-ns"
2020-03-18 14:09:17 +01:00
Minecrell
03ec114637
modem/qrtr: upgrade to 1.1.0.3_git20200302 (!1032) 2020-03-18 14:09:14 +01:00
Minecrell
81ca3ffc7e
modem/rpmsgexport: fix linting issues (!1032) 2020-03-18 14:09:11 +01:00
lambdadroid
33a46b86db
modem/modem-qcom-msm-mainline-common: recognize hexagon remoteproc (!799)
At the moment, only "modem" is detected as rpmsg name.
On MSM8916 the audio DSP and modem are both on the same remote
processor ("hexagon").

Add it to the udev rule so the modem symlink is created on MSM8916.
2019-12-09 17:37:50 +03:00
Luca Weiss
aa0058de07
modem/qcom_rmtfs: use new command line flags (!592)
The changes in command line parameters of rmtfs mean: use the modem*
partitions directly (-P), in read-only mode (-r)...and it will boot the
modem automagically when ready (-s)

I've removed the udev rules in the rmtfs package because it doesn't look
like they are needed with those command line flags.
2019-10-30 22:31:32 +01:00
Luca Weiss
1ef2d6e433
modem/libsmdpkg_wrapper: upgrade to 0.2 (!687)
Remove Werror workaround in APKBUILD, as the necessary change has been
upstreamed. By rebuilding the package, we fix the following errors:

Error relocating /usr/lib/preload/libsmdpkt_wrapper.so: minor: symbol not found
Error relocating /usr/lib/preload/libsmdpkt_wrapper.so: major: symbol not found
2019-10-23 22:15:36 +02:00
Oliver Smith
a132464893
modem/libsmdpkt_wrapper: disable Werror
Fixes the build with GCC-9.
2019-10-13 22:10:29 +02:00
Luca Weiss
d2b89c4cf9
temp/ofono: move from modem, upgrade to 1.30 (!612) 2019-09-09 14:23:51 +02:00
Danct12
fc839c2ea6
modem/*: upgrade, modernize, clean up (!549)
Thanks to z3ntu and scintill for additional patches, that have been
squashed into this one (see MR for details).
2019-08-31 19:25:30 +02:00
Luca Weiss
ba4caadf68
modem/ofono: use pkgver=9999 (!537)
[ci:skip-build]: already built succcessfully in CI
2019-08-03 03:16:03 +02:00
Luca Weiss
73f6cfa0aa
modem/ofono: update to 1.29 with qmi voicecall support (!511)
Tested on the pinephone devkit.

[ci:skip-build]: already built successfully in CI
2019-07-24 00:02:19 +02:00
Oliver Smith
b42a538152
modem/libqipcrtr4msmipc: add armv7 to arches
Fix building modem-qcom-msm-downstream-common for armv7 (which was
done in the last commit, although it only mentions aarch64 in the
commit message).
2019-05-11 23:23:00 +02:00
Asriel Dreemurr
36addd6698
modem/modem-qcom-msm-*: enable aarch64 (!360) 2019-05-11 22:01:29 +02:00
foldedcascode
2385f68a02
modem/modem-qcom-msm-mainline-common: add armv7 to arch options (!257)
[ci:skip-build]: already built successfully
2019-03-07 10:34:14 +01:00
Grant Miller
d0fc7218b0
modem/libsamsung-ipc: Use openssl (!109) 2018-12-22 08:55:09 +01:00
Bhushan Shah
5ce37aea08 modem/qcom_rmtfs: Don't limit the rmtfs udev rules to mmcblk0 (#1512)
We already have it limited by the ID_PART_ENTRY_NAME, it is very less
likely that someone will have sdcard with the partition names which are
similar to modem partition.

This fixes rmtfs for @MartijnBraam who for some reason have internal mmc
as mmcblk1 and not 0.
2018-06-01 21:19:50 +02:00
Bhushan Shah
975b33952e modem/ofono: Patches for the getting the voice call working (#1512)
This patchset is based on the branch on the sysmocom.de git,

https://git.sysmocom.de/ofono/log/?h=lynxis/voicecall

The original branch was based on old ofono so this patches are manually
merged to ofono 1.21 and tested on debian initially.
2018-06-01 21:19:13 +02:00
Bhushan Shah
c429bfa005 modem/qcom_rmtfs: Depend on udev-settle instead of udev (#1485)
This makes sure that symlinks which are needed by rmtfs is created
before rmtfs is started (modem partitions)
2018-05-16 23:13:23 +02:00
Bhushan Shah
c36aeec04e modem/modem-qcom-msm-mainline-common: check name attribute (#1485)
On my device the rpmsg0 have DATA5_CNTL under name attribute instead of
rpmsg_name

```
looking at device '/devices/platform/smd/smd:modem/smd:modem.rpmsg_chrdev.0.0/rpmsg/rpmsg_ctrl1/rpmsg0':
  KERNEL=="rpmsg0"
  SUBSYSTEM=="rpmsg"
  DRIVER==""
  ATTR{dst}=="0"
  ATTR{src}=="0"
  ATTR{name}=="DATA5_CNTL"
```

So check for name instead of rpmsg_name.
2018-05-16 23:13:17 +02:00
Bhushan Shah
9fc90003a8 modem/qcom_rmtfs: Start rmtfs after udev starts (#1485)
We need udev running so that we can ensure that the partitions are
correctly symlinked before they are used.
2018-05-16 23:13:14 +02:00
Bhushan Shah
f1e3b03575 modem/ofono: Enable the test scripts (#1485)
test scripts are useful to enable/disable modem and also do ofono
related tasks, They are installed on /usr/lib/ofono/test directory and
provide much better user experience then the raw dbus-send command.
2018-05-16 23:13:10 +02:00
Bhushan Shah
17e3e1ae53 modem/qrtr: make it possible to start QRTR services (#1485)
- Instead of just libqrtr, build all targets of qrtr
- install the qrtr.initd which starts qrtr services before rmtfs is
started
- in post-install enable qrtr service at boot
2018-05-16 23:13:07 +02:00
Bhushan Shah
52ef925d7d modem/qcom_rmtfs: By default run qcom_rmtfs with verbose option (#1485)
We pass it to logger anyway where it can be filtered and rmtfs doesn't
produce that much output anyway.
2018-05-16 23:13:04 +02:00
Joey Hewitt
0272a7de51 ofono QMI: mainline kernel support (#1381)
Add modem-qcom-msm-downstream-common package that pulls in the
dependencies.

qcom_rmtfs now has udev rules to find the storage partitions. My hope
is they can be written flexibly enough to cover all devices and kernel
flavors.
2018-05-10 21:28:51 +00:00
Bart Ribbers
d372f6f000 Bump pkgrel due to libressl soname upgrade (#1400)
Affected packages:
* qca-qt5
* qt5-qtbase
* libsamsung-ipc
2018-04-09 16:29:57 +00:00
Joey Hewitt
0a2dbea03d i9195/Qualcomm modem support (#1314)
* Qualcomm MSM modem: 'rmtfs' support packages
* qcom_rmtfs: Server that talks to modem over IPC to allow it
  read/write data for its persistent storage. This is needed for it to
  boot, as well as periodically during usage. Added a patch that
  it expects the storage path symlinks in /etc instead of /boot.
* qrtr: IPC library for rmtfs
* libqipcrtr4msmipc: adapter library to make qrtr work on kernels with
  AF_MSM_IPC support. AF_QIPCRTR is the mainline equivalent since Linux
  ~4.7.
* msmipc-dev: Header files for qrtr and libqipcrtr4msmipc.
  Thanks to Bjorn Andersson <https://github.com/andersson> for rmtfs and
  qrtr.
* libsmdpkt_wrapper: adapter lib for QMI clients
  The SMD serial packet driver in Qualcomm kernels has, AFAICT, a bug
  in poll(); this works around it so that qmicli et al can work.
* i9195: firmware (modem only right now)
* add ofono (with patch for MSM devices)
  Based on Alpine's package.
* i9195: add modem support
* move all modem related packages to aports/modem
2018-03-11 15:59:09 +00:00