Hardware: ClockworkPi uConsole, CM5 Lite, HackerGadgets AIO v2, Parrot OS (kernel 7.1.4-v8+)
Use case: MeshCore / LoRa via the AIO v2 SX1262 (driven by pymc_core)
TL;DR: My SX1262 suddenly stopped being detected (“SX1262 not detected on SPI bus”). After exhaustive testing I’ve ruled out software, device tree, config, power, GPIO and the antenna. The SPI bus is fully up and spidev is bound, the chip’s control pins respond, the LoRa rail draws power — but the chip returns all zeros on every SPI read. Looks like a hardware fault on the SX1262 SPI data path. Posting the full diagnostic trail in case anyone has seen this, or can confirm whether the SX1262 on the AIO v2 is replaceable vs soldered.
It worked fine until ~last week. Nothing was changed physically. It broke after a routine system update.
=== Symptom ===
In the app, LoRa toggles “on” but shows IDLE, the MeshCore messenger is greyed out, and the log repeats:
[LoRa] SX1262 not detected on SPI bus
[SYS] LoRa disabled, MeshCore stopped
=== What I checked (all OK / ruled out) ===
1. pymc_core present and imports:
.venv/bin/python3 -c “import pymc_core; print(‘ok’)” → ok
(note: an earlier update had wiped pymc_core from the venv; reinstalling
pymc_core==1.0.12 fixed a separate “LoRa greyed” issue, but the SPI
detection problem remained.)
2. GPIO works on CM5 (rpi-lgpio shim, not the old RPi.GPIO):
import RPi.GPIO → setmode/setup/cleanup → “GPIO OK”
3. gpiochip symlink for CM5 present (udev rule, created at boot):
/dev/gpiochip0 → /dev/gpiochip15 (RP1, pinctrl-rp1, 54 lines)
4. LoRa power rail ON and drawing current:
aiov2_ctl --status → LORA GPIO16: ON
aiov2_ctl --measure lora → Δ ~ -0.43 W (so the chip IS powered)
5. Antenna connected (checked physically), nothing else holds the radio:
meshtasticd inactive, fuser /dev/spidev1.0 = only the game
6. SPI device + permissions:
/dev/spidev1.0 exists (fixed perms to root:spi 660)
7. config.txt is correct — spi1 is properly under [cm5]:
[cm5]
dtoverlay=clockworkpi-uconsole-cm5
dtparam=uart0
dtoverlay=spi1-1cs
(dtparam=spi=on is set globally too)
8. SPI1 is actually enabled in the live device tree:
/proc/device-tree/aliases/spi1 → /axi/pcie@1000120000/rp1/spi@54000
spi@54000/status = “okay”
spi@54000 has child node spidev@0 (so spidev IS bound, CS0)
(runtime “dtoverlay spi1-1cs” fails to apply — expected, since spi1 is
already configured by the base CM5 DT; the overlay is redundant.)
=== The decisive low-level test ===
Raw SPI to the SX1262, with a manual reset first and explicit mode 0:
# reset SX1262 (GPIO25 low->high), read BUSY (GPIO24)
BUSY after reset: 0 (0 = ready — control pin responds fine)
# SPI GetStatus (0xC0) and ReadReg 0x0740, mode 0, several tries
GetStatus: [0x0, 0x0]
ReadReg 0x0740: [0x0, 0x0, 0x0, 0x0, 0x0]
GetStatus x3 @ mode 0: [0x0,0x0] / [0x0,0x0] / [0x0,0x0]
So: SPI bus enabled + spidev bound + CS configured, BUSY control pin reads a
clean 0 after reset, rail powered — but the chip returns pure zeros on MISO
every time. Control pins work; the SPI data path from the chip is dead.
=== My conclusion ===
Everything software / device-tree / config / power / GPIO / antenna checks out.
The SX1262 responds on its reset/busy control lines but returns nothing on SPI
data. That points to a hardware fault — a failed/degraded MISO or CS connection,
or the SX1262’s SPI interface itself. It worked a week ago with no physical
changes, which is the puzzling part (it broke around a system update, but I
can’t see how an update kills the SPI data line while leaving the bus, spidev,
control pins and power all healthy).
=== Questions ===
1. Has anyone seen the SX1262 go “not detected on SPI bus” on the AIO v2 while
everything else (SDR, GPS, RTC, USB) still works?
2. On the AIO v2, is the SX1262 a replaceable module/part, or soldered to the
board? (Trying to decide reseat/replace-chip vs replace-whole-board.)
3. Any known issue where a Parrot/RPi kernel or firmware update affects RP1
SPI1 even though the device tree still shows spi@54000 as “okay”?
4. Anything obvious I’ve missed before I treat this as dead LoRa hardware?
Rest of the board is 100% fine — SDR, GPS, RTC, USB, Ethernet all working.
Only the SX1262 is affected. Thanks for any pointers.