CristianM
Posts: 4
Joined: Thu Mar 15, 2018 7:14 pm

Why is WiringiPi unable to find hardware revision?

Fri Feb 08, 2019 1:28 pm

Hi! I installed Ubuntu 18.04 on a Raspberry Pi 3 B+ and WiringPi following the instructions presented here. The problem is that when calling the GPIO utility, I get the following error:

Image

It seems that the hardware line is missing from /proc/cpuinfo:
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
Is there something I can do to make it work? Can I modify the cpuinfo file, or port wiringPi for Ubuntu? Or there is no solution other than using another linux image?

hippy
Posts: 6688
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Why is WiringiPi unable to find hardware revision?

Fri Feb 08, 2019 1:38 pm

CristianM wrote:
Fri Feb 08, 2019 1:28 pm
Is there something I can do to make it work? Can I modify the cpuinfo file, or port wiringPi for Ubuntu? Or there is no solution other than using another linux image?
Your first port of call should probably be to the devs who developed Wiring Pi who can best advise what to do or how to resolve things.

The Wiring Pi source is available so I am guessing there would be some way to hack it for your use.

FYI, my cpuinfo file on a Pi 3B running Raspbian includes the "Hardware" line you seem to be missing towards its end.

Code: Select all

processor       : 3
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : BCM2835
Revision        : a02082
Serial          : 00000000b18bd29f
[email protected]:~$

Return to “General discussion”