Skip to content
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

Build on Raspberry Pi 5 #1566

Open
frapell opened this issue Oct 6, 2024 · 0 comments
Open

Build on Raspberry Pi 5 #1566

frapell opened this issue Oct 6, 2024 · 0 comments

Comments

@frapell
Copy link

frapell commented Oct 6, 2024

I had a Raspberry Pi 3 working as an RFM69 gateway for about 2 years now, and I got a Raspberry Pi 5 to upgrade to (Basically in order to be able to run OpenHab in a more recent version), and I cannot make mysgw work...

I basically copied the work done in #1364 to get the RPi4 working (Only the Makefile and configure files). and I get this

# ./configure --my-transport=rfm69 --my-is-rfm69hw --my-rfm69-frequency=915 --extra-cxxflags="-DMY_DEBUG_VERBOSE_RFM69"
[SECTION] Detecting target machine.
  [OK] machine detected: SoC=BCM2712, Type=rpi5, CPU=aarch64.
[SECTION] Detecting SPI driver.
  [OK] SPI driver detected:BCM.
[SECTION] Gateway configuration.
  [OK] Type: ethernet.
  [OK] Transport: rfm69.
  [OK] Signing: Disabled.
  [OK] Encryption: Disabled.
  [OK] CPPFLAGS: -march=armv8-a+crc -mtune=cortex-a76 -DMY_RADIO_RFM69 -DMY_RFM69_NEW_DRIVER -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_BCM -DLINUX_ARCH_RASPBERRYPI -DMY_RFM69_FREQUENCY=RFM69_915MHZ -DMY_IS_RFM69HW 
  [OK] CXXFLAGS: -DMY_DEBUG_VERBOSE_RFM69  -std=c++11
[SECTION] Detecting init system.
  [OK] Init system detected: systemd.
[SECTION] Saving configuration.
  [OK] Saved.
[SECTION] Cleaning previous builds.
  [OK] Finished.

Running make works fine and I do get a bin/mysgw compiled, however when running it I get this

# ./bin/mysgw 
Oct 06 20:03:26 INFO  Starting gateway...
Oct 06 20:03:26 INFO  Protocol version - 2.4.0-alpha
Oct 06 20:03:26 DEBUG MCO:BGN:INIT GW,CP=RPNGL---,FQ=NA,REL=1,VER=2.4.0-alpha
Oct 06 20:03:26 DEBUG TSF:LRT:OK
Oct 06 20:03:26 DEBUG TSM:INIT
Oct 06 20:03:26 DEBUG TSF:WUR:MS=0
Oct 06 20:03:26 DEBUG RFM69:INIT
Oct 06 20:03:26 DEBUG RFM69:INIT:PIN,CS=24,IQP=22,IQN=25
Oct 06 20:03:26 DEBUG RFM69:RSB

I suspect there are maybe changes needed in the BCM driver? however not sure where to get that... Needless to say, the RFM69 module works perfectly in the Raspberry Pi 3, so no issues with the hardware...

Any advice or pointers on how to make this work? are there plans to making this work in the rpi5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant