# balenaEngine on Raspberry Pi Zero Segmenation Fault

**URL:** <https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310>\
**Category:** balenaEngine\
**Created:** [December 3, 2019, 9:30am UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310 "2019-12-03T09:30:28Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [December 3, 2019, 9:30am UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/1 "2019-12-03T09:30:28Z")

</div>

Dear all,

I tried to use the latest versions of balenaEngine on a plain Yocto Warrior Image built for MACHINE = “raspberrypi0-wifi”, however, I always get a segmentation fault or similar error, no matter which version I try from the github ( [https://github.com/balena-os/balena-engine/releases/tag/v18.9.7](https://github.com/balena-os/balena-engine/releases/tag/v18.9.7) ) arm releases. Any special magic needed here? 🙂

Best regards,

Nico

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [December 3, 2019, 9:54am UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/2 "2019-12-03T09:54:20Z")

</div>

Can you post some of the stack trace here? I would be mostly interested in the first few blocks of it

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [December 3, 2019, 12:20pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/6 "2019-12-03T12:20:38Z")

</div>

I will try to do so. As a short question: As the RPi Zero W has an ARMv6l processor, I would need to use the ARMv6 version of balenaEngine, correct? 🙂

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [December 3, 2019, 12:41pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/7 "2019-12-03T12:41:12Z")

</div>

Hi @robertgzr,

I just found an old Raspberry Pi 1 and tested it with a Yocto / Poky (Warrior) release.  
./balena-engine  
just results in the Output of “Segmentation fault” without anything else (no stack trace).  
Tried it with the [balena-engine-v18.9.7-armv6.tar.gz](https://github.com/balena-os/balena-engine/releases/download/v18.9.7/balena-engine-v18.9.7-armv6.tar.gz)  
Any help I can give?

PS: I compiled it with the meta-virtualization package and installed docker-ce (18.09.3-ce) and docker works already, but balenaEngine sadly not 🙂

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [December 3, 2019, 2:07pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/9 "2019-12-03T14:07:42Z")

</div>

I have the same pi zero. will have a look as well

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [December 4, 2019, 10:23am UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/11 "2019-12-04T10:23:05Z")

</div>

Just as an information, I also tried the 18.9.7-armv6.tar.gz on the latest raspbian buster release (September 2019, stock from image, no changes or updates) - and the version also gives just out the line “Segmentation fault”.

A test with the 17.12.0-armv6 on raspbian buster on the RPi 1 gives an “Illegal instruction” error.

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [December 9, 2019, 2:24pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/16 "2019-12-09T14:24:38Z")

</div>

Hi I was able to reproduce this with the latest 2 builds on the repo. We have heard of issues with the statically linked binaries our build system outputs before and I had done a pre-release of v18.09.10 that is dynamically linked for this very reason…

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [December 9, 2019, 2:29pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/17 "2019-12-09T14:29:00Z")

</div>

I will try to get another release for the latest tag out that has dynamic executables for armv5e, armv7hf, aarch64, i386 and amd64 (so all the architectures we support)

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [December 9, 2019, 4:25pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/19 "2019-12-09T16:25:12Z")

</div>

Thank you very much! Does this also include armv6l?

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [December 18, 2019, 5:46pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/25 "2019-12-18T17:46:23Z")

</div>

@robertgzr I wanted to ask what is the status of the dynamic executables of balenaEngine for Pi Zero? I could not yet find a new release on Github. Any ETA? Thank you very much! 🙂

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [December 20, 2019, 10:11am UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/28 "2019-12-20T10:11:58Z")

</div>

sorry for the delay here. I was working on the build system as part of the effort to pull in docker 19.03 and really wanted to try out the new one for this release.

> **[balena-os/balena-engine](https://github.com/balena-os/balena-engine/releases/tag/v18.9.13)**
>
> Moby-based Container Engine for Embedded, IoT, and Edge uses - balena-os/balena-engine

I compile these on our Debian Stretch base-images and since they are dynamic the basic requirement would be glibc and systemd-journald libs on the target system (which means something like Alpine won’t work unfortunately)

You will find armv6 binaries there as well 🙂

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [December 20, 2019, 12:04pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/30 "2019-12-20T12:04:42Z")

</div>

Thank you very much! Yes on a basic raspbian, it is now perfectly working (after I manually added the user balena-engine, which the daemon seems to be needing and moved everything to /usr/local/bin :)).

On yocto, it aks for the libsystemd.so.0 ask you already mentioned. So I would need to figure out how to get that dependency there … mh…

---

<div class="post-metadata">

**Author:** ![Ereski](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Ereski](https://forums.balena.io/u/Ereski)\
**Post date:** [December 23, 2019, 8:31am UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/34 "2019-12-23T08:31:15Z")

</div>

Hi. You may find the balenaEngine recipe for balenaOS useful: [https://github.com/balena-os/meta-balena/blob/development/meta-balena-common/recipes-containers/balena/balena\_git.bb](https://github.com/balena-os/meta-balena/blob/development/meta-balena-common/recipes-containers/balena/balena_git.bb)

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [December 23, 2019, 3:19pm UTC](https://forums.balena.io/t/balenaengine-on-raspberry-pi-zero-segmenation-fault/48310/36 "2019-12-23T15:19:39Z")

</div>

Thanks @Ereski - I gave it a try some weeks back, but it turns out its not easy to build balenaEngine on Yocto without all the needed dependencies, which will then result in just a cloned balenaOS, so I scrapped the idea, but thank you very much 🙂
