Difference between revisions of "Motorola Moto E 2015 (motorola-surnia)"
m (chipset) |
HenriDellal (talk | contribs) m |
||
Line 3: | Line 3: | ||
| name = Moto E (2nd Gen) | | name = Moto E (2nd Gen) | ||
| codename = motorola-surnia | | codename = motorola-surnia | ||
− | | image = File: | + | | image = File:Motorola-surnia.jpg |
− | | imagecaption = | + | | imagecaption = Motorola Moto E (2nd Gen) |
| releaseyear = 2015 | | releaseyear = 2015 | ||
| originalsoftware = Android 5.0.2 Lollipop | | originalsoftware = Android 5.0.2 Lollipop |
Revision as of 14:22, 14 October 2019
USB Networking |
Works |
---|---|
Flashing |
Works |
Touchscreen | |
Display |
Works |
WiFi | |
Xwayland | |
FDE | |
Mainline | |
Battery | |
3D Acceleration | |
Accelerometer | |
Audio | |
Bluetooth | |
Camera | |
GPS | |
Mobile data | |
SMS |
Partial |
Calls | |
USB OTG | |
Contents
Contributors
- unrznbl
Maintainer(s)
How to enter flash mode
Hold down POWER + Vol Down while booting to enter Flash Mode.
Installation
I have tested flashing boot.img with an sdcard rootfs and this seems to work fine.
See also
- https://gitlab.com/postmarketOS/pmaports/merge_requests/29 Initial merge request, status: merged.
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
Firmware {Wifi/Modem} (TODO: package it)
On the device extract firmware
cd /lib/firmware
mkdir postmarketos
cd postmarketos
mount /dev/disk/by-partlabel/system /mnt
cp -ap /mnt/etc/firmware/* /lib/firmware/postmarketos
umount /mnt
mount /dev/disk/by-partlabel/fsg /mnt
cp -ap /mnt/* /lib/firmware/postmarketos
umount /mnt
mount /dev/disk/by-partlabel/modem /mnt
cp -ap /mnt/image/* /lib/firmware/postmarketos
umount /mnt
mount /dev/disk/by-partlabel/persist /mnt
mkdir -p wlan/prima
cp -ap /mnt/WCNSS_wlan_dictionary.dat wlan/prima/
umount /mnt
Make a link in case the firmware path doesn't include /lib/firmware/postmarketos
cd /lib/firmware
ln -s /lib/firmware/postmarketos/* /lib/firmware/
Modem
Make the necesary links for qcom_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 modem-qcom-msm-downstream-common qcom_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 qcom_rmtfs on a terminal
export LD_PRELOAD=/usr/lib/preload/libqipcrtr4msmipc.so
qcom_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