<pstyle='text-align: justify;'>I have used Buildroot before for setting up environment for Beagleboard, but OpenEmbedded or Yocto gives much more power with regard to the number of packages you can build or do your own customizations. From here on I am assuming that you have a separate beagle directory in which you are doing this. A knowledge of git and your smartness ;-) is assumed.</p>
<pstyle='text-align: justify;'>In each of the git cloned repositories, select the branch you want to work with. If you do not select a branch, all of them will be with the default **master** branch. For example, you can select the **dora** or **daisy** branch.</p>
<pstyle='text-align: justify;'>While in the beagle directory, run **source poky/oe-init-build-env poky-build** . The **poky-build** directory is where all your build will take place, downloads will happen and all the packages and images will reside.</p>
<pstyle='text-align: justify;'>So, now your beagle directory will have two directories inside **poky, poky-build**. The poky directory will have the various meta layers.</p>
<pstyle='text-align: justify;'>After running the **source** command above, do not exit the terminal or switch to a different terminal or directory. The script which was run did the necessary task of setting up the environment variables required for the build.</p>
<pstyle='text-align: justify;'>Open the **conf/bblayers.conf** file with an editor like nano or gedit. Add the required entries to have this file exactly as below.</p>
<pstyle='text-align: justify;'>Open a different terminal and go to the **openembedded-core** in **poky** directory. Make a **conf **directory and add a **layer.conf** file as below.</p>
<pstyle='text-align: justify;'>Now go to the **meta-openembedded** directory in **poky**. Make a **conf** directory and add a **layer.conf** file as below.</p>
<pstyle='text-align: justify;'>Go to the terminal in which you got into the **poky-build** directory after running **source/oe-init-build-env**. Add the following to the **conf/local.conf**.</p>
<pstyle='text-align: justify;'>The BB_NUMBER_THREADS and PARALLEL_MAKE in my **local.conf** is as per the fact that I have a quad core machine. Set it as per your machine configuration. Also, set the **MACHINE** variable in the file. I set it to **MACHINE ?= "beagleboard"**. Just add this line below the default. The IMAGE_INSTALL_append will add the packages specified to any image we build and we are going to do a minimal build. You can add the packages you like.</p>
<pstyle='text-align: justify;'>First look for a specific package you like at the below link. Do select the relevant branch as per your branch selection in the start of the tutorial.</p>
<pstyle='text-align: justify;'>After this, check the layer in which that package recipe resides. Clone the layer in the same way we added the **meta-ti** or **meta-qt5** layers and add them to the **bblayers.conf** file. If the layer has a dependency you need to clone and add the relevant dependency layer too. I wanted to build qt5, so I added the meta-qt5 layer. If you want to build cherokee, you need to add the meta-webserver layer in which the cherokee recipe resides.</p>
<pstyle='text-align: justify;'>Some packages fail due to a fetch failure. This is because a particular define for a url is not there in Yocto which Openembedded uses.</p>
<pstyle='text-align: justify;'>Add the following to **meta/classes/mirrors.bbclass** and **meta/conf/bitbake.conf** in the **poky** source tree respectively. Make sure you add it at the right place.</p>
<pstyle='text-align: justify;'>Now, you can build an image for your board by doing **bitbake core-image-minimal**. The generated files and images will be in**poky-build/****tmp/deploy/images/beagleboard**.</p>
<pstyle='text-align: justify;'>Follow this link and transfer the files to the SD card. I don't know why but putting the **uImage** in **boot** directory doesn't work. Put the **uImage** in the **boot** directory which is in the **root** filesystem.</p>
<pstyle='text-align: justify;'>Now, plug in the SD card and boot. It boots very quickly. You are supposed to be connected to the debug serial port. For some reason Ethernet and all USB ports don't work. I am trying to figure out why, will update as soon as I do. X also doesn't seem to work on running startx.</p>
<pstyle='text-align: justify;'>If you would like to setup qtcreator and use qt5, build **meta-toolchain-qt5** and follow the below link. The link is not exactly for qt5, but, can be used for qt5 setup for beagle. No need to follow the relocation related stuff on the link.</p>