xperimental / netatmo-exporter

Prometheus exporter for Netatmo sensor data.
MIT License
44 stars 18 forks source link

trying to build for armv7 on rpi4 #49

Closed m-arx closed 1 year ago

m-arx commented 1 year ago

I am trying to build netatmo-exporter for armv7 to run in docker on my Raspberry Pi 4 (no bragging).

I have no idea about go and little about programming in total.

yesterday it failed completely, after pulling this git again and updating go on the pi, it's failing with

"go: error loading module requirements make: *** [Makefile:17: test] Error 1"

xperimental commented 1 year ago

Is that armv7 as in 32bit ARM? If yes, why not go with arm64?


If you're building directly on the RPi, then make image should produce a runnable image. It's a bit more complicated if you're building on another machine which does not have the same architecture (need to go through a registry). The automatically built images are also available in arm64, which do run on a RPi4.

m-arx commented 1 year ago

Raspian is not yet 64 but as far as my research goes. I will try the 'make Image' soon.

Danke.

xperimental commented 1 year ago

64bit builds of Raspbian ("Raspberry Pi OS") have been available for a while now. I have been running arm64 on both RPi3 and RPi4 for a while. Have a look here: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit

If you're unsure what you're currently running, you can see the current kernel architecture using uname:

$ uname -a
Linux hostname 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
m-arx commented 1 year ago

Right now my docker is stuck on this

Linux docker-pi 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux

But anyhow, the "make image" was successful.