orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
394 stars 189 forks source link

Oops: Unable to determine board revision... #81

Closed elsabz closed 1 year ago

elsabz commented 1 year ago

I don't know why, I think after doing "sudo apt update/upgrade" (but I'm not sure), the wiringOP library on "orange pi 5" with Armbian 23.02.2 doesn't work anymore. If I run the command "sudo gpio readall" I get the following output:

Oops: Unable to determine board revision from /proc/device-tree/system/linux,revision or from /proc/cpuinfo -> No "Hardware" line -> You'd best google the error to find out why.

Can anyone help me solve this problem?

elsabz commented 1 year ago

I managed to solve the problem by myself! I found that I had a number of libwiringPi files inside the /usr folder, they are probably left over from previous attempts to install the wiringpi library. I removed these files manually and then proceeded to install this library. After this gpio readall started working again

elsabz commented 1 year ago

Problem is solved was my mistake!