mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] doc: bootchooser: Fix barebox-state example
@ 2020-02-04 13:50 Christian Eggers
  2020-02-10  8:10 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Eggers @ 2020-02-04 13:50 UTC (permalink / raw)
  To: barebox; +Cc: Christian Eggers, ceggers

- Fix prefix
- attemps --> attempts
- add missing equal sign
- Add 2 examples

Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 Documentation/user/bootchooser.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/user/bootchooser.rst b/Documentation/user/bootchooser.rst
index 1680ea78ed..8456e11823 100644
--- a/Documentation/user/bootchooser.rst
+++ b/Documentation/user/bootchooser.rst
@@ -112,7 +112,9 @@ In case only the booted system itself knows when it is in a good state,
 it can report this to the bootchooser from Linux userspace using the
 *barebox-state* tool from the dt-utils_ package.::
 
-  barebox-state -s bootstate.<target>.remaining_attemps <reset-value>
+  barebox-state [-n <state variable set>] -s [<prefix>.]<target>.remaining_attempts=<reset-value>
+  barebox-state -n system_state -s bootstate.system1.remaining_attempts=3
+  barebox-state -s system1.remaining_attempts=3
 
 If instead the bootchooser can detect a failed boot itself using the
 :ref:`reset reason <reset_reason>` (WDG), one can mark the boot successful
-- 
Christian Eggers
Embedded software developer

Arnold & Richter Cine Technik GmbH & Co. Betriebs KG
Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918
Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH
Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477
Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-10  8:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 13:50 [PATCH] doc: bootchooser: Fix barebox-state example Christian Eggers
2020-02-10  8:10 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox