Skip to content

Raspberry Pi 4/5: LinuxCNC 2.9.8 (Trixie) – hal_gpio still not working #3692

@stefantobiasiewicz

Description

@stefantobiasiewicz

Hello guys,
I tried to start LinuxCNC 2.9.8 (Jan 3, 2026) using the hal_gpio configuration on the Debian Trixie image, and I get the following error:

Debug file information:
Note: Using POSIX realtime
rtapi_app: chip.c:186: gpiod_chip_get_line_offset_from_name: Assertion `chip' failed.
./test.hal:16: waitpid failed /usr/bin/rtapi_app hal_gpio
./test.hal:16: /usr/bin/rtapi_app exited without becoming ready
./test.hal:16: insmod for hal_gpio failed, returned -1
32101
Stopping realtime threads
Unloading hal components
Waited 3 seconds for master.  giving up.
Note: Using POSIX realtime
hal_gpio: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1

I tested this on Raspberry Pi 4 and Raspberry Pi 5 — the error is the same on both.

Line 16 in the HAL configuration:

loadrt hal_gpio inputs=GPIO16,GPIO19,GPIO20,GPIO21 \
        pullup=GPIO16,GPIO19,GPIO20,GPIO21 \
        invert=GPIO16,GPIO19,GPIO20,GPIO21 \
        outputs=GPIO5,GPIO6,GPIO12,GPIO13,GPIO22,GPIO23,GPIO24,GPIO25

According to the 2.9.8 changelog, this issue should be fixed, but I still cannot run the Trixie image on Raspberry Pi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions