firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Feature Request]:Add user button pin to meshtasticd for Raspbian platforms

Open paulf1965 opened this issue 4 months ago • 9 comments

Platform

Linux Native

Description

The button pin doesn't appear to be defined for Linux Native boards (in my case a PI 4) which is a bit of an issue for controlling the display. Either I've missed something (which is quite possible) or this function isn't enabled. Setting the button pin option in the config doesn't do anything.

Many thanks, Paul.

paulf1965 avatar Aug 27 '25 18:08 paulf1965

I've had a go myself based on the RP2040 similar issue and was making progress (managed to VSCode and the build environment working in a docker container) but the built "program" fails to run with a Exec format error. It's clearly not building for a Pi but I'm now at the limit of my knowledge.

paulf1965 avatar Aug 28 '25 07:08 paulf1965

Isn't there a button GPIO in the config?

mverch67 avatar Aug 28 '25 13:08 mverch67

but the built "program" fails to run with a Exec format error. It's clearly not building for a Pi but I'm now at the limit of my knowledge.

native is not cross-compiling, you'd need to build on a pi to get the executable for a pi

mverch67 avatar Aug 28 '25 13:08 mverch67

Isn't there a button GPIO in the config?

Yes there is but it doesn't work. There is a define missing in the platform specific definitions.

paulf1965 avatar Aug 28 '25 19:08 paulf1965

but the built "program" fails to run with a Exec format error. It's clearly not building for a Pi but I'm now at the limit of my knowledge.

native is not cross-compiling, you'd need to build on a pi to get the executable for a pi

OK. So the other platforms cross compile but native doesn't (just checking my understanding).

paulf1965 avatar Aug 28 '25 19:08 paulf1965

OK. So the other platforms cross compile but native doesn't (just checking my understanding).

yes, esp32 / nrf / rp2040 / stm are all cross-compiling using the respective build framework for compilation and linking for the target, while linux builds only locally (no target buildroot). Though, there are some for milkv and luckfox.

mverch67 avatar Aug 29 '25 07:08 mverch67

This issue has not had any comment or update in the last month. If it is still relevant, please post update comments. If no comments are made, this issue will be closed automagically in 7 days.

github-actions[bot] avatar Oct 16 '25 06:10 github-actions[bot]

HI @paulf1965 , which define was missing where to make this work?

fifieldt avatar Oct 16 '25 22:10 fifieldt

This issue has not had any comment or update in the last month. If it is still relevant, please post update comments. If no comments are made, this issue will be closed automagically in 7 days.

github-actions[bot] avatar Dec 05 '25 06:12 github-actions[bot]

This issue has not had any comment since the last notice. It has been closed automatically. If this is incorrect, or the issue becomes relevant again, please request that it is reopened.

github-actions[bot] avatar Dec 13 '25 06:12 github-actions[bot]