OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Raspberry Pi 5 (bookworm) not working with OSPI?
- This topic has 11 replies, 2 voices, and was last updated 1 month, 3 weeks ago by boz.
-
AuthorPosts
-
July 8, 2024 at 8:09 am #79458
bozParticipantHi,
My old raspberry 4 broke down and I upgraded to 5 and now it’s not working, I can’t open the valves.
Webpage is up and I login but not open any valves.
My OSPI board is v1.43 any ideas or suggestions on this matter?Regards Boz
July 8, 2024 at 8:59 am #79460
RayKeymasterPlease follow the instructions here to update your firmware to the latest:
https://openthings.freshdesk.com/support/solutions/articles/5000631599-installing-and-updating-the-unified-firmware-on-ospi
Bookworm made breaking changes about how GPIOs are operated and we’ve updated the firmware to address that issue.July 9, 2024 at 1:03 pm #79475
bozParticipantThanks for the update but I did follow that link when I tried to install ospi for the first time.
I checked every suggestion, no 1wire support is enabled.
But still can’t enable the valves.Is there something more that I can check to see if there is a conflict within GPIO interface?
/Boz
July 9, 2024 at 2:26 pm #79478
RayKeymasterCan you check if this file exists on your system:
/sys/class/gpio/gpiochip512Basically the build script uses this file’s existence to check if it needs to link with the gpiod library (which is needed for gpio operations in bookworm):
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/build.sh#L41C11-L41C38July 9, 2024 at 2:27 pm #79479
RayKeymasterI forgot to mention: if you run
git log
in the firmware repository, what’s the first few lines that’s displayed?July 10, 2024 at 12:41 pm #79490
bozParticipantHi,
Yes that file exists on my system.
This is the log output:
commit ec1410292bd7f6ca1757e278f8fa9bd3e91f624f (HEAD -> master, origin/master, origin/HEAD)
Merge: 0c32abf aa719cf
Author: Ray <[email protected]>
Date: Thu Jun 20 15:43:19 2024 -0400Merge pull request #275 from arfrie22/websocket-new
Use new websocket from OTF
commit aa719cf196dd2a8f8e4a15b5086764f3c852ab3d
Merge: 52903ed 0c32abf
Author: arfrie22 <[email protected]>
Date: Thu Jun 20 15:39:04 2024 -0400Merge branch ‘OpenSprinkler:master’ into websocket-new
commit 0c32abf2d72b4b5d97194ec5de1e73099d54cb02
Merge: bc9cbd5 d4bf192
Author: arfrie22 <[email protected]>
Date: Thu Jun 20 15:28:47 2024 -0400Merge pull request #278 from OpenSprinkler/gh-action-fix
dont cross compile on pr
commit d4bf192e822e7693438c5dc7cf93fd6534cb2a3e
Author: arfrie22 <[email protected]>
Date: Thu Jun 20 15:22:39 2024 -0400dont cross compile on pr
July 10, 2024 at 12:55 pm #79492
RayKeymasterEverything seems fine on the firmware side. Honestly, I don’t know. We currently don’t have a RPi 5 for testing. We did test the firmware under RPi 4 with Bookworm and the GPIOs are all working. Not sure if something is different with RPi 5. If you want you can send a support ticket at:
support.opensprinkler.com
and arrange to send us your RPi 5 so we can diagnose the issue and make sure it works then send it back to you.July 11, 2024 at 9:30 am #79502
bozParticipantOk, I understand but sending my RSPI5 from Europe to US isn’t an option, unfortunately.
But why not start a crowdfunding page and I would gladly support that to get this excellent solution to be supported on RSPI5.
Going back to a 4 version with SD card isn’t an option either, had so much problems with corrupt SD Cards and now I can use the NVME disk is fantastic solution.
So please, how can I help so this can be supported and not be a discontinued project?
Regards Boz
July 11, 2024 at 10:36 am #79503
RayKeymasterWe’ve ordered a RPi 5 and will have it next week so we can test.
What I meant to say is that having your actual hardware at hand would allow us to make sure it’s working before sending it back to you. Chances are we will get our RPi 5, and the firmware will pass all tests, but then it doesn’t give us any information about why it doesn’t work on your end. It’s not that we can’t afford to buy an RPi 5, it’s pretty cheap and affordable, the issue is reproducibility: that if it works with our RPi 5, it won’t give us any information about why it doesn’t work for yours.
July 11, 2024 at 12:02 pm #79504
bozParticipantExcellent, the thing I can do is to restore my rspi4 to version bookworm, it worked fine before the SD crash. (2 weeks ago).
I will then wait on your findings.FYI:
I’m using the NVMe base board.
https://shop.pimoroni.com/products/nvme-base?variant=41219587178579
with a Kingston KC3000 M.2 512GB SSD./Boz
July 15, 2024 at 12:01 pm #79543
RayKeymasterWe got our RPi 5 today and found the issue. Basically RPi 5 has changed the gpio chip name. So this line:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/gpio.cpp#L475
the name “gpiochip0” should be changed to “gpiochip4” on RPi 5. We will be working to address this and make the firmware compatible with all RPi versions. In the meantime, you can modify the name yourself and recompile the firmware, and see if this fixes the issue for you.July 15, 2024 at 12:20 pm #79544
bozParticipantExcellent news, changed it and recompiled it, now it works again.
So happy!
Thanks for the effort and time!
/Boz -
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › Raspberry Pi 5 (bookworm) not working with OSPI?