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
Whether 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
Whether charging and battery level reporting work.
Works
Screen
Whether the 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 DisplayPort.
Broken
Sensors
Accelerometer
Handles automatic screen rotation in many interfaces.
Works
Magnetometer
Sensor to measure the Earth's magnetism
Broken
Haptics
Works

How to enter (fastboot) mode

Power on the device with both Power and Volume Down buttons.

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.

$ fastboot erase dtbo_b # optional
$ fastboot erase dtbo_a
$ fastboot erase boot_b # optional
$ fastboot flash boot_a ~/Downloads/u-boot-odin-m2.img
$ fastboot set_active a

Installation

$ pmbootstrap init
$ pmbootstrap install --split
$ pmbootstrap export
$ fastboot erase system_b # optional
$ fastboot flash system_a /tmp/postmarketOS-export/ayn-odin-boot.img
$ fastboot flash userdata /tmp/postmarketOS-export/ayn-odin-root.img
$ fastboot reboot

Missing features

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

Backlight

Sides:

$ echo 1 > /sys/class/leds/blue:backlight-1/brightness 
$ echo 1 > /sys/class/leds/blue:backlight-2/brightness

Sticks:

$ echo 0 > /sys/class/leds/blue:backlight-3/brightness 
$ echo 0 > /sys/class/leds/blue:backlight-4/brightness