I want to use snclient on my 32-bit ARM Raspberry Pi.
I don't know how common this use case is. Currently, only ARM64 build targets exist.
My destination is an ARMv6 CPU (BCM2835).
Cross-compiling works out of the box
with
GOOS=linux GOARCH=arm GOARM=6 CGO_ENABLED=0 \
go build \
-ldflags "-s -w \
-X github.com/consol-monitoring/snclient/pkg/snclient.Build=$(git rev-parse --short HEAD) \
-X github.com/consol-monitoring/snclient/pkg/snclient.Revision=$(./buildtools/get_version | awk -F. '{print $3}')" \
-o snclient \
./cmd/snclient
file snclient
snclient: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, Go BuildID=VUBdMm6fbKNKntnKUJwS/CBahxw5n0U_Pib6mnsYb/XjOhkXyLSK_d5c3vlpq7/9iqgf8jPoKz0PNigqK1u, BuildID[sha1]=7d23d59d73e7aca551b2902e617d0d1e5cf15bbd, stripped
Also, the Node Exporter ARMv6 works
from https://github.com/prometheus/node_exporter/releases/download/v1.11.1/node_exporter-1.11.1.linux-armv6.tar.gz
Service
i copied the binaries, certificates and systemd files over and started the service. My use cases (nwc_web, mtls, prometheus) work as expected.
Repo
It would be great if the target could be included in the build chain and the repository.
I want to use snclient on my 32-bit ARM Raspberry Pi.
I don't know how common this use case is. Currently, only ARM64 build targets exist.
My destination is an ARMv6 CPU (BCM2835).
Cross-compiling works out of the box
with
Also, the Node Exporter ARMv6 works
from https://github.com/prometheus/node_exporter/releases/download/v1.11.1/node_exporter-1.11.1.linux-armv6.tar.gz
Service
i copied the binaries, certificates and systemd files over and started the service. My use cases (nwc_web, mtls, prometheus) work as expected.
Repo
It would be great if the target could be included in the build chain and the repository.