Motorola Moto G4 (motorola-athene)

Contributors

 * fengjiongmax
 * thejsa

Models/Variants
According to Wikipedia, the G4 (SKU xt162x) and G4 Plus (xt164x) differ only trivially (memory, storage or peripherals/sensors [camera resolution, fingerprint reader]).

How to enter flash mode

 * Power + Volume Down buttons

Problems

 * Firmware issues
 * kernel partition can't be flashed because the boot partition is not big enough
 * Loading the adsp subsystem works momentarily before crashing the device
 * Loading the modem subsystem works momentaily before crashing the device

Firmware issues
Log from dmesg:

Hardware details
output for SKU xt1625

For comparison, results from  for SKU xt1625 on obsolete sailfishOS version 3.0.0.8 running kernel 3.10.84: test_sensors output for SKU xt1625

CPU tuning
For unknown reasons, the default configuration boots only 5 cpus,. This boots only one of the 1.65 GHz cores, and the four 1.21 GHz cores. This can be shown via  (package cpufrequtils), or. The default governor is battery-draining "performance".

To utilize all cores, extract and edit (or update)  from   to use. Boot the new image via. Alternatively, edit  and repeat. This configuration will boot the 4x 1.65 GHz cores as cpus 0-3 and the 4x 1.21 GHz cores as cpus 4-7.

The governor for each quad is assigned separately: This change does not persist across reboots.

Photos

 * Fbgrab-athene-xfce4-htop-about.jpg