Nokia 1 (nokia-frt)

From postmarketOS
Jump to: navigation, search
Nokia 1
cute little phone
cute little phone
Manufacturer Nokia
Name 1
Codename nokia-frt
Released 2018
Original software Android 8.1 Go, kernel 3.18.79, armv7
postmarketOS kernel 3.18.79
Hardware
Chipset MediaTek MT6737M
CPU 4x 1.1GHz Cortex-A53
GPU Mali-T720 MP1
Display 480x854
Storage 8GB
Memory 1GiB
Architecture armv7
Unixbench Whet/Dhry score 910.4
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Xwayland
Works
FDE
Partial
Mainline
Battery
Partial
3D Acceleration
Accelerometer
Audio
Bluetooth
Camera
GPS
Mobile data
SMS
Calls
USB OTG



Contributors

Maintainer(s)


Users owning this device:


What works

  • Flashing
  • Booting
  • ssh
  • osk-sdl/charging-sdl
  • touch

What does not work

  • Everything else
  • after entering pass in osk-sdl it's stuck on "loading...", see pmaports#194
  • charging-sdl shows wrong percentage & crashes after few seconds on (!!!) *** UNIMPLEMENTED [fusion_get_fusionee_pid] *** [fusion.c:4147]

Current progress

Downstream kernel

There are official sources for 3.18, The CPU itself is aarch64 but the kernel was made for arm(v7) mode.

CPU cores are hotplugged.

Upstream kernel

Doesn't exist yet, dts files for the phone are available in downstream kernel

/dev/input/event*

evtest return 3 devices:

  • /dev/input/event0: ACCDET
    • Detect audio jack state and button presses on headphones
Input device name: "ACCDET"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 122 (KEY_HANGUEL)
    Event code 163 (KEY_NEXTSONG)
    Event code 164 (KEY_PLAYPAUSE)
    Event code 165 (KEY_PREVIOUSSONG)
    Event code 166 (KEY_STOPCD)
    Event code 231 (KEY_SEND)
    Event code 582 (KEY_VOICECOMMAND)
  Event type 5 (EV_SW)
    Event code 2 (SW_HEADPHONE_INSERT) state 0
    Event code 4 (SW_MICROPHONE_INSERT) state 0
    Event code 6 (SW_LINEOUT_INSERT) state 0
    Event code 7 (SW_JACK_PHYSICAL_INSERT) state 0
  • /dev/input/event1: mtk-kpd
    • detects KEY_VOLUMEDOWN, KEY_VOLUMEUP KEY_POWER keys state
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 114 (KEY_VOLUMEDOWN)
    Event code 115 (KEY_VOLUMEUP)
    Event code 116 (KEY_POWER)
  • /dev/input/event2: mtk-tpd
    • touchscreen, detects up to 4 fingers
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 330 (BTN_TOUCH)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value      0
      Min        0
      Max      480
      Resolution     480
    Event code 1 (ABS_Y)
      Value      0
      Min        0
      Max      854
      Resolution     854
    Event code 24 (ABS_PRESSURE)
      Value      0
      Min        0
      Max      255
    Event code 47 (ABS_MT_SLOT)
      Value      0
      Min        0
      Max        4
    Event code 48 (ABS_MT_TOUCH_MAJOR)
      Value      0
      Min        0
      Max      100
    Event code 49 (ABS_MT_TOUCH_MINOR)
      Value      0
      Min        0
      Max      100
    Event code 53 (ABS_MT_POSITION_X)
      Value      0
      Min        0
      Max      480
    Event code 54 (ABS_MT_POSITION_Y)
      Value      0
      Min        0
      Max      854
    Event code 57 (ABS_MT_TRACKING_ID)
      Value      0
      Min        0
      Max       10


How to enter flash mode

Directly to fastboot

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.

Through recovery

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. "No command" should appear. Press and hold power and then press and hold Volume Up and release both buttons after screen changes.

Scroll to bootloader using Vol up/down keys and press power to confirm.

Installation

First unlock the phone by hashing the serial number with MD5

// Have the phone booted in android and developer mode enabled
$ adb get-serialno
FRTBA80306545107

// Hash the serial number
$ echo -n FRTBA80306545107 | md5sum
e2a0704c877da26c57a305c216bf7245  -

// Feed the key to fastboot
$ sudo fastboot oem key e2a0704c877da26c57a305c216bf7245

// Unlock the bootloader
$ sudo fastboot oem unlock

Follow standard installation instructions after unlocking

See also