I was using wiringPi to to control the GPIO pins on a Raspberry Pi model 3 and 4b (these originally had Buster installed on them) successfully until today when I did a rpi-update to get kernel 6.1.
Now when I issue any commands based on wiringPi (including something simple like "gpio -v", I get this error on the console:
pi [01:23 AM] tmp$gpio -v gpio version: 2.52 Copyright (c) 2012-2018 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty
Oops: Unable to determine board revision from /proc/cpuinfo -> No "Hardware" line -> You'd best google the error to find out why.
I'd like to keep using wiringPi. Can you suggest how to get around this? By the way, here is the current contents of /proc/cpuinfo
pi [12:54 AM] test3$cat /proc/cpuinfo processor : 0 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3
processor : 1 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3
processor : 2 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3
processor : 3 BogoMIPS : 108.00 Features : fp asimd evtstrm crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd08 CPU revision : 3
Revision : b03112 Serial : 100000006864cf37 Model : Raspberry Pi 4 Model B Rev 1.2
I think I am still in 32-bit. Apparently there is no way to edit /proc/cpuinfo since the OS creates it.
Thanks in advance for your help! Any idea how to get it working again? If not, what is the best replacement to read and write IO pins?