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

Viewing 12 posts - 1 through 12 (of 12 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

Viewing 12 posts - 1 through 12 (of 12 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?