Skip to content

Change gpiochip0 to gpiochip15 #85

Description

@t984447

I got an issue where the UI never manages to connect to the LoRa Radio (?) and I suspect I need to change which gpiochipX is used.
How do change this value?

Below is the results of running the doctor.

USERNAME@clockworkpi:~ $ meshcore-console doctor
[OK] linux: Expected Linux host
[OK] spidev: Expected SPI1 device /dev/spidev1.0 — ensure dtoverlay=spi1-1cs is in /boot/firmware/config.txt
[FAIL] gpiochip: Expected GPIO chip /dev/gpiochip0
[OK] pymc_core: Python module import succeeded

I suspect the issue is that its trying to find the radio on gpiochip0
while a recent forum topic hints that it might be gpiochip15: Solved: Meshtastic connection failed?.

I forgot to mention that even after installing a fresh install of Meshtastic it still wasn’t opening. I found the issue. On the pi 5, the GPIO header isn’t assigned to gpiochip0 like Meshtastic expects by default—it’s assigned to gpiochip15. Because of that, Meshtastic was trying to access the wrong GPIO controller and crashed during startup. After I changed the Lora configuration text file to use gpiochip: 15, Meshtastic started working.

Cannot find gpiochip0

With aiov2_ctl lora on I find no gpiochip0

USERNAME@clockworkpi:~ $ find /dev/ -name "gpiochip"
/dev/gpiochip15
/dev/gpiochip14
/dev/gpiochip13
/dev/gpiochip12
/dev/gpiochip11

My setup

HG = Hackergadgets

  • uConsole
  • CM5 16 GB + Wifi + LITE [CM55116000]
  • HG AIOv2

Runnig Rex's Debian Trixie with the new kernel akrex-kernel-7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions