TwitterLinkedinFeed

First steps with Yocto on BlueSteel-Basic (part 1)

   |    Posted by:    |    Comments: 0

CircuitCo announced an HDMI  and flash-free OEM version of the BeagleBone Black called the “BlueSteel-Basic,” to be followed by industrial and COM versions. These are good news for companies that want to use this popular development platform for real industrial projects. Although the BlueSteel-Basic is not available yet, we can start preparing our industrial application to run on it.

In this article we'll learn how to create a very small rootfs for the BeagleBone Black and how to adapt this rootfs and the Poky recipes to BlueSteel-Basic board.

The first step that we should do are simple, as latest Yocto, codenamed daisy, has already the support for the BeagleBone Black we will build a minimal rootfs based on this. That's simple, just with

git clone git://git.yoctoproject.org/poky.git -b daisy
cd poky
source oe-init-build-env
MACHINE="beaglebone" bitbake core-image-minimal

The first command clones the poky repository and switches to daisy branch. The source command prepares the environment to be able to build images, and the last command builds a minimal images for the beaglebone.

After a long time, as the first time it build the cross-compiler you'll see something like this:

Loading cache: 100% |###########################################| ETA:  00:00:00
Loaded 1222 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.22.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beaglebone"
DISTRO            = "poky"
DISTRO_VERSION    = "1.6.1"
TUNE_FEATURES     = "armv7a vfp neon callconvention-hard cortexa8"
TARGET_FPU        = "vfp-neon"
meta             
meta-yocto       
meta-yocto-bsp    = "daisy:8e05d5e3fe04face623c4f9fb08b12f13c22edab"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1755 tasks of which 1755 didn't need to be rerun and all succeeded.

Finally, if you look at the tmp/deploy/images/beaglebone directory you'll see the bootloader (MLO, u-boot.bin), the kernel and the device tree file (uImage-beaglebone.bin, uImage-am335x-boneblack.dtb ), and a small rootfs (core-image-minimal-beaglebone.tar.bz2) that you can put into a SD-card and boot.

In next part we'll learn how to create a new meta-bluesteel layer to add custom recipes for the “BlueSteel-Basic, board.

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.