# Sonim XP8 (XP8800) hardware and firmware reference > The **Sonim XP8** is a rugged Android smartphone that works with gloves and when wet. It uses the Qualcomm **Snapdragon 630 (SDM630)** platform. It has a screw-secured IP68/IP69K shell and a battery that you can remove. The market rating of the battery is 4,900 mAh. It also has a full 1080p panel, USB-C, NFC, and a fingerprint reader. A small number of other rugged phones have all of these items together. The phone has dedicated physical keys: **push-to-talk (PTT)**, **SOS**, and programmable buttons. These keys make the XP8 a good field device for users who want to change the hardware or software. This wiki is a **standalone hardware and firmware reference**. It collects facts about the SoC, PMIC, display, touch, audio, and wireless parts of the XP8800. It also has facts about the cameras, sensors, connectors, pin map, memory map, and partitions. The wiki also describes the boot chain, the bootloader-unlock mechanism, and the condition of mainline Linux support. With this wiki, a new owner of an XP8 does not have to find the low-level details again. All facts come from public sources and from one personally owned retail AT&T unit (stock build `8A.0.10-19-10.0.0-10.34.03`). This wiki does not include per-unit data. Per-unit data is the IMEI, the radio calibration, and the device keys. If a fact depends on how the author got it, the page gives a confidence label: | Label | Meaning | |---|---| | **Unit** | Read from the phone itself. Examples are a chip ID register, a sysfs value, or a working test. | | **Stock** | Named by the stock device tree, a stock config file, or a vendor driver or firmware string. It shows what the software was built for. It does not always show what is soldered on. | | **Inferred** | Deduced from indirect evidence or general knowledge. Use it as a lead. Make sure that it is correct. | > **WARNING:** Make a full backup before you unlock the bootloader or write a partition. Make sure that the backup is correct. > These actions can permanently brick the phone. The bootloader-unlock mechanism in this wiki was > validated on one unit. It can work differently on a different unit, or not work. See > [NV partitions and backup](nv-partitions-and-backup.md) and [Bootloader unlock](bootloader-unlock.md). > **WARNING:** Do not overwrite the `modemst1`, `modemst2`, `fsg`, `fsc`, or `persist` partition with > data from a different unit. These partitions hold the IMEI, the radio calibration, and the per-unit keys. > Reports say that you cannot recover the phone after you do this. This file indexes the documentation as plain Markdown. Every link below is the raw, unmodified Markdown source of one page, byte-for-byte identical to the file at the root of the source repository (https://github.com/kerryhatcher/XP8). The pages are written as a standalone reference: they describe the SoC, PMICs, display, touch, keys, audio, wireless, cameras, sensors, NFC, power, connectors, pin map, memory map, partitions, boot chain, bootloader unlock, EDL, fastboot, NV backup, stock firmware, and mainline Linux support. Read the overview first, then the page that matches the task at hand. Links between pages use relative `.md` paths, which resolve against the same directory as this file. ## Overview - [Overview (README.md)](https://www.kerryhatcher.com/xp8/README.md): Start here. Explains what the XP8 is, how to read the confidence labels, the contents of the wiki, and the safety rules. ## Documentation - [Audio](https://www.kerryhatcher.com/xp8/audio.md): The audio path has a Qualcomm **WCD934x "Tavil"** codec on SLIMbus. It also has **two NXP TFA9890** Class-D speaker amplifiers on I²C and on a tertiary MI2S link. Covers: The audio path has a Qualcomm **WCD934x "Tavil"** codec on SLIMbus. It also has **two NXP TFA9890** Class-D speaker amplifiers on I²C and on a tertiary MI2S link.. - [Boot chain](https://www.kerryhatcher.com/xp8/boot-chain.md): The XP8800 uses the standard Qualcomm SDM630 boot flow. The primary boot loader (PBL) in mask ROM starts the XBL/UEFI firmware. The XBL/UEFI firmware then starts the Android Boot Loader (ABL). Covers: The XP8800 uses the standard Qualcomm SDM630 boot flow. The primary boot loader (PBL) in mask ROM starts the XBL/UEFI firmware. The XBL/UEFI firmware then starts the Android Boot Loader (ABL).. - [Bootloader unlock](https://www.kerryhatcher.com/xp8/bootloader-unlock.md): The stock Android 10 boot loader on the XP8800 has **no** `fastboot flashing` commands. It also does **not** keep its lock state in the `devinfo` partition (`devinfo` is 4 KiB of zeros on stock). The unlock method uses two items together: a **userdebug boot loader** and a flag byte in the `frp` partition. Covers: The stock Android 10 boot loader on the XP8800 has **no** `fastboot flashing` commands. It also does **not** keep its lock state in the `devinfo` partition (`devinfo` is 4 KiB of zeros on stock). The unlock method uses two items together: a **userdebug boot loader** and a flag byte in the `frp` partition.. - [Buttons and keys](https://www.kerryhatcher.com/xp8/buttons-and-keys.md): The XP8800 has **nine physical keys**. Most are usual active-low GPIO keys. The PM660 PMIC (PON block) gives the power key and the volume-down key. A PM660L GPIO gives the volume-up key. Covers: The XP8800 has **nine physical keys**. Most are usual active-low GPIO keys. The PM660 PMIC (PON block) gives the power key and the volume-down key. A PM660L GPIO gives the volume-up key.. - [Cameras](https://www.kerryhatcher.com/xp8/cameras.md): The XP8800 has a 12 MP rear camera and an 8 MP front camera. The two cameras use OmniVision sensors. Covers: The XP8800 has a 12 MP rear camera and an 8 MP front camera. The two cameras use OmniVision sensors.. - [Connectors and accessories](https://www.kerryhatcher.com/xp8/connectors.md): The XP8800 has four external interfaces: a **USB-C** port, a threaded side **SecureAudio** port, a top **SPI** connector, and the rear **XPand** pogo-pin accessory interface. Covers: The XP8800 has four external interfaces: a **USB-C** port, a threaded side **SecureAudio** port, a top **SPI** connector, and the rear **XPand** pogo-pin accessory interface.. - [Device overview](https://www.kerryhatcher.com/xp8/device-overview.md): The Sonim XP8 is a rugged Android phone that Sonim announced in 2018. Sonim sold it mainly to first responders and field workers through AT&T, Verizon, and FirstNet. An unlocked variant also exists. Covers: The Sonim XP8 is a rugged Android phone that Sonim announced in 2018. Sonim sold it mainly to first responders and field workers through AT&T, Verizon, and FirstNet. An unlocked variant also exists.. - [Display](https://www.kerryhatcher.com/xp8/display.md): The XP8800 has a 5.0-inch, 1080 × 1920 IPS LCD. A four-lane MIPI DSI link in **command mode** operates the panel. Covers: The XP8800 has a 5.0-inch, 1080 × 1920 IPS LCD. A four-lane MIPI DSI link in **command mode** operates the panel.. - [EDL and Firehose](https://www.kerryhatcher.com/xp8/edl.md): On the reference unit, EDL entry was most reliable when both volume keys were held and the cable went into a direct host port. EDL dropped out on a hub. The stock ABL does **not** support `fastboot oem edl`. Covers: On the reference unit, EDL entry was most reliable when both volume keys were held and the cable went into a direct host port. EDL dropped out on a hub. The stock ABL does **not** support `fastboot oem edl`.. - [Fastboot](https://www.kerryhatcher.com/xp8/fastboot.md): The **ABL** (Android Boot Loader) supplies fastboot. The stock Android 10 ABL has only basic flashing and query commands. The **AT&T 8.1 userdebug ABL** adds the `flashing` subcommands that change the lock state. This page describes the command set and the quirks seen on the XP8800. Covers: The **ABL** (Android Boot Loader) supplies fastboot. The stock Android 10 ABL has only basic flashing and query commands. The **AT&T 8.1 userdebug ABL** adds the `flashing` subcommands that change the lock state. This page describes the command set and the quirks seen on the XP8800.. - [Mainline Linux](https://www.kerryhatcher.com/xp8/mainline-linux.md): The stock kernel (`4.4.205-perf+`, built 2022-04-14) cannot be rebuilt or patched, and no public GPL kernel source has been found from Sonim. A modern kernel therefore means **mainline Linux plus a custom XP8 device tree** (`sdm630-sonim-xp8.dts`) built on the SDM630 upstream support. Covers: The stock kernel (`4.4.205-perf+`, built 2022-04-14) cannot be rebuilt or patched, and no public GPL kernel source has been found from Sonim. A modern kernel therefore means **mainline Linux plus a custom XP8 device tree** (`sdm630-sonim-xp8.dts`) built on the SDM630 upstream support.. - [Memory map](https://www.kerryhatcher.com/xp8/memory-map.md): The stock firmware needs a set of **fixed DRAM reservations**. These are for the firmware that operates on the modem, ADSP, WLAN, and video processors. One more reservation is for the framebuffer that the boot loader uses for the splash screen. A custom device tree must have the same reservations. If it does not, the applicable processor reads or writes incorrect memory. Covers: The stock firmware needs a set of **fixed DRAM reservations**. These are for the firmware that operates on the modem, ADSP, WLAN, and video processors. One more reservation is for the framebuffer that the boot loader uses for the splash screen. A custom device tree must have the same reservations. If it does not, the applicable processor reads or writes incorrect memory.. - [NFC](https://www.kerryhatcher.com/xp8/nfc.md): The XP8800 has an **NXP NCI 1.0** NFC controller on I²C. It has a dedicated secure-element (eSE) power line. Covers: The XP8800 has an **NXP NCI 1.0** NFC controller on I²C. It has a dedicated secure-element (eSE) power line.. - [NV partitions and backup](https://www.kerryhatcher.com/xp8/nv-partitions-and-backup.md): Five partitions hold **per-unit** identity and calibration data. You cannot make this data again from a different phone, from a firmware package, or from the cloud. Reports say that an overwrite of these partitions is effectively not recoverable. This is true especially with data from a different device. An overwrite can permanently break the modem. Covers: Five partitions hold **per-unit** identity and calibration data. You cannot make this data again from a different phone, from a firmware package, or from the cloud. Reports say that an overwrite of these partitions is effectively not recoverable. This is true especially with data from a different device. An overwrite can permanently break the modem.. - [Partitions](https://www.kerryhatcher.com/xp8/partitions.md): The XP8800 has a **GUID Partition Table (GPT)** on the internal eMMC. It uses an A/B (dual-slot) scheme and has **no dynamic (super) partitions**. The stock image is system-as-root. Covers: The XP8800 has a **GUID Partition Table (GPT)** on the internal eMMC. It uses an A/B (dual-slot) scheme and has **no dynamic (super) partitions**. The stock image is system-as-root.. - [Pin map](https://www.kerryhatcher.com/xp8/pin-map.md): This page lists the known GPIO assignments of the XP8800. Pins are **TLMM** pins (the Top-Level Mode Multiplexer or pinctrl of the SoC), unless the table shows a different type. Covers: This page lists the known GPIO assignments of the XP8800. Pins are **TLMM** pins (the Top-Level Mode Multiplexer or pinctrl of the SoC), unless the table shows a different type.. - [Power and battery](https://www.kerryhatcher.com/xp8/power-and-battery.md): The PM660 contains the charger, the fuel gauge, the PD PHY, and the haptics. The PM660L contains the LEDs, the flash, and the backlight. Covers: The PM660 contains the charger, the fuel gauge, the PD PHY, and the haptics. The PM660L contains the LEDs, the flash, and the backlight.. - [Processor, PMICs, and memory](https://www.kerryhatcher.com/xp8/processor-and-memory.md): The XP8800 uses a Qualcomm **SDM630** SoC. It has the **PM660** and **PM660L** power-management ICs and a standard Snapdragon 6-series memory and storage layout. Covers: The XP8800 uses a Qualcomm **SDM630** SoC. It has the **PM660** and **PM660L** power-management ICs and a standard Snapdragon 6-series memory and storage layout.. - [References](https://www.kerryhatcher.com/xp8/references.md): This page lists the public sources, upstream projects, and tools that we used to make this wiki. The links are in groups by topic. Covers: This page lists the public sources, upstream projects, and tools that we used to make this wiki. The links are in groups by topic.. - [Reverse-engineering notes](https://www.kerryhatcher.com/xp8/reverse-engineering-notes.md): Most of the facts in this wiki were derived without a public schematic. This page records **how** they were obtained, so the work can be repeated, checked, or extended. Nothing here requires exotic equipment beyond a host PC, a USB cable, and the phone. Covers: Most of the facts in this wiki were derived without a public schematic. This page records **how** they were obtained, so the work can be repeated, checked, or extended. Nothing here requires exotic equipment beyond a host PC, a USB cable, and the phone.. - [Security](https://www.kerryhatcher.com/xp8/security.md): The security model of the XP8800 has three parts. These are Qualcomm Secure Boot and TrustZone, a fingerprint sensor that TrustZone controls, and an NFC secure element. TrustZone locks some GPIO banks. This is a hard limit for each custom device tree. Covers: The security model of the XP8800 has three parts. These are Qualcomm Secure Boot and TrustZone, a fingerprint sensor that TrustZone controls, and an NFC secure element. TrustZone locks some GPIO banks. This is a hard limit for each custom device tree.. - [Sensors](https://www.kerryhatcher.com/xp8/sensors.md): The movement, environmental, and proximity sensors are **not** on the I²C/SPI buses of the application processor. They are on the **ADSP sensor core (SSC)**. Covers: The movement, environmental, and proximity sensors are **not** on the I²C/SPI buses of the application processor. They are on the **ADSP sensor core (SSC)**.. - [Stock firmware](https://www.kerryhatcher.com/xp8/stock-firmware.md): No public GPL kernel source exists for the XP8800, so the **stock firmware is the primary reference** for facts about the hardware. A full EDL dump has all the necessary data. With it, you can extract the device tree, the kernel configuration, the vendor userspace, and the proprietary firmware blobs. Covers: No public GPL kernel source exists for the XP8800, so the **stock firmware is the primary reference** for facts about the hardware. A full EDL dump has all the necessary data. With it, you can extract the device tree, the kernel configuration, the vendor userspace, and the proprietary firmware blobs.. - [Touchscreen](https://www.kerryhatcher.com/xp8/touchscreen.md): The XP8800 uses a **Parade / Cypress TrueTouch Gen5** capacitive controller. It uses the HID-over-I²C protocol. The mainline Linux driver `cyttsp5` (`compatible = "cypress,tt21000"`) operates with this protocol. Covers: The XP8800 uses a **Parade / Cypress TrueTouch Gen5** capacitive controller. It uses the HID-over-I²C protocol. The mainline Linux driver `cyttsp5` (`compatible = "cypress,tt21000"`) operates with this protocol.. - [Wireless](https://www.kerryhatcher.com/xp8/wireless.md): The XP8800 has a Qualcomm **WCN3990** Wi-Fi/Bluetooth combo and an **SDR660** cellular transceiver. The WLAN MAC of the WCN3990 operates on the modem Hexagon DSP. Covers: The XP8800 has a Qualcomm **WCN3990** Wi-Fi/Bluetooth combo and an **SDR660** cellular transceiver. The WLAN MAC of the WCN3990 operates on the modem Hexagon DSP.. ## Optional - [Full text](https://www.kerryhatcher.com/xp8/llms-full.txt): Every page above concatenated into one Markdown file, for loading the whole set into context at once. - [Source repository](https://github.com/kerryhatcher/XP8): Git history, issues, and pull requests for these documents.