From patchwork Tue Dec 1 15:22:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 106824 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.13180.1796138603811191216 for ; Tue, 01 Dec 2026 07:23:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=qiww6mKZ; spf=pass (domain: gmail.com, ip: 209.85.167.180, mailfrom: twoerner@gmail.com) Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-55650fe1f0dso6628433b6e.2 for ; Tue, 01 Dec 2026 07:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796138603; x=1796743403; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=uLV9KL2JSzdvzoipbBe/dpnnLDOfx3Fl3X8kx2VbYjs=; b=qiww6mKZ3xFkVZV3Pj2mZ3dch+iLuUMbSjAi98xbvRFNN19HeA9ta79WdVlQbm7fY6 p4QHKiZvTooge+d9TY44SuAuQ4aQ0pWVru5RsW7gISXtqBgeR967M6UYAjbNgt/vorl3 L0vTd/hOp8pG9WCP7yRwdL4aMz/H3Zaka/4mdxF3kcsAms2Z/cfLbv3OGvClNMxouNgl 7GWYQEkihaVSjMJXnV9GjG8TgjiKdYwJ8Ts7NXuc+3piaUZXZXITJ0uQr8NWmzgt7GCE N7BzicPJwRYtCqw1ktIHaYrRbRciMLEB1WhZ6jkiA7+9H1uV08f8sxKTsXSvF++oBNOM 9aNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796138603; x=1796743403; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=uLV9KL2JSzdvzoipbBe/dpnnLDOfx3Fl3X8kx2VbYjs=; b=0XwVzmaVSRwmOf3P8Pde92lnUPdwItUQn0vGyV00eVDuknPUFeRc438MdzR07aWYt7 0vZbG81xHpvrr64MuGu38p+z3nH2L01xMkPfOF98IuiwTXjIoOol3xnLZ7D378eBvcYs Ks88zbwwt0FS2JKfQGlLYH05qNp53V45QBADJ72tdvD9XeMH0sxDFjyxnWRwkARSC4Ku ErkiJn5jJbSnr2LNtAMpDSkOXHJMnDxuK2mDj/awtk/tK7hE4Oc4meFvSMwG2PPmusqu 4ZIYINh+c9j0L3XaIqSRCVPxTUShxL6y03yIZwabivUetUbdYyKK/wpHY0Leankyfeg3 eYTw== X-Gm-Message-State: APuU4Z+eg2GOJOk39ZDmDqucs3/jAc4ZKcE4+BJcMNEKHL2cIxqA+bbr P+ppZQm4DusdsQYFC7zFTehBnPzFneQk89nQYdNr9Ix7rOf3yq3cv33zIVev4A== X-Gm-Gg: AZFdTZdzcwrFH/GerP8Ai5m561wMTXGy0JlF99l6QNIhfl3Pij2tWVu4ungICww2RmS 5XRxkmjjp48u+ttQWauFzdiPn0oDFK1EYLQNWLvKv5uJdeZlrkKteSvxtqNC8V9c6EekQtYJq9P a4D4IeKN/z2flzCl7vzt4ninYAcxp2HdP89diGKDB6shIE6YuJPKEL53Rv7UCV+Za4C6DLLZGWl Vy6q5IGbuVx81AwMzsc7Ot8U2Byec90BFXcoc0ZOME6KCljFE9eshRlTcjc1etvpJh4t3wFYLSj J1Laz3ksoxWBk+N6QwNdP1v5HhL1c37U/CK2pFBKWaVgXASznXV3sGRvlfCvdoWKolB6S+IKls9 gWnMZaqmkqh5ywRZedTZF/8J8TaMqKS+x2uQgbhLzDujsrxlT8nWzVVZZTIylemklj+46qYQnhv am0XgSBa3c7BcVep3Z3iqwairdD2xETmuklwCMgWiZyVJjaXk3vXyxaRXs5Myu+NJ6S3p6ZCFs4 CRlu/qZ6DadGsjoShW4Ns/xJ28I7JOVKtos+qxsXz9pV3yUdJ8hl8rq/AjpQPZUXO47JJVykeSd 3XfytnDnUNKHoRiCNSr6zaLhGQBGYwUYR452fNbb/yJ8vtVc/e91QEPrH8zS1u6qPzbg5yi0gzs 2WbBf6EcJW/QUXeuY7UgzCXrqRRY+Lvc= X-Received: by 2002:a05:6808:f08:b0:4e9:7d56:846f with SMTP id 5614622812f47-57a0b041513mr40093868b6e.41.1796138602500; Tue, 01 Dec 2026 07:23:22 -0800 (PST) Return-Path: Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id 5614622812f47-57a31929223sm27818249b6e.1.2026.12.01.07.23.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 07:23:21 -0800 (PST) From: Trevor Woerner To: docs@lists.yoctoproject.org Subject: [PATCH 12/16] toaster-manual: state the language of the blocks that are not BitBake Date: Tue, 1 Dec 2026 10:22:45 -0500 Message-ID: <20261201152251.2742634-13-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20261201152251.2742634-1-twoerner@gmail.com> References: <20261201152251.2742634-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 15:23:31 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10871 The manuals are moving to a default of bitbake for code blocks, so a BitBake block needs no language and every other block needs one. This gives the blocks in this manual that are not BitBake their language. AI-Generated: codex/claude-opus 5.5 (xhigh) Signed-off-by: Trevor Woerner --- documentation/toaster-manual/reference.rst | 26 +++- .../toaster-manual/setup-and-use.rst | 132 +++++++++++++----- documentation/toaster-manual/start.rst | 16 ++- 3 files changed, 130 insertions(+), 44 deletions(-) diff --git a/documentation/toaster-manual/reference.rst b/documentation/toaster-manual/reference.rst index d0c63a084fc8..01052b34f792 100644 --- a/documentation/toaster-manual/reference.rst +++ b/documentation/toaster-manual/reference.rst @@ -89,7 +89,9 @@ Use the Administration Interface Access the administration interface through a browser by entering the URL of your Toaster instance and adding "``/admin``" to the end of the URL. As an example, if you are running Toaster locally, use the -following URL:: +following URL: + +.. code-block:: text http://127.0.0.1:8000/admin @@ -380,7 +382,9 @@ Checking Health Before you use remote Toaster monitoring, you should do a health check. To do this, ping the Toaster server using the following call to see if -it is still alive:: +it is still alive: + +.. code-block:: text http://host:port/health @@ -399,7 +403,9 @@ Determining Status of Builds in Progress ---------------------------------------- Sometimes it is useful to determine the status of a build in progress. -To get the status of pending builds, use the following call:: +To get the status of pending builds, use the following call: + +.. code-block:: text http://host:port/toastergui/api/building @@ -434,7 +440,9 @@ Checking Status of Builds Completed ----------------------------------- Once a build is completed, you get the status when you use the following -call:: +call: + +.. code-block:: text http://host:port/toastergui/api/builds @@ -468,7 +476,9 @@ Determining Status of a Specific Build -------------------------------------- Sometimes it is useful to determine the status of a specific build. To -get the status of a specific build, use the following call:: +get the status of a specific build, use the following call: + +.. code-block:: text http://host:port/toastergui/api/build/ID @@ -556,7 +566,9 @@ example that assumes default repository and :term:`Build Directory` names: If your Toaster database had only one build, the above :ref:`toaster-manual/reference:``buildslist``` -command would return something like the following:: +command would return something like the following: + +.. code-block:: text 1: qemux86 poky core-image-minimal @@ -566,7 +578,7 @@ command would return something like the following:: The ``builddelete`` command deletes data associated with a build. Access the command as follows: -.. code-block:: +.. code-block:: console $ bitbake/lib/toaster/manage.py builddelete build_id diff --git a/documentation/toaster-manual/setup-and-use.rst b/documentation/toaster-manual/setup-and-use.rst index c8ec8e91ee38..66469434dbd5 100644 --- a/documentation/toaster-manual/setup-and-use.rst +++ b/documentation/toaster-manual/setup-and-use.rst @@ -15,16 +15,22 @@ Toaster`" chapter, you are ready to start Toaster. Navigate to the root of your -:term:`Source Directory` (e.g. ``poky``):: +:term:`Source Directory` (e.g. ``poky``): + +.. code-block:: console $ cd poky -Once in that directory, source the build environment script:: +Once in that directory, source the build environment script: + +.. code-block:: console $ source oe-init-build-env Next, from the :term:`Build Directory` (e.g. ``poky/build``), start Toaster -using this command:: +using this command: + +.. code-block:: console $ source toaster start @@ -33,7 +39,9 @@ as explained in section ":ref:`toaster-manual/setup-and-use:using the toaster web interface`". To access the Toaster web interface, open your favorite browser and -enter the following:: +enter the following: + +.. code-block:: text http://127.0.0.1:8000 @@ -42,7 +50,9 @@ Setting a Different Port By default, Toaster starts on port 8000. You can use the ``WEBPORT`` parameter to set a different port. For example, the following command -sets the port to "8400":: +sets the port to "8400": + +.. code-block:: console $ source toaster start webport=8400 @@ -69,7 +79,9 @@ Toaster environment. Before closing the environment, however, you should allow a few minutes to ensure the complete transfer of its BitBake build statistics to the Toaster database. If you have a separate Toaster web server instance running, you can watch this command-line build's -progress and examine the results as soon as they are posted:: +progress and examine the results as soon as they are posted: + +.. code-block:: console $ source toaster start noweb $ bitbake target @@ -87,7 +99,9 @@ disabled. Doing so is useful for the following: - Allowing only local command-line builds to be captured into the Toaster database. -Use the following command to set up Toaster without a build server:: +Use the following command to set up Toaster without a build server: + +.. code-block:: console $ source toaster start nobuild webport=port @@ -101,11 +115,15 @@ to the network, specifically the IP address that your NIC uses to connect to the network. You can also bind to all IP addresses the computer supports by using the shortcut "0.0.0.0:port". -The following example binds to all IP addresses on the host:: +The following example binds to all IP addresses on the host: + +.. code-block:: console $ source toaster start webport=0.0.0.0:8400 -This example binds to a specific IP address on the host's NIC:: +This example binds to a specific IP address on the host's NIC: + +.. code-block:: console $ source toaster start webport=192.168.1.1:8400 @@ -147,13 +165,17 @@ superuser by following these steps: #. If you used ``pip3``, which is recommended, to set up the Toaster system dependencies, you need be sure the local user path is in your ``PATH`` list. To append the pip3 local user path, use the following - command:: + command: + + .. code-block:: console $ export PATH=$PATH:$HOME/.local/bin #. From the directory containing the Toaster database, which by default is the :term:`Build Directory`, invoke the ``createsuperuser`` command from - ``manage.py``:: + ``manage.py``: + + .. code-block:: console $ cd poky/build $ ../bitbake/lib/toaster/manage.py createsuperuser @@ -167,14 +189,18 @@ superuser by following these steps: #. Django prompts you to re-enter your password for verification. After completing these steps, the following confirmation message -appears:: +appears: + +.. code-block:: text Superuser created successfully. Creating a superuser allows you to access the Django administration interface through a browser. The URL for this interface is the same as the URL used for the Toaster instance with "/admin" on the end. For -example, if you are running Toaster locally, use the following URL:: +example, if you are running Toaster locally, use the following URL: + +.. code-block:: text http://127.0.0.1:8000/admin @@ -209,16 +235,22 @@ Be sure you meet the following requirements: - Use the Mysql database server. -- If you are using Ubuntu, run the following:: +- If you are using Ubuntu, run the following: + + .. code-block:: console $ sudo apt install apache2 libapache2-mod-wsgi-py3 mysql-server python3-pip libmysqlclient-dev - If you are using Fedora or a RedHat distribution, run the - following:: + following: + + .. code-block:: console $ sudo dnf install httpd python3-mod_wsgi python3-pip mariadb-server mariadb-devel python3-devel -- If you are using openSUSE, run the following:: +- If you are using openSUSE, run the following: + + .. code-block:: console $ sudo zypper install apache2 apache2-mod_wsgi-python3 python3-pip mariadb mariadb-client python3-devel @@ -228,19 +260,25 @@ Installation Perform the following steps to install Toaster: #. Create toaster user and set its home directory to - ``/var/www/toaster``:: + ``/var/www/toaster``: + + .. code-block:: console $ sudo /usr/sbin/useradd toaster -md /var/www/toaster -s /bin/false $ sudo su - toaster -s /bin/bash #. Checkout a copy of ``poky`` into the web server directory. You will - be using ``/var/www/toaster``:: + be using ``/var/www/toaster``: + + .. code-block:: console $ git clone https://git.yoctoproject.org/poky $ git checkout &DISTRO_NAME_NO_CAP; #. Install Toaster dependencies using the ``--user`` flag which keeps the - Python packages isolated from your system-provided packages:: + Python packages isolated from your system-provided packages: + + .. code-block:: console $ cd /var/www/toaster/ $ pip3 install --user -r ./poky/bitbake/toaster-requirements.txt @@ -287,7 +325,9 @@ Perform the following steps to install Toaster: STATIC_ROOT = '/var/www/toaster/static_files/' -#. Add the database and user to the ``mysql`` server defined earlier:: +#. Add the database and user to the ``mysql`` server defined earlier: + + .. code-block:: console $ mysql -u root -p mysql> CREATE DATABASE toaster_data; @@ -296,7 +336,9 @@ Perform the following steps to install Toaster: mysql> quit #. Get Toaster to create the database schema, default data, and gather - the statically-served files:: + the statically-served files: + + .. code-block:: console $ cd /var/www/toaster/poky/ $ ./bitbake/lib/toaster/manage.py migrate @@ -320,12 +362,16 @@ Perform the following steps to install Toaster: the location of the Toaster :term:`Build Directory`. The Toaster root directory ``TOASTER_DIR`` determines where the Toaster build directory is created on the file system. In the example above, - ``TOASTER_DIR`` is set as follows:: + ``TOASTER_DIR`` is set as follows: + + .. code-block:: text /var/www/toaster/poky - This setting causes the Toaster :term:`Build Directory` to be:: + This setting causes the Toaster :term:`Build Directory` to be: + + .. code-block:: text /var/www/toaster/poky/build @@ -341,7 +387,9 @@ Perform the following steps to install Toaster: from the Layer Index is complete. To start the default Toaster Django web server with the Toaster - database now in Mysql, use the standard start commands:: + database now in Mysql, use the standard start commands: + + .. code-block:: console $ source oe-init-build-env $ source toaster start @@ -352,16 +400,22 @@ Perform the following steps to install Toaster: #. Add an Apache configuration file for Toaster to your Apache web server's configuration directory. If you are using Ubuntu or Debian, - put the file here:: + put the file here: + + .. code-block:: text /etc/apache2/conf-available/toaster.conf - If you are using Fedora or RedHat, put it here:: + If you are using Fedora or RedHat, put it here: + + .. code-block:: text /etc/httpd/conf.d/toaster.conf - If you are using openSUSE, put it here:: + If you are using openSUSE, put it here: + + .. code-block:: text /etc/apache2/conf.d/toaster.conf @@ -394,18 +448,24 @@ Perform the following steps to install Toaster: If you are using Ubuntu or Debian, you will need to enable the config and - module for Apache:: + module for Apache: + + .. code-block:: console $ sudo a2enmod wsgi $ sudo a2enconf toaster $ chmod +x bitbake/lib/toaster/toastermain/wsgi.py Finally, restart Apache to make sure all new configuration is loaded. For Ubuntu, - Debian, and openSUSE use:: + Debian, and openSUSE use: + + .. code-block:: console $ sudo service apache2 restart - For Fedora and RedHat use:: + For Fedora and RedHat use: + + .. code-block:: console $ sudo service httpd restart @@ -429,7 +489,9 @@ Perform the following steps to install Toaster: Prepare the ``runbuilds-service.sh`` script that you need to place in the ``/var/www/toaster/poky/bitbake/lib/toaster/`` directory by setting - up executable permissions:: + up executable permissions: + + .. code-block:: shell #!/bin/bash @@ -441,12 +503,16 @@ Perform the following steps to install Toaster: source ../bitbake/bin/toaster $1 noweb [ "$1" == 'start' ] && /bin/bash -#. Run the service:: +#. Run the service: + + .. code-block:: console $ sudo service runbuilds start Since the service is running in a detached screen session, you can - attach to it using this command:: + attach to it using this command: + + .. code-block:: console $ sudo su - toaster $ screen -rS runbuilds diff --git a/documentation/toaster-manual/start.rst b/documentation/toaster-manual/start.rst index 2d6474852a89..bb42f296b585 100644 --- a/documentation/toaster-manual/start.rst +++ b/documentation/toaster-manual/start.rst @@ -16,7 +16,9 @@ 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 ":ref:`dev-manual/start:preparing the build host`" section of the Yocto Project Development Tasks Manual. For Ubuntu/Debian, you might -also need to do an additional install of pip3. :: +also need to do an additional install of pip3. + +.. code-block:: console $ sudo apt install python3-pip @@ -35,17 +37,23 @@ Install Toaster Packages ------------------------ You need to install the packages that Toaster requires. Use this -command:: +command: + +.. code-block:: console $ pip3 install --user -r bitbake/toaster-requirements.txt The previous command installs the necessary Toaster modules into a local Python 3 cache in your ``$HOME`` directory. The caches is actually located in ``$HOME/.local``. To see what packages have been installed -into your ``$HOME`` directory, do the following:: +into your ``$HOME`` directory, do the following: + +.. code-block:: console $ pip3 list installed --local -If you need to remove something, the following works:: +If you need to remove something, the following works: + +.. code-block:: console $ pip3 uninstall PackageNameToUninstall