# BeagleBone-black Yocto project start

**URL:** <https://hub.mender.io/t/beaglebone-black-yocto-project-start/7346>\
**Category:** General Discussions\
**Tags:** yocto, beaglebone-black\
**Created:** [November 22, 2024, 5:24am UTC](https://hub.mender.io/t/beaglebone-black-yocto-project-start/7346 "2024-11-22T05:24:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![allisyuxianshen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/allisyuxianshen/32/2354_2.png) [@allisyuxianshen](https://hub.mender.io/u/allisyuxianshen)\
**Post date:** [November 22, 2024, 5:24am UTC](https://hub.mender.io/t/beaglebone-black-yocto-project-start/7346/1 "2024-11-22T05:24:55Z")

</div>

Hello everyone,

I am a beginner just starting with Yocto and Mender, and I would like to know how I can run the Yocto Project and Mender on my BeagleBone Black. Is there any updated documentation I can refer to? How can I flash the Yocto Project onto the BeagleBone Black and boot the system via a microSD card?

Thank you!

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [November 22, 2024, 9:30am UTC](https://hub.mender.io/t/beaglebone-black-yocto-project-start/7346/2 "2024-11-22T09:30:42Z")

</div>

Hi @allisyuxianshen,

Thanks for reaching out!

To get started, the easiest way is to set up a Yocto build based on the tested configurations which are provided in `meta-mender-community`:

- [`beaglebone.yml`](https://github.com/mendersoftware/meta-mender-community/blob/scarthgap/kas/beaglebone.yml): the generic one
- [`beaglebone-uboot.yml`](https://github.com/mendersoftware/meta-mender-community/blob/scarthgap/kas/beaglebone-uboot.yml): using the `u-boot` bootloader

Both use `kas` as the tool to build them, you can find a tutorial on how to get started it at [Using kas to reproduce your Yocto builds](https://hub.mender.io/t/using-kas-to-reproduce-your-yocto-builds/6020).

Please note that the canonical way for Yocto is to build your image from source, not downloading a prepared one, so the above mentioned process will require quite a bit of computing time.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![allisyuxianshen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/allisyuxianshen/32/2354_2.png) [@allisyuxianshen](https://hub.mender.io/u/allisyuxianshen)\
**Post date:** [November 28, 2024, 1:09am UTC](https://hub.mender.io/t/beaglebone-black-yocto-project-start/7346/3 "2024-11-28T01:09:24Z")

</div>

> [@TheYoctoJester](#):
>
> beaglebone-uboot.yml

Hi @TheYoctoJester  
So, do I need to run `sudo pip install kas` in my Linux environment, then import `beaglebone-uboot.yml` or beaglebone.yml , and finally build it?

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [November 28, 2024, 8:45am UTC](https://hub.mender.io/t/beaglebone-black-yocto-project-start/7346/4 "2024-11-28T08:45:05Z")

</div>

Hi @allisyuxianshen,

Umm no, that’s why I actually linked to the tutorial that explains how to use `kas`: [Using kas to reproduce your Yocto builds](https://hub.mender.io/t/using-kas-to-reproduce-your-yocto-builds/6020)

In a nutshell:

1. make sure your development host fulfills the requisites for building Yocto, as descibed here: [Yocto Project Quick Build — The Yocto Project ® 5.1.999 documentation](https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html)
2. `sudo pip install kas`
3. `git clone https://github.com/mendersoftware/meta-mender-community`
4. `cd meta-mender-community`
5. `mkdir my-beaglebone && cd my-beaglebone`
6. `kas build ../kas/beaglebone.yml`
7. (wait a couple of hours)
8. flash the `.sdimg`/`.uefiimg` in `build/tmp/deploy/images/beaglebone-yocto` to your SD card

But that really glosses over a lot of detail, so you’re strongly encouraged to also read up on Yocto as a whole, we have a lot of tutorials on that too.

Greetz,  
Josef
