Exploring Toaster

Toaster is a web interface for BitBake. The Yocto Project website describes it as follows:

"Toaster is an Application Programming Interface (API) and web-based interface to the OpenEmbedded build system, which uses BitBake. Currently, Toaster collects and presents information about your builds, which you can navigate and query using a web browser"

Installing the required packages for the host system

In order to use Toaster correctly on your preferred Linux distribution, you need to install Django and South:

$ sudo pip install django==1.6
$ sudo pip install South==0.8.4

Note

The pip command makes it easy to install Python modules, in the same way you install packages in a Linux distribution.

Running Toaster

Now that our system is ready to use Toaster, we only have to run it using the following command in order to launch the service:

$ source toaster start

This will give you the following output:

The system will start. Syncing... Creating tables ... Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Synced:  > django.contrib.staticfiles  > django.contrib.humanize  > south Not synced (use migrations):  - orm  - bldcontrol (use ./manage.py migrate to migrate these) Running migrations for orm: - Nothing to migrate.  - Loading initial data for orm. Installed 0 object(s) from 0 fixture(s) Starting webserver Webserver address:  
http://0.0.0.0:8000/
 Bitbake server address: 0.0.0.0, server port: 54693 Successful start.

We now have our web interface available at http://0.0.0.0:8000/.

Running BitBake

At the moment, Toaster doesn't support configuration through the interface (Future releases of Toaster will add build-running and build-customization capabilities). Toaster collects and presents information about your builds, which you can navigate and query using a web browser. So, we have to manually start BitBake to monitor the progress of build. As in Chapter 2 , Building our First Poky Image for the Raspberry Pi , we can launch the build process using the following command:

$ bitbake rpi-basic-image

The build process will progress as follows:

Loading cache: 100% |########################################################################################################################################################################| ETA:  00:00:00 Loaded 1352 entries from dependency cache. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION        = "1.25.0" BUILD_SYS         = "x86_64-linux" NATIVELSBSTRING   = "Ubuntu-14.04" TARGET_SYS        = "arm-poky-linux-gnueabi" MACHINE           = "raspberrypi" DISTRO            = "poky" DISTRO_VERSION    = "1.7" TUNE_FEATURES     = "arm armv6 vfp" TARGET_FPU        = "vfp" meta               meta-yocto         meta-yocto-bsp    = "master:08d3f44d784e06f461b7d83ae9262566f1cf09e4" meta-raspberrypi  = "master:6c6f44136f7e1c97bc45be118a48bd9b1fef1072" NOTE: Preparing RunQueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks

Running the web interface

Now that we have launched BitBake, we can monitor the progress of the process (the build process), as shown in the following screenshot. Note that the best way to open the Toaster interface is to navigate to it (using hyperlinks).

Running the web interface

Toaster is still in the development phase; it is likely to become a worthy replacement of Hob. Indeed, the development team wants to make BitBake fully configurable via the web interface.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.30.162