# Rebuild Yocto for wp77xx

**URL:** <https://mangoh.discourse.group/t/rebuild-yocto-for-wp77xx/3646>\
**Category:** mangOH Red\
**Created:** [February 4, 2020, 5:58pm UTC](https://mangoh.discourse.group/t/rebuild-yocto-for-wp77xx/3646 "2020-02-04T17:58:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlesshook](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@charlesshook](https://mangoh.discourse.group/u/charlesshook)\
**Post date:** [February 4, 2020, 5:58pm UTC](https://mangoh.discourse.group/t/rebuild-yocto-for-wp77xx/3646/1 "2020-02-04T17:58:58Z")

</div>

Does any one know the steps to rebuild yocto for the mangOH Red with wp77xx?

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [February 5, 2020, 10:04pm UTC](https://mangoh.discourse.group/t/rebuild-yocto-for-wp77xx/3646/2 "2020-02-05T22:04:44Z")

</div>

1. Create an [AirVantage](https://airvantage.net) account
2. Login to the [Legato Gerrit Server](https://gerrit.legato.io) using your AirVantage account
3. In the Gerrit settings, set your username
4. In the Gerrit settings, add an ssh key from your development machine
5. If the username you set in the Gerrit settings is different from the username on your development machine, you need to add a section like this to your `~/.ssh/config`:

```auto
Host gerrit.legato.io
    User your_gerrit_username

```

Once you have done all of the above, try to test your access to Gerrit as follows:

```auto
$ ssh -p 29418 gerrit.legato.io

  ****Welcome to Gerrit Code Review****

  Hi David Frey, you have successfully connected over SSH.

  Unfortunately, interactive shells are disabled.
  To clone a hosted Git repository, use:

  git clone ssh://dfrey@gerrit.legato.io:29418/REPOSITORY_NAME.git

```

Now we want to fetch all of the necessary git repositories. The `repo` tool is used to do this.

1. Run `mkdir ~/yocto-mangOH-wp77xx && cd ~/yocto-mangOH-wp77xx`
2. Run `repo init -u https://github.com/mangOH/manifest.git -m mangOH/branches/master/wp77xx.xml`
3. Run `repo sync` (This will take a very long time)
4. Run `make image_bin` to build the image
5. Run `make toolchain_bin` to build the toolchain

To avoid having to download and install various prerequisite packages before building yocto, you can instead build using a pre-made docker by running `USE_DOCKER=1 make image_bin` or `USE_DOCKER=1 make toolchain_bin`.

---

<div class="post-metadata">

**Author:** ![pinst](https://avatars.discourse-cdn.com/v4/letter/p/d78d45/32.png) [@pinst](https://mangoh.discourse.group/u/pinst)\
**Post date:** [August 30, 2020, 10:48pm UTC](https://mangoh.discourse.group/t/rebuild-yocto-for-wp77xx/3646/4 "2020-08-30T22:48:40Z")

</div>

Thanks for the above, also I found it was necessary to execute

```auto
sudo chmod 666 /var/run/docker.sock

```

to get docker working.
