Comments (3)
So problem solved.
There is a brilliant guy on stackexchange who gave the solution a few days ago.
The link to the post describes a work-around in the WiringPi source. By editing wiringpi.c with moving a line of code up by about 24 lines solved it.
It looks like this:
at line 782 (originally): #ifdef DONT_CARE_ANYMORE must be moved to just below line 758:
if ((cpuFd = fopen ("/proc/cpuinfo", "r")) == NULL)
piGpioLayoutOops ("Unable to open /proc/cpuinfo") ;
to look like:
if ((cpuFd = fopen ("/proc/cpuinfo", "r")) == NULL)
piGpioLayoutOops ("Unable to open /proc/cpuinfo") ; #ifdef DONT_CARE_ANYMORE
Build it and run gpio -v to check if the error pops up again.
Just a note: remove all previous wiringPi installations before commencing with this work-around.
Here is an ouput of gpio -v on one of the current RPi 4's:
gpio version: 2.70
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty
Raspberry Pi Details:
Type: Pi 4B, Revision: 01, Memory: 4096MB, Maker: Sony
* Device tree is enabled.
*--> Raspberry Pi 4 Model B Rev 1.1
* This Raspberry Pi supports user-level GPIO access.
I hope this will guide and help someone in the future.
Kudus to user160491 for the solution/work-around!
ps. I used master fork @ https://github.com/WiringPi/WiringPi/tree/master/wiringPi.
-g
from sprinklers_pi.
from sprinklers_pi.
This looks like wiringpi not understanding your hardware. SprinklerPi requires wiringpi for output control so you will need to get that working before it will work.
…
On Sat, Feb 17, 2024 at 11:50 AM gervann @.> wrote: So I ran into a problem when setting up two new rpi 4b’s. After installing bookworm (first trying 64bit and then 32bit) and installing WiringPi, the following error pops up after running gpio -v: 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. It affects the Ouput setting and gives an error, eventually leading to an unresponsive SprinklerPi. When installing a legacy os, like Bullseye, everything works (have working SprinklerPi’s on rpi 3b’s) Any advice would be appreciated so much -g — Reply to this email directly, view it on GitHub <#199>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIJXE4ILVJYQ3KERD5OULYUDNWRAVCNFSM6AAAAABDNN6JJGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DAMRZG4YDAOI . You are receiving this because you are subscribed to this thread.Message ID: @.>
Thank you.
Yes I figured that much. Forums are littered with people calling for a move away from wiringPi as it was deprecated a while ago. There are forks of it from enthusiasts who want to keep it alive, but I think new development and upgrades have stopped when Gordon shelved it.
This is where I am stuck and want to know if anybody else came across this?
I am a bit noobish with the code and need to focus my time elsewhere at the moment.
It leaves me with a dilemma as I need to commission two sprinkler systems this week.
Any insight or help will be greatly appreciated.
-g
from sprinklers_pi.
Related Issues (20)
- Temperate Area Weather Adjustments - eg UK HOT 11
- Wunderground & Openweather currently broken HOT 1
- Problem with AM/PM setting upon Make HOT 3
- Zone status change report to Telegram bot (help wanted) HOT 5
- sprinklers_pi stops running intermitently HOT 35
- Schedule name length HOT 3
- add weather forecast source from weatherbit.io HOT 6
- add weather forecast source from tomorrow.io
- Is there a way to clear log entries? HOT 7
- DarkSky Depreciation HOT 6
- OpernWeather API call fails HOT 1
- Seems to not be loading Styles? HOT 3
- Comunication error HOT 6
- munication error with sprinkler-pi
- Openweather API fails, no free historical data for new users? HOT 3
- Comparison against opensprinkler HOT 7
- Cannot run more than one zone at once HOT 1
- Confused with how Sprinklers works. HOT 5
- OW move from 2.5 to 3.0 call HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sprinklers_pi.