Skip to content

Commit

Permalink
Merge pull request #1242 from ejoerns/doc-integration-barebox
Browse files Browse the repository at this point in the history
docs/integration: update for barebox
  • Loading branch information
jluebbe committed Aug 31, 2023
2 parents 894c980 + b914365 commit 13067d3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions docs/integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,13 @@ In this example we call the virtual bootchooser boot targets ``system0`` and
Now connect each of these virtual boot targets to a real Barebox boot target
(one of its automagical ones or custom boot scripts)::

nv bootchooser.system0.boot="nand0.ubi.system0"
nv bootchooser.system1.boot="nand0.ubi.system1"
nv bootchooser.system0.boot="mmc1.1"
nv bootchooser.system1.boot="mmc1.2"

.. note:: For most cases, no extra boot entry needs to be configured since
barebox will match the the given boot target to the corresponding device,
automatically mount it and attempt to read a matching bootloader
specification (bootspec) entry from ``/loader/entries/``.

To configure bootchooser to store the variables in Barebox state, you need to configure the ``state_prefix``::

Expand Down Expand Up @@ -780,6 +785,17 @@ successfully set up bootchooser to boot your slot::

$ cat /proc/cmdline

Enable Watchdog on Boot
^^^^^^^^^^^^^^^^^^^^^^^

When enabled, Barebox will automatically set up the configured watchdog when
running the ``boot`` command.

To enable this, set the ``boot.watchdog_timeout`` variable, preferably in the
environment::

nv boot.watchdog_timeout=10


U-Boot
~~~~~~
Expand Down

0 comments on commit 13067d3

Please sign in to comment.