# Installing legato on target problem

**URL:** <https://forum.legato.io/t/installing-legato-on-target-problem/124>\
**Category:** Legato Application Framework\
**Created:** [April 13, 2015, 9:34am UTC](https://forum.legato.io/t/installing-legato-on-target-problem/124 "2015-04-13T09:34:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbarazz](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mbarazz](https://forum.legato.io/u/mbarazz)\
**Post date:** [April 13, 2015, 9:34am UTC](https://forum.legato.io/t/installing-legato-on-target-problem/124/1 "2015-04-13T09:34:00Z")

</div>

Hi everybody,

I’m trying to install Legato framwork on (not Sierra Wireless) target.  
I modified Makefile to add the target, i modified the cmakelists.txt and the findtoolchain script too.  
i did

```auto
$make myTargetName
```

or

```auto
$make myTargetName myTargetName_TOOLCHAIN_DIR
```

and it works, i get :

`# Create a tarball containing everything in the staging area.
tar -C build/imx6/staging -cf build/imx6/legato-runtime.tar .
`

After, i have tried to install the framwork on the target :

```auto
$ instlegato build/myTargetName TARGET_IP
```

But i got this 😒☹

```auto
chown: /mnt/flash/startupDefaults: No such file or directory
```

Do you know how to fix this problem, or if i have to modifie other scripts than the three above.  
Thank you for help

---

<div class="post-metadata">

**Author:** ![karandeep](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@karandeep](https://forum.legato.io/u/karandeep)\
**Post date:** [April 16, 2015, 8:59am UTC](https://forum.legato.io/t/installing-legato-on-target-problem/124/2 "2015-04-16T08:59:38Z")

</div>

please paste the code for the initial two steps…  
part where you modified the script-file and cmakelists.

---

<div class="post-metadata">

**Author:** ![mbarazz](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mbarazz](https://forum.legato.io/u/mbarazz)\
**Post date:** [April 20, 2015, 3:20pm UTC](https://forum.legato.io/t/installing-legato-on-target-problem/124/3 "2015-04-20T15:20:18Z")

</div>

Thank you for replying

I fixed the problem by adding smack and cgroup to my yocto linux Kernel.
