V151 breaks wiringPi


After upgrading to DietPi v151 last night wiringPi has stopped working. I get an error message about an unsorported Raspberry Pi. I’m running on a Pi3

Any ideas why?

kellis@HomePi:~/script $ gpio -v
gpio version: 2.32
Copyright (c) 2012-2015 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Unable to determine hardware version. I see: Hardware   : BCM2835
 - expecting BCM2708 or BCM2709.
If this is a genuine Raspberry Pi then please report this
to projects@drogon.net. If this is not a Raspberry Pi then you
are on your own as wiringPi is designed to support the
Raspberry Pi ONLY.
kellis@HomePi:~/script $

Hi Keith,

This is a “bug” in the current RPi 4.9 kernel. Basically they changed which BCM HW ID gets returned:

We either need to wait for a fix from RPi (then updated our kernel), or, if this is now intended results, inform WiringPi of the change in kernel.

I see dietpi installs version 2.32 of wiringPi. If I manually upgrade to the latest version of wiringPi 2.44 it seems to work fine. Can you update DietPi to use wiringPi 2.44?

Now I’ve manually upgraded wiringPi will this break future DietPi updates?

Hi Keith,

Thanks for the heads up.
Your current installation will be fine, we will patch a reinstall during v152 update, to resolve this issue with outdated Wiring Pi on 4.9 kernel: