2015-02-03 19:09:28 +00:00
|
|
|
|
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
|
|
|
|
|
[<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >
|
|
|
|
|
|
|
|
|
|
<chapter id='toaster-manual-start'>
|
|
|
|
|
|
|
|
|
|
<title>Preparing to Use Toaster</title>
|
|
|
|
|
|
|
|
|
|
<para>
|
|
|
|
|
This chapter describes how you need to prepare your system in order to
|
|
|
|
|
use Toaster.
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
<section id='toaster-setting-up-the-basic-system-requirements'>
|
|
|
|
|
<title>Setting Up the Basic System Requirements</title>
|
|
|
|
|
|
|
|
|
|
<para>
|
2015-10-22 18:42:07 +00:00
|
|
|
|
Before you can use Toaster, you need to first set up your
|
|
|
|
|
build system to run the Yocto Project.
|
|
|
|
|
To do this, follow the instructions in the
|
|
|
|
|
"<ulink url='&YOCTO_DOCS_QS_URL;#packages'>The Build Host Packages</ulink>"
|
|
|
|
|
and
|
|
|
|
|
"<ulink url='&YOCTO_DOCS_QS_URL;#releases'>Yocto Project Release</ulink>"
|
|
|
|
|
sections in the Yocto Project Quick Start.
|
2015-02-03 19:09:28 +00:00
|
|
|
|
</para>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section id='toaster-establishing-toaster-system-dependencies'>
|
|
|
|
|
<title>Establishing Toaster System Dependencies</title>
|
|
|
|
|
|
|
|
|
|
<para>
|
2015-05-29 17:40:19 +00:00
|
|
|
|
Toaster requires extra Python dependencies in order to run.
|
2015-02-18 14:24:18 +00:00
|
|
|
|
A Toaster requirements file named
|
|
|
|
|
<filename>toaster-requirements.txt</filename> defines the
|
|
|
|
|
Python dependencies.
|
|
|
|
|
The requirements file is located in the
|
|
|
|
|
<filename>bitbake</filename> directory, which is located in the
|
|
|
|
|
root directory of the
|
2015-02-03 19:09:28 +00:00
|
|
|
|
<ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
|
|
|
|
|
(e.g. <filename>poky/bitbake/toaster-requirements.txt</filename>).
|
|
|
|
|
The dependencies appear in a <filename>pip</filename>,
|
2015-02-18 14:24:18 +00:00
|
|
|
|
install-compatible format.
|
|
|
|
|
</para>
|
|
|
|
|
|
2015-09-30 16:20:12 +00:00
|
|
|
|
<section id='toaster-virtual-environment'>
|
|
|
|
|
<title>Set Up a Python Virtual Environment</title>
|
2015-02-18 14:24:18 +00:00
|
|
|
|
|
|
|
|
|
<para>
|
2015-09-30 16:20:12 +00:00
|
|
|
|
Set up a Python virtual environment that allows you
|
|
|
|
|
to maintain a dedicated Python executable and its own
|
|
|
|
|
set of installed modules.
|
|
|
|
|
Doing so separates the executable from Python and the
|
|
|
|
|
modules provided by the operating system.
|
|
|
|
|
This separation avoids any version conflicts.
|
2015-10-02 20:03:49 +00:00
|
|
|
|
<note>
|
|
|
|
|
Creating a virtual environment is not absolutely
|
|
|
|
|
necessary.
|
|
|
|
|
However, doing so is highly recommended.
|
|
|
|
|
</note>
|
2015-02-18 14:24:18 +00:00
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
<para>
|
|
|
|
|
Follow these steps to set up your virtual environment.
|
|
|
|
|
These steps assume a Ubuntu distribution:
|
|
|
|
|
<orderedlist>
|
|
|
|
|
<listitem><para><emphasis>Install <filename>virtualenv</filename>:</emphasis>
|
|
|
|
|
Install the supported
|
|
|
|
|
<filename>python-virtualenv</filename> package from your
|
|
|
|
|
distribution rather than using <filename>pip</filename>.
|
|
|
|
|
<literallayout class='monospaced'>
|
|
|
|
|
$ sudo apt-get install python-virtualenv
|
|
|
|
|
</literallayout>
|
|
|
|
|
</para></listitem>
|
|
|
|
|
<listitem><para><emphasis>Create and Activate a Virtual Environment:</emphasis>
|
|
|
|
|
<literallayout class='monospaced'>
|
2015-02-03 19:09:28 +00:00
|
|
|
|
$ virtualenv venv
|
|
|
|
|
$ source venv/bin/activate
|
2015-02-18 14:24:18 +00:00
|
|
|
|
</literallayout>
|
|
|
|
|
</para></listitem>
|
|
|
|
|
</orderedlist>
|
2015-03-30 20:40:15 +00:00
|
|
|
|
<note>
|
2015-09-30 16:20:12 +00:00
|
|
|
|
After setting up a virtual environment in
|
2015-03-30 20:40:15 +00:00
|
|
|
|
which to run Toaster, you must initialize that
|
|
|
|
|
virtual environment each time you want to start
|
|
|
|
|
Toaster.
|
|
|
|
|
Use the following to initialize the environment just
|
|
|
|
|
before you start Toaster:
|
|
|
|
|
<literallayout class='monospaced'>
|
|
|
|
|
$ source venv/bin/activate
|
|
|
|
|
</literallayout>
|
|
|
|
|
</note>
|
2015-02-18 14:24:18 +00:00
|
|
|
|
</para>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section id='toaster-load-packages'>
|
|
|
|
|
<title>Install Toaster Packages</title>
|
|
|
|
|
|
|
|
|
|
<para>
|
|
|
|
|
You need to install the packages that Toaster requires.
|
|
|
|
|
Use this command:
|
|
|
|
|
<literallayout class='monospaced'>
|
2015-02-03 19:09:28 +00:00
|
|
|
|
$ pip install -r bitbake/toaster-requirements.txt
|
2015-02-18 14:24:18 +00:00
|
|
|
|
</literallayout>
|
|
|
|
|
</para>
|
|
|
|
|
</section>
|
2015-02-03 19:09:28 +00:00
|
|
|
|
|
2015-05-29 17:40:19 +00:00
|
|
|
|
<!-- Commenting this section out for now in case it needs to be used again.
|
|
|
|
|
|
2015-02-18 14:24:18 +00:00
|
|
|
|
<section id='toaster-install-daemon'>
|
|
|
|
|
<title>Install <filename>daemon</filename></title>
|
|
|
|
|
|
|
|
|
|
<para>
|
|
|
|
|
Toaster depends on
|
|
|
|
|
<ulink url='http://www.libslack.org/daemon/'><filename>daemon</filename></ulink>.
|
|
|
|
|
Depending on your distribution, how you install
|
|
|
|
|
<filename>daemon</filename> differs:
|
|
|
|
|
<itemizedlist>
|
|
|
|
|
<listitem><para><emphasis>Debian-Based Systems:</emphasis>
|
|
|
|
|
If you are running a Debian-based distribution,
|
|
|
|
|
install <filename>daemon</filename> using the
|
|
|
|
|
following command:
|
|
|
|
|
<literallayout class='monospaced'>
|
|
|
|
|
$ sudo apt-get install daemon
|
|
|
|
|
</literallayout>
|
|
|
|
|
</para></listitem>
|
|
|
|
|
<listitem><para><emphasis>Non-Debian-Based Systems:</emphasis>
|
|
|
|
|
If you are not running a Debian-based distribution
|
|
|
|
|
(Redhat-based distribution such as Fedora),
|
|
|
|
|
you need to download the file relevant to the
|
|
|
|
|
architecture and then install
|
|
|
|
|
<filename>daemon</filename> manually.
|
|
|
|
|
Following are the commands for 64-bit distributions:
|
|
|
|
|
<literallayout class='monospaced'>
|
|
|
|
|
$ wget http://libslack.org/daemon/download/daemon-0.6.4-1.x86_64.rpm
|
|
|
|
|
$ sudo rpm -i daemon-0.6.4-1.x86_64.rpm
|
|
|
|
|
</literallayout>
|
|
|
|
|
Here are the commands for a 32-bit distribution:
|
|
|
|
|
<literallayout class='monospaced'>
|
|
|
|
|
$ wget http://libslack.org/daemon/download/daemon-0.6.4-1.i686.rpm
|
|
|
|
|
$ sudo rpm -i daemon-0.6.4-1.i686.rpm
|
|
|
|
|
</literallayout>
|
|
|
|
|
</para></listitem>
|
|
|
|
|
</itemizedlist>
|
|
|
|
|
</para>
|
2015-05-29 17:40:19 +00:00
|
|
|
|
</section> -->
|
2015-02-18 14:24:18 +00:00
|
|
|
|
</section>
|
2015-02-03 19:09:28 +00:00
|
|
|
|
</chapter>
|