OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Raspberry Pi 5 (bookworm) not working with OSPI?

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #79458

    boz
    Participant

    Hi,

    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

    #79460

    Ray
    Keymaster

    Please 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.

    #79475

    boz
    Participant

    Thanks 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

    #79478

    Ray
    Keymaster

    Can you check if this file exists on your system:
    /sys/class/gpio/gpiochip512

    Basically 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-L41C38

    #79479

    Ray
    Keymaster

    I forgot to mention: if you run
    git log
    in the firmware repository, what’s the first few lines that’s displayed?

    #79490

    boz
    Participant

    Hi,

    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 -0400

    Merge 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 -0400

    Merge branch ‘OpenSprinkler:master’ into websocket-new

    commit 0c32abf2d72b4b5d97194ec5de1e73099d54cb02
    Merge: bc9cbd5 d4bf192
    Author: arfrie22 <[email protected]>
    Date: Thu Jun 20 15:28:47 2024 -0400

    Merge 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 -0400

    dont cross compile on pr

    #79492

    Ray
    Keymaster

    Everything 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.

    #79502

    boz
    Participant

    Ok, 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

    #79503

    Ray
    Keymaster

    We’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.

    #79504

    boz
    Participant

    Excellent, 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

    #79543

    Ray
    Keymaster

    We 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.

    #79544

    boz
    Participant

    Excellent news, changed it and recompiled it, now it works again.
    So happy!
    Thanks for the effort and time!
    /Boz

    #80365

    crusemm
    Participant

    I am having an issue with my RPI5 and OSPI board. When I load the software and run the RPI not connected to the OSPI board I can see the OpenSprinkler GUI and access the RPI. When I connect the two together and plug the OSPI in, I get a red light on the OSPI, a green light on the RPI, it flashes a few times, and then the RPI has a red light. If I press the “START” button on the RPI I get the same result, green light on the RPI, green flashes, then red light. I have tried the above fix from Ray to change the gpiochip0 to gpiochip4 in the gpio.cpp file, and no change.

    #80366

    Ray
    Keymaster

    What are you using to power the board? If you are only using the 24VAC power adapter, that is probably insufficient. RPi 5 calls for 5V 5Amp, which is beyond the capability of the OSPi’s on-board voltage regulator. You need to use a USB-C power adapter to provide additional power.

    #80367

    crusemm
    Participant

    That worked, thank you. I was not aware that there was a power issue with RPI5 and the 24 VAC power source. Is the gpiochip4 change still valid? or do I need to revert it back to gpiochip0?

    #80368

    Ray
    Keymaster

    The latest firmware automatically identifies the gpio chip number:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/gpio.cpp#L529
    For RPi 5, I believe it will find gpiochip4. I am not sure where you changed gpiochip0 to gpiochip0, but it’s likely where you made the change is for other RPi versions, so it doesn’t matter.

    The power issue isn’t just that the onboard 24VAC to 5VDC converter isn’t capable of delivering 5A; note that 5V*5A=25Watt, which means the 24VAC power adapter needs to output at lest 25Watt. Most common 24VAC power adapters is only rated for 0.5A up to 1A, so the power adapter itself isn’t capable of delivering 25 Watt to begin with.

    Honestly I would always recommend using RPi 0 with OSPi — it’s the cheapest and it requires minimum power. RPi 5 is so power hungry that it’s approaching a mini PC which should use its own power supply. We could use a beefier voltage regulator but first, the issue is that the 24VAC adapter isn’t able to provide that much power to begin with; second, if RPi foundation releases RPi 6, that may require even higher power, and at this rate there is no way we can keep up. So if you must use RPi 5, the only viable way is to give it its own power supply.

Viewing 16 posts - 1 through 16 (of 16 total)
  • 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?