Actually, hal_gpio might "just work" in this case.
Try this command and see if it reports the pins:
If you get "command not known" then
Code:
sudo apt-get install libgpiod
If the pins are reported, then:
linuxcnc.org/docs/stable/html/drivers/hal_gpio.html