树莓派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 
posted @ 2021-07-16 16:46  thomas_blog  阅读(886)  评论(0编辑  收藏  举报