Jump to content

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

From postmarketOS Wiki
Sorixelle (talk | contribs)
Add information relevant to mainline distribution in pmaports
Sorixelle (talk | contribs)
Add lk2nd install and usage instructions
Line 57: Line 57:
</source>
</source>


After that, proceed with [[Installation_guide#Installation_and_flashing|installation]] as usual.
You will also need to install the [https://github.com/msm8916-mainline/lk2nd/releases/latest lk2nd bootloader], as it is required to handle some quirks
with msm8916 devices on mainline kernels. Flash the <code>lk2nd.img</code> image to the boot partition with <code>fastboot flash boot /path/to/lk2nd.img</code>. 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:
 
[[File:Motorola-harpia_lk2nd_example.jpeg|x500px]]
 
After that, proceed with [[Installation_guide#Installation_and_flashing|installation]] as usual, using lk2nd's fastboot interface to flash the kernel and rootfs.


== 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/Sorixelle/linux Development kernel tree]
* [https://github.com/Sorixelle/linux Development kernel tree]

Revision as of 13:57, 1 February 2020

Warning WARNING: This device is not recommended for future use with postmarketOS due to its armhf architecture. Alpine Linux (the distribution that postmarketOS extends) pmaports#599 has been considering dropping it.
The processor of the device may support the armv7 architecture. If so, you can modify the device package and change the architecture accordingly.
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
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 armhf
Software
Original software Android 6.0.1
postmarketOS
Category testing
Pre-built images no
Mainline yes
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Broken
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


Users owning this device


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 envkernel.sh, 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/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:

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

See also