这是因为 wiringpi 已经多年没有更新,无法识别之后的树莓派型号。
如果一定要用需要自己找到修改 wiringpi 库中识别板卡型号的代码,把 4B 的型号加上去解决。
That error comes from the function: piBoardRev(). This is called by the various wiringPiSetup() functions. The wiringPiSetup() function should only be called once per program run.
https://forums.raspberrypi.com/viewtopic.php?t=134191
https://blog.csdn.net/watershade2010/article/details/115118189