树莓派CM4 GPIO

出现如下错误

# gpio readall
Oops - unable to determine board type... model: 20

wiringpi
参考
http://wiringpi.com/
https://github.com/guation/WiringPi-arm64

build
# bash build

出现如下错误

# gpio readall
gpio: Symbol `piModelNames' has different size in shared object, consider re-linking
Oops - unable to determine board type... model: 20

ld.so.conf

# vi /etc/ld.so.conf

/usr/local/lib/*  #添加

# sudo ldconfig 
原文地址:https://www.cnblogs.com/zhangxuechao/p/15020845.html