Mender Artifact for RPi

Hi,

I would like to build update artifacts on the RPi.

The 64 bit linux executable does not run on my RPi 3.

Can I build mender artifact for RPi? or is one already available?

Hi @AstralPresence we do have a debian package for the mender-artifact tool which is distributed for arm, see here for more information

Sorry for the noob question but how do I go about installing it> I’m currently running stretch.

apt update && apt install mender-artifact

should do the trick :slightly_smiling_face:

ah. i tried that first actually. But I had to add
deb http://ftp.de.debian.org/debian stretch main
to my /etc/apt/sources.list and do an apt-update

on stock raspbian, we only have
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
and that doesnt contain the mender-artifact package.

Thanks a lot!

1 Like

Unfortunately I’m unable to use the debian package version (really 2.4) to create an application level update artifact. Any suggestions?

Could you be a bit more precise in what you are trying to do/doing? And what the errors are?

:slightly_smiling_face:

I have an application running on the RPi and I would like to create update artifacts for it on the rpi itself.

Hi @AstralPresence

If you get the source code from our GitHub. Then you can build this (assuming you’ve got Go installed), with:

GOOS=linux GOARCH=arm go build .

Which will get you a binary like:

➜  mender-artifact git:(6faf8d6) file mender-artifact
mender-artifact: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, Go BuildID=cYM1g4vGT7Foy5AQxHmi/1tOplowVyF0k4NhtKhpF/xzHS_m6LPs8YNtN0zRCi/ALHVROmh200u3-5tfzWI, not stripped