Jump to content

AYN Odin (ayn-odin)

From postmarketOS Wiki
AYN Odin
AYN Odin
AYN Odin
Manufacturer AYN
Name Odin
Codename ayn-odin
Released 2019
Type handheld
Hardware
Chipset Qualcomm Snapdragon 845 (SDM845)
CPU Octa-core (4x 2.8 GHz Kryo 385 Gold
4x 1.7 GHz Kryo 385 Silver)
GPU Adreno 630
Display 1920x1080 IPS
Storage 128/256 GB
Memory 4/8 GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android 10
Extended version
The most recent supported version from the manufacturer.
Android
postmarketOS
Category testing
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
yes
Device package device-ayn-odin
Kernel package linux-postmarketos-qcom-sdm845
Features
Flashing
It is possible to flash the device with pmbootstrap flasher.
Works
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Works
Internal storage
eMMC, SD cards, UFS, ...
Works
SD card
Also includes other external storage cards
Works
Battery
Charging and battery level reporting works
Works
Screen
Display works. Ideally with sleep mode and brightness control.
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Audio playback, microphone, headset and buttons.
Partial
Connectivity
WiFi
Works
Bluetooth
Works
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Works
USB OTG
USB On-The-Go or USB-C Role switching
Broken
HDMI/DP
Video and audio output with HDMI or Display Port works.
Broken
Sensors
Accelerometer
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
Works
Magnetometer
Sensor to measure magnetism
Broken
Haptics
Broken


Preparation

Requires U-Boot flashed to boot_a or boot_b with dtbo erased.

See https://gitlab.com/jenneron/u-boot-sdm-845/-/releases/sdm845-phones-v0.2.0. Use u-boot-odin-m2.img file attached there.

Installation

pmbootstrap install --split, pmbootstrap export and flashing partitions to system and userdata. However, rootfs won't get resized automatically, this can be fixed by using resize2fs from Android.

TODO TODO: We should try to replace the whole UFS lun with 2 pmOS partitions, this should fix all issues with U-Boot flashing and resizing

Audio

Headphones work, but it is required to comment out speakers in C630 ucm

Missing features

  • compass/magnetometer
  • haptics
  • mics
  • speakers
  • HDMI (no hpd gpio, no ddc, works with device-tree hacks)
  • DisplayPort
  • USB-C in host mode (OTG)
  • cooling fan with higher GPU frequency