Motorola Moto E5 Plus (motorola-hannah)

From postmarketOS
Jump to navigation Jump to search

IMPORTANT!

Port is discontinued and can't boot

In troubleshooting "boot partiton is smaller than boot.img" no. boot.img is bigger than partition so for good booting require make smaller.

Motorola Moto E5 Plus
[[File:|200px|alt=]]
Name Motorola Moto E5 Plus
Codename motorola-hannah
Released 2018
Category testing
Original software Android 8.0
Hardware
Chipset Qualcomm Snapdragon 425 (MSM8916)
CPU 1.40 GHz
GPU Adreno 308
Display 720x1440
Storage 32 GB
Memory 3 GB
Architecture aarch64
Features
USB Networking
Flashing
Partial
Touchscreen
Display
WiFi
FDE
Mainline
Battery
3D Acceleration
Audio
Bluetooth
Camera
GPS
Mobile data
SMS
Calls
USB OTG
NFC
Sensors
Accelerometer
Magnetometer
Ambient Light
Proximity
Hall Effect
Barometer
Power Sensor
Misc
Camera Flash
Keyboard
Touchpad
USB-A
HDMI/DP
Ir TX
Ir RX
Stylus
Haptics
Ethernet
FOSS bootloader




Arguments

-> = 'next' WIKI IS IN CONSTRUCTION SO OTHER ELEMENTS IS UNKNOWN

Contributors

  • Operachi

Users owning this device

  • Operachi

How to enter flash mode

Volume Down + Power

Download important files

In Terminal write

cd <workdir>/cache_git/pmaports/device
git clone https://gitlab.com/Operachi/motorola-hannah-postmarketos.git testing

Next write

pmbootstrap init

and choose workdir with important files, name of device and codename and Desktop environment. Next write in terminal

pmbootstrap install --android-recovery-zip && pmboostrap export

Mount SDCARD or other device

# mount /dev/mmcblk<number-of-sdcard-devices>p<number-of-partion-in-sdcard> <dir>
e.g # mount /dev/mmcblk0p1 /mnt/sdcard
# cp /tmp/postmarketos-export/pmos-motorola-hannah.zip <dir>
# umount <dir>

Installation

STEP 1

Use TWRP to install zip file

From SDCARD or other device

Install -> Choose SDCARD/Other Device -> Choose zip with pmos -> Install -> Done

Or if you want install from computer write in terminal "pmboostrap flasher --method=adb sideload" connect cable to phone with computer and

Advanced -> ADB Sideload -> Swipe to Start Sideload

STEP 2

If in TWRP log shown failed flashing boot image or something like that, do install boot.img from fastboot (pmbootstrap)

pmbootstrap install && pmbootstrap export

Next make in terminal

pmbootstrap flasher boot
pmbootstrap flasher flash_kernel

STEP 3

You installed PostmarketOS on Motorola Moto E5 Plus (motorola-hannah) Congratulations

Troubleshooting

Important Things

If you can't install pmos via fastboot reason is a error with "Image is bigger than storage" something like that.

Boot Image is larger than partition

If you have error like this

TWRP LOG TEXT

[IMAGE FLASH STARTED]
Image to flash: '/external_sd/boot.img'
Calculating restore details...
I:Image filename is: boot.img
I:Size (29495296 bytes) of image 'boot.img' is larger than target device '/dev/block/mmcblk0p37' (16777216 bytes)
Size of image is larger than target device
I:Set page: 'action_complete'

You must a resize boot partition e.g "/dev/block/mmcblk0p37" For example partition named "/dev/block/mmcblk0p37" have 16MB size in bytes have 16777216B and you want change size. Next you must have recovery e.g TWRP. Enter to TWRP in motorola and connect cable to computer. Next write in command-line app "adb devices" if you have android-tools. After writing this command write "adb shell" and "fdisk /dev/block/mmcblk0" /dev/block/mmcblk0 is storage in phone with other partitions and in this storage we have boot partition. In fdisk delete /dev/block