Motorola Moto E 2015 (motorola-surnia)

From postmarketOS
Jump to navigation Jump to search
Note This device was just changed from downstream to mainline. Supported features is roughly correct. Many other sections may not be, please update if you can.
Motorola Moto E (2nd Gen)
Motorola Moto E (2nd Gen)
Motorola Moto E (2nd Gen)
Manufacturer Motorola
Name Moto E (2nd Gen)
Codename motorola-surnia
Released 2015
Category testing
Original software Android
Original version 5.0.2
postmarketOS kernel 3.10.49
Hardware
Chipset Qualcomm Snapdragon 410 (MSM8916)
CPU Quad-core 1.2 GHz Cortex-A53
GPU Adreno 306
Display 540x960 IPS LCD
Storage 8 GB Flash
Memory 1 GB
Architecture aarch64
Type handset
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Partial
WiFi
Works
FDE
Mainline
Works
Battery
Partial
3D Acceleration
Audio
Bluetooth
Partial
Camera
GPS
Mobile data
SMS
Partial
Calls
USB OTG
Partial
NFC
Sensors
Accelerometer
Magnetometer
Unavailable
Ambient Light
Proximity
Hall Effect
Barometer
Unavailable
Power Sensor
Misc
Camera Flash
Keyboard
Touchpad
USB-A
HDMI/DP
Ir TX
Ir RX
Stylus
Haptics
Ethernet
FOSS bootloader



This device is based on the Snapdragon 410.
See the SoC page for common tips, guides and troubleshooting steps

Contributors

Users owning this device


Unlocking the bootloader

Please visit the Motorola website for instructions. You will need a email address for only receiving email (disposable email is enough) and working fastboot (driver installation needed for Windows and macOS, works out of the box on Linux).

How to enter flash mode

Hold down Power + Volume Down while booting to enter Flash Mode.

Installation

First, flash lk2nd-msm8916.img to the boot partition.

Boot that, press volume down during that booting to get to the lk2nd boot menu.

See Usage for lk2nd.

After that, use the normal Installation_guide

Installation to directly to device and sdcard have both been tested to work.

Display

The display panel works fine on some devices but not on others due to hardware differences.

Modem Setup (same as for motorola-harpia so far)

Content below copied from https://wiki.postmarketos.org/wiki/Moto_G4_Play_(motorola-harpia).

I used these steps to configure and test SMS. It sort of worked I think. Need to do more testing.

Wifi

Configure your kernel and enable the prima wifi staging driver

$ pmbootstrap menuconfig motorola-harpia
$ pmbootstrap build linux-motorola-harpia

On the device

# apk add wcnss-wlan
# /etc/init.d/wcnss-wlan start

Bluetooth (Mainline)

Using unrznbl's tree. bluetoothctl detects controller and pairing works. Still needs some testing to see if it is stable.

Battery (Mainline)

Battery fuel gauge is supported, but fan54046 charging chip isn't. It does still charge but it dosen't indicate that it is charging.

USB OTG (Mainline)

The internal USB hub shows up, but it dosen't detect any USB devices.

Firmware {Wifi/Modem}

The firmware is now properly packaged since pmaports!1947

Modem

Make the necesary links for rmtfs

# cd /boot
# ln -s /dev/disk/by-partlabel/modemst1 modem_fs1
# ln -s /dev/disk/by-partlabel/modemst2 modem_fs2
# ln -s /dev/disk/by-partlabel/fsg modem_fsg

Install necessary software

# apk add msm-modem-downstream rmtfs libsmdpkt_wrapper libqipcrtr4msmipc ofono

Start the wcnss-wlan service to initialize the wifi card (helps the modem?)

# /etc/init.d/wcnss-wlan start

Start a tmux for multiple windows tmux

Start rmtfs on a terminal

export LD_PRELOAD=/usr/lib/preload/libqipcrtr4msmipc.so
rmtfs -v

Start ofonod on another terminal

$ export LD_PRELOAD=/usr/lib/preload/libsmdpkt_wrapper.so
$ ofonod -d -n

Send an SMS!

$ export PHONE_NUMBER="<number to send sms to ex: 1234567890>"
$ sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.SetProperty string:"Powered" variant:boolean:"true"
$ sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.GetProperties
$ sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.SetProperty string:"Online" variant:boolean:"true"
$ sudo dbus-send --system --print-reply --dest=org.ofono /gobi_0 org.ofono.MessageManager.SendMessage string:"$PHONE_NUMBER" string:"Hello world! -postmarketOS"

Receive SMS like this (might be spammy if you have other DBus apps):

$ sudo dbus-monitor

Hardware / sensors detail

For reference, sensor information from sensorsandbox (f-droid) on xt1526; note that in addition to hardware-based sensors, it presumably includes software-based / derived sensors:

sensor details (sensorssandbox)

name vendor version type
3-axis accelerometer Kionix 1 1
Ambient light sensor TAOS 1 5
Proximity sensor TAOS 1 8
Display rotation sensor Motorola 1 65536
Flat up
Flat down
Stowed
Camera activation sensor

See also