amonagent icon indicating copy to clipboard operation
amonagent copied to clipboard

Agent build for Raspbian

Open tobru opened this issue 6 years ago • 2 comments

It would be fantastic to have a Raspberry Pi compatible build of the amon agent. The armhf build sadly doesn't work.

Arch of Raspberry PI 3: armv7l

tobru avatar Jan 21 '18 18:01 tobru

@tobru Can you help me with this one. I am a little bit lost in the ARM land. The agent can work on any architecture supported by Golang. So far I have the following in the build script: https://github.com/amonapp/amonagent/blob/master/build.py

    if arch == "armhf":
        arch = 'arm' # (GOARCH=arm)
        additional_env_params.append("GOARM=6")
    if arch == "arm64":
        # GOARCH=arm64
        additional_env_params.append("GOARM=7")

Can you take a look at this page: https://github.com/golang/go/wiki/GoArm and tell me which parameters will work on Raspberry PI 3

martinrusev avatar Jan 21 '18 18:01 martinrusev

@martinrusev I'll report back once I have a working build.

tobru avatar Jan 21 '18 18:01 tobru