-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pi_sonar is nonfunctional for Pi4 rev 1.2 in 2020-11-07 image #13
Comments
Tried second Pi4 also on fresh 2020-11-07 image with same results. MAJOR CLUE: On both of my Pi4 the v26 frontpi image works on sonars. |
So here is how I got this to work on Nov 2020 image, this may or may not be overkill but does fix this so I am going to post to forum if the pigpio experts see this as reasonable sudo systemctl stop magni-base then these 3 basic operation (sorry for long lines)
|
Hmm I doubt all of that is needed. After all if you run I've tested out a fresh image and another node that uses pigpio (since I don't have a sonar board) and it really didn't run at first. So yeah, we should make a PR to pi_image_build to add that line into the build script and also perhaps |
Try commenting out: #ifdef arm for some reason the #ifdef arm |
Ah that makes sense, it's probably just armhf, we'll need to look up the preprocessor tag for arm64 and add an "or" in there. It would be helpful if you could make as a PR, Alan, since you're the only one who can test it right now. |
When you have eliminated the impossible, whatever remains, however
improbable, must be the truth.
…---- Attributed to Sit Arthur Conan Doyle in Sherlock Holmes stories.
On Sun, Apr 17, 2022, 9:16 AM MoffKalast ***@***.***> wrote:
Ah that makes sense, it's probably just armhf, we'll need to look up the
preprocessor tag for arm64 and add an "or" in there.
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHZ372ZB7EXNSVCJHXPULDVFQ2L5ANCNFSM4WQKXEEQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have this working now on a PI 4 1.4 ARM64. just commented out the #ifdef arm So if somenone can verify this and figure out a workaround? I don't know why arm64 triggers bu arm32 doesn't, unless armhf is 'arm' and arm64 isn't. |
Assuming the tags from these answers are legit, then it may be possible to replace that line with something like the following:
Instead of detecting the various ARMs, we exclude the common amd64 and x86 where it wasn't intended to compile. You could also try if something like this compiles:
|
We have a Magni Silver show stopper on Pi4 on the 2020-11-07 image
I am unable to get the formulas used to fix 2020-02-10 image to work any more either on Pi4.
This formula did work back in July but I think submits in pi_sonar OR messing with pigpio changes
that happened just after Aug 2020 have broken sonar even on the 2020-02-10 image.
I know Rohan had a Nov or so new image but cannot contact him nor find a reference to that image.
That image MAY be the fix for this but in mean time customers have this fault and are on Forum now.
Here are my observations with 2020-11-07 image on Pi4 on a MCB rev 5.3
ZERO log errors but nothing is in the sonar topics
last sonar log ends in 'Cannot initialize gpio'. Also, No sonar topics exist
The text was updated successfully, but these errors were encountered: