Jump to content

HMD Global Nokia 5.1 (nokia-CO2)

From postmarketOS Wiki
HMD Global Nokia 5.1
Nokia 5.1 TA-1075 (back cover removed)
Nokia 5.1 TA-1075 (back cover removed)
Manufacturer HMD Global
Name Nokia 5.1
Codename nokia-co2
Model TA-1075
Released 2018
Type handset
Hardware
Chipset MediaTek Helio P18 (MT6755S)
CPU Octa-core (4x2.0 GHz Cortex-A53
4x1.2 GHz Cortex-A53)
GPU Mali-T860MP2
Display 1080 x 2160 pixels, 18:9 ratio @ IPS LCD 5.5 inches, 78.1 cm2
Storage 16GB/32GB
Memory 2/3GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android 8.0 (Oreo)
Extended version
The most recent supported version from the manufacturer.
Android 10, Android One
FOSS bootloader no
postmarketOS
Pre-built images
Whether pre-built images are available here.
no
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no
pmOS kernel
The kernel version that runs on the device's port.
3.18.119
Unixbench score
Unixbench Whetstone/Dhrystone score. See Unixbench.
0.0

Contributors

Users owning this device

How to enter flash mode

Plug in USB, press and hold power and press and hold volume down as fast as you can, then release power when you see Nokia logo.

Installation

Unlocking bootloader

  1. Power off the device
  2. Install mtkclient
  3. Run python mtk da seccfg unlock
  4. Hold a Vol- button and connect device to PC
  5. Wait for the script to finish

Backup

Do not skip backup steps. It will help to escape a bootloop, if you catch one.

  1. Install mtkclient
  2. Dump all partitions to directory "out":python mtk.py rl out
Note It is possible to dump only boot partition: python mtk.py r boot_b boot_b.bin

Using pmbootstrap

Warning WARNING: Please be aware that currently installing device-nokia-co2 from stsdc's repo results in bootloop.

Follow Installation/Using pmbootstrap. When asked for the device's vendor/codename, select nokia as the vendor and co2 as the codename.

To flash the image to the device:

  • Enter flashing mode (see #How to enter flash mode)
  • Run pmbootstrap flasher flash_kernel to flash the kernel
  • Run pmbootstrap flasher flash_rootfs
Hint To escape a bootloop it is needed to reflash stock boot partition via mtkclient.

Execute ./mtk.py w boot_b boot_b.bin. It will wait for BROM.

To enter BROM, disconnect battery and disconnect device from PC. Then press and hold Vol- and connect device to PC.

Debugging

Using serial communication

  • Baudrate: 921600
The TX pin

Stock kernel cmdline

console=tty0 console=ttyMT0,921600n1 vmalloc=400M slub_max_order=0 slub_debug=OFZPU androidboot.hardware=mt6755 firmware_class.path=/vendor/firmware loop.max_part=7 androidboot.boot_devices=bootdevice,11230000.mmc androidboot.verifiedbootstate=orange skip_initramfs rootwait ro init=/init root=/dev/dm-0 dm="system none ro,0 1 android-verity PARTUUID=3645e6a3-a7e3-19b2-4941-172c10190eef " androidboot.slot_suffix=_b androidboot.slot=b buildvariant=user androidboot.veritymode=enforcing androidboot.fac=0 fih_panelid=0x00000000 fih_hwid=0x161 androidboot.emmc=ture ramtest_result=0x0 emmc_total_size=0x748800000 emmc_user_size=0x747c00000 memory_type=0x0 ddr_vendor=0x0 ramtest_result=0x0 androidboot.serialno=CO2BB80704005478 androidboot.colorver=L androidboot.sim_card_slot=2 androidboot.simslot=2 androidboot.hwmodel=CON androidboot.hardware.revision=3.0 androidboot.nfc=stm androidboot.product.hardware.sku=nfc cali_x=0 cali_y=0 cali_z=0 androidboot.sk

See also