V151 breaks wiringPi

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
keithellis
Posts: 41
Joined: Mon May 23, 2016 2:55 pm

V151 breaks wiringPi

Post by keithellis »

Hello,

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?

Code: Select all

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 $ 
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: V151 breaks wiringPi

Post by Fourdee »

Hi Keith,

This is a "bug" in the current RPi 4.9 kernel. Basically they changed which BCM HW ID gets returned:
https://github.com/raspberrypi/linux/issues/2008

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.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
keithellis
Posts: 41
Joined: Mon May 23, 2016 2:55 pm

Re: V151 breaks wiringPi

Post by keithellis »

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?
keithellis
Posts: 41
Joined: Mon May 23, 2016 2:55 pm

Re: V151 breaks wiringPi

Post by keithellis »

keithellis wrote: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?
Cheers,
Keith.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: V151 breaks wiringPi

Post by Fourdee »

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:
https://github.com/Fourdee/DietPi/issue ... -234544015
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply