# NanoPi Neo2 Porting Mender to Openwrt

**URL:** <https://hub.mender.io/t/nanopi-neo2-porting-mender-to-openwrt/300>\
**Category:** General Discussions\
**Tags:** yocto, thud\
**Created:** [March 5, 2019, 7:35pm UTC](https://hub.mender.io/t/nanopi-neo2-porting-mender-to-openwrt/300 "2019-03-05T19:35:27Z")\
**Posts on this page:** 5\
**Page:** 9

<div class="post-metadata">

**Author:** ![rossbcan](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/rossbcan/32/1441_2.png) [@rossbcan](https://hub.mender.io/u/rossbcan)\
**Post date:** [April 5, 2019, 3:40pm UTC](https://hub.mender.io/t/nanopi-neo2-porting-mender-to-openwrt/300/162 "2019-04-05T15:40:11Z")

</div>

Given unreliable mender startup; solved (hope) by this:

create device key, your script  
install and start mender (still stops, first run)  
do a buncha time consuming package install / config  
restart mender (this time, stays running)

I still get the same lastlog entry as above, mender first run, then stop, despite key existence

Regards;  
Bill

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 7, 2019, 3:55pm UTC](https://hub.mender.io/t/nanopi-neo2-porting-mender-to-openwrt/300/163 "2019-04-07T15:55:03Z")

</div>

> I still get the same lastlog entry as above, mender first run, then stop, despite key existence

Hm, this is not something that we have seen before so hard to comment. Could be something `procd` related.

Can you try running the the client “manually” from a terminal on first boot, e.g

```
mender -daemon -debug

```

And if still exits without any clear error maybe try running `strace` on it.

---

<div class="post-metadata">

**Author:** ![beruti](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/beruti/32/329_2.png) [@beruti](https://hub.mender.io/u/beruti)\
**Post date:** [June 14, 2019, 10:36am UTC](https://hub.mender.io/t/nanopi-neo2-porting-mender-to-openwrt/300/164 "2019-06-14T10:36:51Z")

</div>

Thanks @rossbcan and @mirzak for all your work, the discussion and insight this thread has provided. Its really helpful as addition to the formal documentation to the [https://mender.io/blog/porting-mender-to-a-non-yocto-build-systemU](https://mender.io/blog/porting-mender-to-a-non-yocto-build-systemU) post too. I am also trying to achieve something similar. I just wanted to ask if you had any update? Interested to hear after there seemed to be such momentum built!

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 14, 2019, 4:23pm UTC](https://hub.mender.io/t/nanopi-neo2-porting-mender-to-openwrt/300/165 "2019-06-14T16:23:08Z")

</div>

Hi @beruti,

I just wanted to highlight that we have an updated post which is based on the linked blog post,

> [@Mender from scratch](https://hub.mender.io/t/mender-from-scratch/391):
>
> This post is primarily for education purposes to provide you with detailed insights in how Mender is installed on a system and can be useful when porting Mender to a new build system. The official integrations of Mender are [meta-mender (Yocto/OE-core)](https://github.com/mendersoftware/meta-mender) and [Debian family](https://github.com/mendersoftware/mender-convert). [Buildroot](https://hub.mender.io/c/board-integrations/Board-integrations-for-Buildroot) is community supported. This will be a quite technical blog post, and a certain knowledge of embedded builds is assumed. As Mender is an evolving project, this post might get out date from time to time but we will d…

@rossbcan has gotten this integration working and there are plans to publish the integration here,

> **[OpenWrt](https://hub.mender.io/c/board-integrations/openwrt/16)**
>
> Board integrations for OpenWrt.

---

<div class="post-metadata">

**Author:** ![beruti](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/beruti/32/329_2.png) [@beruti](https://hub.mender.io/u/beruti)\
**Post date:** [June 15, 2019, 9:40am UTC](https://hub.mender.io/t/nanopi-neo2-porting-mender-to-openwrt/300/166 "2019-06-15T09:40:26Z")

</div>

Great, thanks again @mirzak!

[Previous page](https://hub.mender.io/t/nanopi-neo2-porting-mender-to-openwrt/300.md?page=8)
