Skip to content

Sonim XP8 (XP8800)

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 and Bootloader unlock.

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.

Contents

  • Device overview: model numbers, market specifications, rugged ratings, carriers, and the reference unit
  • Processor, PMICs, and memory: Snapdragon 630, PM660/PM660L, LPDDR4, eMMC, and firmware versions
  • Display: the JDI NT35696 1080×1920 command-mode DSI panel, timings, supplies, and DCS sequences
  • Touchscreen: Parade/Cypress TrueTouch Gen5 on I²C, its protocol, geometry, and power sequence
  • Buttons and keys: all nine physical keys, their sources, polarities, and Linux key codes
  • Audio: WCD934x codec, dual TFA9890 amplifiers, MI2S routing, and accessory audio
  • Wireless: WCN3990 Wi-Fi/Bluetooth, the SDR660 transceiver, and the modem/Wi-Fi dependency
  • Cameras: OV12A10 rear and OV8856 front sensors, MIPI CSI slots, actuators, and flash
  • Sensors: the ADSP-attached IMU, magnetometer, proximity/light, barometer, and hall sensors
  • NFC: the NXP NCI controller, its pins, power-up sequence, and secure-element line
  • Power and battery: PM660 charger and fuel gauge, battery profile, USB-PD, haptics, and LEDs
  • Connectors and accessories: USB-C, the side SecureAudio port, the top SPI connector, and the rear XPand interface
  • Security: TrustZone-reserved pins, the Goodix fingerprint sensor, the secure element, and verified boot
  • Pin map: TLMM, PM660, and PM660L GPIO assignments
  • Memory map: the fixed DRAM reservations that the stock firmware expects
  • Partitions: the full eMMC GPT partition list and the Android boot-image layout
  • Boot chain: PBL → XBL → ABL → U-Boot → Linux, and how each stage is packaged
  • Bootloader unlock: the abl_a + frp EDL unlock, why it works, and its risks
  • EDL and Firehose: Qualcomm Emergency Download mode, the programmer, and read-only access
  • Fastboot: the ABL fastboot command table, getvar variables, and slot behavior
  • NV partitions and backup: the partitions that hold the IMEI, calibration, and keys, and how to back them up
  • Stock firmware: how to extract the stock device tree, kernel config, and firmware blobs
  • Mainline Linux: upstream SDM630 support, driver status for each peripheral, and bring-up notes
  • Reverse-engineering notes: the tools and methods behind these facts
  • References: datasheets, upstream projects, and public sources

How the pages fit together

flowchart LR
  subgraph HW["Hardware"]
    DEV["Device overview"]
    SOC["Processor and memory"]
    PER["Display · Touch · Keys · Audio · Wireless · Cameras · Sensors · NFC · Power · Connectors"]
    MAP["Pin map · Memory map"]
  end
  subgraph FW["Firmware and boot"]
    PART["Partitions"]
    BOOT["Boot chain"]
    UNLOCK["Bootloader unlock"]
    EDL["EDL and Firehose"]
    FB["Fastboot"]
    NV["NV partitions and backup"]
    STOCK["Stock firmware"]
  end
  subgraph OS["Operating system"]
    LIN["Mainline Linux"]
    RE["Reverse-engineering notes"]
  end
  DEV --> SOC --> PER
  SOC --> MAP
  PART --> BOOT --> UNLOCK
  EDL --> UNLOCK
  FB --> BOOT
  NV --> STOCK --> LIN
  PER --> LIN
  RE --> PER

The next diagram shows the major on-board parts of the XP8800 at system level.

flowchart TB
  subgraph SoC["Qualcomm SDM630 SoC"]
    CPU["8x ARM Cortex-A53"]
    GPU["Adreno 508"]
    MDSS["MDSS / DSI0 display"]
    CAMSS["CAMSS / ISP"]
    SLIM["SLIMbus"]
    QUP["QUP: I2C · SPI · UART"]
    DWC3["USB DWC3"]
    ADSP["ADSP (Hexagon)"]
    MSS["Modem (Hexagon)"]
  end
  PMIC["PM660 + PM660L"]
  EMMC["Samsung eMMC 64 GB"]
  SD["microSD"]
  DSI["JDI NT35696 panel"]
  TOUCH["Cypress TrueTouch Gen5"]
  AMP["2x NXP TFA9890"]
  WCN["WCN3990 Wi-Fi/BT"]
  RF["SDR660 transceiver"]
  NFC["NXP NCI + eSE"]
  FP["Goodix fingerprint (TEE)"]
  CAM["OV12A10 + OV8856"]
  SENS["IMU · mag · light · baro (via ADSP)"]

  CPU --- PMIC
  CPU --> EMMC
  CPU --> SD
  MDSS --> DSI
  QUP --> TOUCH
  QUP --> AMP
  QUP --> NFC
  QUP --> FP
  SLIM --- AMP
  CAMSS --> CAM
  DWC3 --> PMIC
  ADSP --> SENS
  MSS --> WCN
  MSS --> RF

Safety first

A correct full EDL dump in a second offline location is the only safe starting point.

  1. Before you do a destructive task, make a full EDL dump.
  2. Make sure that the dump is correct.
  3. Copy the dump to a second offline location.

WARNING: Do not write the modemst1, modemst2, fsg, fsc, or persist partition of a different unit. This can break the IMEI and the calibration data of the phone.

WARNING: Do not flash keymaster*, xbl*, tz*, rpm*, hyp*, pmic*, keystore, devcfg*, cmnlib*, or devinfo. Reports say that this hard-bricks the phone.

CAUTION: Keep rmtfs read-only when the modem DSP operates. Wi-Fi is not possible without the modem DSP. A read-only rmtfs cannot write to the live NV partitions.

License

This repository has two licenses:

  • Code and utilities are released under the MIT license (see the LICENSE file). They are the scripts, the tools, and the documentation website in web/.
  • Documentation is released under the Creative Commons Attribution-ShareAlike 4.0 International license (CC BY-SA 4.0): https://creativecommons.org/licenses/by-sa/4.0/. The documentation is the Markdown pages in this repository, including this page. See the LICENSE-DOCS file for the full legal text.

The hardware facts have no warranty.