Wireless
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.
On this platform, Wi-Fi operates only with the modem processor. A Wi-Fi-only build must also start the modem firmware and the rmtfs/pd-mapper/tqftpserv userspace stack.
WCN3990 (Wi-Fi + Bluetooth)
| Item | Value | Confidence |
|---|---|---|
| Part | Qualcomm WCN3990 | Stock |
| Bluetooth HCI | uart@c1af000 (the only high-speed UART that is on) |
Unit |
| Bluetooth driver | hci_qca |
Unit |
| Bluetooth SoC version | 0x40020140, ROM 0x0201 |
Unit |
| Bluetooth firmware | qca/crbtfw21.tlv + qca/crnv21.bin |
Unit |
| Wi-Fi driver | ath10k_snoc |
Stock |
| Wi-Fi chip id / family | 0x140 / 0x4002 |
Unit |
| Wi-Fi board id | 0xff (not programmed, so you must select a calibration variant name) |
Unit |
| Wi-Fi firmware version | WLAN.HL.1.0.1.c2-01187 |
Unit |
| Supplies (stock) | PM660 L5 (0.85 V), L9 (1.8 V), L6 (1.3 V), L19 (3.3 V) | Stock |
The Bluetooth controller starts in mainline with hci_qca. Wi-Fi does not operate. The firmware starts, then the modem shows a WLAN runtime error because of the aggre2 SMMU, which is not protected (refer to the aggre2 section below).
Wi-Fi board file selection
The WCN3990 firmware needs a board-data file (bdwlan.* / board-2.bin). The QMI board ID selects the file.
On this unit, the board id reads 0xff, so you must select one of the 26 bdwlan candidates in the modem image (or the generic bdwlan.bin). All candidates are 19,152 bytes. They have 19 different payloads by SHA-256. This selection is open.
The modem dependency
On SDM630, ath10k_snoc loads its WLAN MAC firmware (wlanmdsp.mbn) onto the modem Hexagon QDSP6 (qcom_q6v5_mss). Wi-Fi needs these items:
qcom_q6v5_mss(modem remoteproc) and the SoCmssnodeqrtr,pd-mapper, andtqftpservrmtfs, which supplies the EFS/NV partitions (modemst1,modemst2,fsg) through QMI
flowchart LR WLAN["ath10k_snoc"] -->|loads wlanmdsp.mbn| MSS["Modem Hexagon (qcom_q6v5_mss)"] MSS --> QRTR["qrtr / QMI"] QRTR --> RMTFS["rmtfs"] QRTR --> PD["pd-mapper"] QRTR --> TQ["tqftpserv"] RMTFS -->|reads| NV["modemst1 · modemst2 · fsg"] MSS --> RF["SDR660 transceiver"]
WARNING: Operate
rmtfsin read-only mode during bring-up. Always use the-rflag. Do not letrmtfsopen a live eMMC NV partition for writing. A write can change the NV data of the modem.Preferred:
rmtfs -r -o /run/rmtfs-copywith isolated tmpfs copies (without-P). Alternative:rmtfs -r -P -s.Refer to NV partitions and backup.
Cellular: SDR660
| Item | Value | Confidence |
|---|---|---|
| Transceiver | Qualcomm SDR660 | Stock |
| Owner | Modem processor | Stock |
| Modem firmware | mba.mbn + modem.mdt (+ segments) |
Stock |
| Front-end parts | Not identified. Not necessary for mainline | None |
The modem processor starts in mainline with the mba.mbn and modem.mdt of this unit.
Cellular voice, SMS, and data do not operate correctly on all mainline SDM630/660 devices (ModemManager/oFono, ipa, and voice-audio UCM). They are a different task. Do them after Wi-Fi.
The aggre2 SMMU blocker
The bus master of Wi-Fi is behind the aggre2 SMMU at iommu@16c0000 (stream IDs 0x1a00, 0x1a01). The boot firmware keeps it on. Unmatched streams cause a fault:
| Register | Value |
|---|---|
sCR0 |
0x00200626 |
ID0 |
0x48017a06 |
ID1 |
0x4000800b |
SMR0 |
0 |
S2CR0 |
0x000200ff (fault) |
A read of offset 0x10 (auxiliary control) on a running system makes the phone stop operating. The mainline arm-smmu driver makes the kernel stop when it probes this block. The hypervisor or TrustZone protects some registers.
You can read these registers: 0x00, 0x04, 0x20, 0x24, 0x800, 0xc00. The stock tree marks this SMMU qcom,skip-init. This agrees with the observation.
| Observation | Result |
|---|---|
| Wi-Fi with SMMU off | The firmware starts, then stops with an error about 2.5 s later (EX:wlan_process:1:WLAN RT) |
| Wi-Fi with SMMU on | The kernel stops before the console starts, during probe |
| Readable registers | 0x00, 0x04, 0x20, 0x24, 0x800, 0xc00 |
| Register that stops the system | 0x10 (auxiliary control) |
| Clock | The a2noc interconnect provider has the clock. A hold on the clock does not remove the problem |
To make Wi-Fi operate, you must change the mainline SMMU driver. The driver must skip the protected accesses for this block.
Wireless memory reservations
The stock device tree reserves fixed DRAM regions for the modem/WLAN path. Refer to Memory map for the full table (rmtfs 0x85e00000, modem 0x8ac00000, ADSP 0x92a00000, and others).