Motorola Moto G5 Plus (motorola-potter)

From postmarketOS
Revision as of 06:22, 1 August 2020 by Uknown (talk | contribs) (→‎Mainlining: update status on audio)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Motorola Moto G5 Plus
Moto G5 Plus
Moto G5 Plus
Manufacturer Motorola
Name Moto G5 Plus
Codename motorola-potter
Released 2017
Category testing
Original software Android 7.0 Nougat
Hardware
Chipset Qualcomm MSM8953 Snapdragon 625
CPU Octa-core 2.0 GHz Cortex-A53
GPU Adreno 506
Display 1080 x 1920 IPS LCD
Storage 32/64 GB
Memory 2/4 GB
Architecture aarch64
Unixbench Whet/Dhry score 3690.3
Features
USB Networking
Works
Flashing
Partial
Touchscreen
Broken
Display
Works
WiFi
Broken
Xwayland
Works
FDE
Broken
Mainline
Broken
Battery
Broken
3D Acceleration
Broken
Accelerometer
Broken
Audio
Broken
Bluetooth
Broken
Camera
GPS
Broken
Mobile data
Broken
SMS
Broken
Calls
Broken
USB OTG



Contributors

  • chin123
  • uknown

Maintainer(s)

  • chin123
  • uknown

How to enter flash mode

  • Power + Volume Down buttons

Installation

$ pmbootstrap flasher flash_rootfs
$ pmbootstrap flasher boot

Photos

Notes

  • The flashlight can be switched on with:
$ echo 1 > /sys/class/leds/led\:switch/brightness

and it can be switched off with:

$ echo 0 > /sys/class/leds/led\:switch/brightness
  • The charging LED can be switched on similarly, simply substitute `led\:switch` with `charging`. The charging LED will only blink as of now.
  • You can change the screen brightness with:
$ echo $brightness > /sys/class/leds/led\:switch/brightness

Mainlining

Mainlining is in the early stages, based on Junak's msm8953 kernel. Source for the kernel is available here:

https://github.com/scarface-one/linux-msm8953

Only tested on XT1686, the Indian variant, with board_id = <0x46, 0x83a0>. It should work on other devices, but may not.
Some variants have a slightly different USB config, that isn't set up on mainline. Using mainline on those devices is dangerous, please don't use it unless you know what you're doing.
Lk2nd is a hard dependency, without it the mainline kernel will not boot. You can get lk2nd for potter from here: https://github.com/scarface-one/lk2nd . Use branch la.um.6.6.r1-V2 .

What works:

  • Display
  • Only Boe panel is tested
  • Need test device for Tianma panel
  • Panel is selected at boot by lk2nd, based on the cmdline from stock bootloader
  • Using labibb regulator driver from mainline patchworks: 1239224
  • Brightness control works, but doesn't use the qcom-wled backlight, needs further investigation
  • GPU (DRM and FB)
  • requires proprietary firmware blobs, can be extracted from Android, or can be downloaded from firmware repositories
  • Sometimes crashes on resume after suspend, because of a mutex
  • Preemption doesn't work (see msm8953 status)
  • SSH and Telnet via USB
  • Low power mode on USB doesn't work, but apparently never worked on any kernel ever on msm8953 devices.
  • USB used to be slow and ssh/telnet were unresponsive, until lpm was disabled.
  • Touchscreen
  • Synaptics 3203B, works using mainline RMI4 driver
  • NFC
  • Driver probes and binds, but the h/w doesn't seem to respond
  • LEDs
  • Front charging LED works (Qualcomm ATC-LED)
  • Battery (qcom-fg/qpnp-fg)
  • Reports voltage, capacity, temperature, current, battery data and energy
  • Needs to deliver other data like and battery details
  • 2 different battery suppliers, need a way to probe and select
  • Wifi
  • Only 2.4GHz works, mainline wcnss driver has a bug that prevents 5GHz networks from appearing
  • Bluetooth
  • Works but needs pulseaudio-bluez, bluez-alsa and bluez-hcd2hci to be installed
  • Storage
  • MMC works as expected
  • SD Card works, but some (minor) issue with cd-gpios needs to be fixed for proper card detection. Otherwise works as expected.
  • Modem
  • Boots
  • Doesn't actually work, seems to use a different way to talk to userspace than other currently supported qcom modems
  • Audio
  • Routed via ADSP, needs firmware blobs
  • Speaker, earpiece and headphones all work.
  • Hiss/Popping with headphones when no audio is playing

Anything that isn't listed above can be assumed to not work.

See also: MSM8953 mainlining status

Links