Created
April 23, 2021 16:14
-
-
Save kcxt/64d09a95958d76feb30929bbd90dcc4a to your computer and use it in GitHub Desktop.
Instructions for testing ModemManager on QRTR modems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Yeah, you can get it going in postmarketOS by using my pmaports branch here: https://gitlab.com/sdm845-mainline/pmaports/-/tree/mm-tracking | |
| You'll need to get rid of the top commit it was just for my testing and doesn't work. | |
| Checkout HEAD~1 ("modemmanager: QRTR testing") and then change the modem manager APKBUILD to use this branch: https://gitlab.freedesktop.org/aleksm/ModemManager/-/tree/aleksander/qmap-settings-udev (from !501). Then: | |
| pmbootstrap checksum modemmanager | |
| pmbootstrap build libqrtr-glib --arch aarch64 | |
| pmbootstrap build libqmi -- arch aarch64 | |
| pmbootstrap build modemmanager -- arch aarch64 | |
| Install the built packages on to the device (they're in ~/.local/var/pmbootstrap/packages/) | |
| Also might need to manually update /usr/lib/udev/rules.d/77-mm-qcom-soc.rules to include the changes from the branch. | |
| To enable the SIM slot, I have to run: | |
| sudo qmicli -p -d qrtr://0 --uim-change-provisioning-session="slot=1,activate=yes,session-type=primary-gw-provisioning,aid=<YOUR SLOT AID>" | |
| The aid can be found with --uim-get-card-status. | |
| Then you can run ModemManager as root and it should all appear in Phosh. Despite what phosh indicated mobile data doesn't work yet. | |
| Sending and receiving texts does! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment