Difference between revisions of "Motorola Moto G4 Play (motorola-harpia)"

From postmarketOS
Jump to: navigation, search
m (Update development kernel link)
(Add modem information to wiki page)
Line 30: Line 30:
 
| status_gps = N
 
| status_gps = N
 
| status_mobiledata = N
 
| status_mobiledata = N
| status_sms = N
+
| status_sms = Y
| status_calls = N
+
| status_calls =
 
| booting = yes
 
| booting = yes
 
}}
 
}}
Line 65: Line 65:
  
 
After that, proceed with [[Installation_guide#Installation_and_flashing|installation]] as usual, using lk2nd's fastboot interface to flash the kernel and rootfs.
 
After that, proceed with [[Installation_guide#Installation_and_flashing|installation]] as usual, using lk2nd's fastboot interface to flash the kernel and rootfs.
 +
 +
=== Modem ===
 +
Modem is currently working on harpia, but as of writing, a few things are still waiting to be merged into pmaports. See [https://gitlab.com/postmarketOS/pmaports/-/merge_requests/907 pmaports!907]
 +
for more information. This section will be removed once the required changes are merged into pmaports.
 +
 +
'''Following these directions is not recommended until the required changes are in pmaports.''' If you would like to get modem working now, proceed with the above install guide, with the following
 +
modifications:
 +
 +
* Use the <code>harpia-modem</code> branch of [https://gitlab.com/srxl/pmaports/-/tree/harpia-modem this] fork of pmaports:
 +
<source>
 +
cd ~/.local/var/pmbootstrap/cache_git/pmaports
 +
git remote add harpia-modem https://gitlab.com/srxl/pmaports.git
 +
git fetch harpia-modem
 +
git checkout harpia-modem
 +
</source>
 +
* lk2nd needs to be built from source, as there are some required changes that have not been added to a release yet. The [https://github.com/msm8916-mainline/lk2nd#building README] on the lk2nd repo has instructions on how to do this.
 +
 +
== Usage ==
 +
=== Modem ===
 +
Follow the directions on [[Qualcomm_Snapdragon_410_(MSM8916)#Modem|this wiki page]] to use the modem. If you have a device model other than what is listed here, please edit the list below
 +
with the results of modem functionality testing.
 +
 +
* '''XT1602:''' Modem working, can send and receive text messages. Calls untested.
  
 
== See also ==
 
== See also ==
 
* [https://gitlab.com/postmarketOS/pmaports/tree/master/device/device-motorola-harpia Device package]
 
* [https://gitlab.com/postmarketOS/pmaports/tree/master/device/device-motorola-harpia Device package]
 
* [https://github.com/msm8916-mainline/linux Development kernel tree]
 
* [https://github.com/msm8916-mainline/linux Development kernel tree]

Revision as of 20:53, 13 February 2020

Motorola Moto G4 Play
Moto G4 Play running Weston
Moto G4 Play running Weston
Manufacturer Motorola
Name Moto G4 Play
Codename motorola-harpia
Released 2016
Category testing
Original software Android 6.0.1
Hardware
Chipset Qualcomm MSM8916 Snapdragon 410
CPU Quad-core 1.21GHz Cortex A53
GPU Adreno 306
Display HD (720x1280)
Storage 8GB or 16GB
Memory 1GB or 2GB
Architecture aarch64
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
Xwayland
Works
FDE
Mainline
Works
Battery
3D Acceleration
Works
Accelerometer
Works
Audio
Works
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
Broken
SMS
Works
Calls
USB OTG



Users owning this device

  • ChexM1xstar (Notes: XT1601)
  • Sorixelle
  • Thejsa (Notes: 16GB/1GB XT1604; loaned to family)
  • Unrznbl (Notes: XT1607, fixed lk2nd with (this PR)[1], working on shelli-ui for gesture, power, sms/voice)


Contributors

  • Sorixelle

How to enter flash mode

Hold down POWER + Vol Down while booting to enter Flash Mode.

Installation

As some features are still in development for this device, the kernel needs to be built from source using envkernel. To do this, you'll need a copy of the pmbootstrap tree, and the latest kernel tree for the device. Once you have those, and you have run pmbootstrap init, run the following commands:

cd /path/to/linux/kernel
source /path/to/pmbootstrap/helpers/envkernel.sh
make msm8916_defconfig pmos.config
make -j<cores>
pmbootstrap build --envkernel linux-postmarketos-qcom-msm8916

You will also need to install the lk2nd bootloader, as it is required to handle some quirks with msm8916 devices on mainline kernels. Flash the lk2nd.img image to the boot partition with fastboot flash boot /path/to/lk2nd.img. lk2nd also provides a fastboot interface that allows for flashing kernels without overwriting lk2nd itself. To enter it, power on the device, then hold down Vol Down as soon as you see the boot splash. You should be presented with a menu that looks like the following:

Motorola-harpia lk2nd example.jpeg

After that, proceed with installation as usual, using lk2nd's fastboot interface to flash the kernel and rootfs.

Modem

Modem is currently working on harpia, but as of writing, a few things are still waiting to be merged into pmaports. See pmaports!907 for more information. This section will be removed once the required changes are merged into pmaports.

Following these directions is not recommended until the required changes are in pmaports. If you would like to get modem working now, proceed with the above install guide, with the following modifications:

  • Use the harpia-modem branch of this fork of pmaports:
cd ~/.local/var/pmbootstrap/cache_git/pmaports
git remote add harpia-modem https://gitlab.com/srxl/pmaports.git
git fetch harpia-modem
git checkout harpia-modem
  • lk2nd needs to be built from source, as there are some required changes that have not been added to a release yet. The README on the lk2nd repo has instructions on how to do this.

Usage

Modem

Follow the directions on this wiki page to use the modem. If you have a device model other than what is listed here, please edit the list below with the results of modem functionality testing.

  • XT1602: Modem working, can send and receive text messages. Calls untested.

See also