Skip to contentSkip to conversation

bootstd: rauc: fix doc and info msg to reflect real flow

PATCH Superseded Andreas Pretzsch 4 participants 14 messages Oct 1, 2025 – Oct 14, 2025

lore
Share & tools
lore
#0 lore raw

cover bootstd: rauc: fix doc and info msg to reflect real flow

For the RAUC bootmethod, newly introduced in U-Boot 2025.10, both code and documentation contain some incorrect (maybe outdated) statements, so they do not reflect the real behaviour.
This series corrects both the docs and one log_info in the code, to now reflect the real flow. Beside being visible in the code, all of it was tested on a real machine.

Despite the very late time in RC cycle, I suggest inclusion before release of U-Boot 2025.10, as the current statements are simply incorrect. Also I do not see any risk in these non-functional changes.

Andreas Pretzsch (2):
bootstd: rauc: no valid slot fallback: fix info msg to reflect real
flow
bootstd: rauc: extend and fix doc to reflect real flow

 boot/bootmeth_rauc.c         |  3 ++-
 doc/develop/bootstd/rauc.rst | 19 +++++++++++++------
 2 files changed, 15 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/2 bootstd: rauc: no valid slot fallback: fix info msg to reflect real flow

If there is no more active slot found in find_active_slot(), like when all slots in BOOT_ORDER have a count of 0, the counters are reset to their default value CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES. The BOOT_ORDER is _not_ changed, which is logically correct (especially for the case when there is only one (active) slot set, e.g. BOOT_ORDER only contains 'B', probably due to RAUC option prevent-late-fallback being set). Resetting the counters of inactive slots also does not harm here, and is fine as a generic solution.

But the log_info statement in this scenario
INFO: Resetting boot order and all slot tries
is incorrect. Change this to
INFO: Resetting all slot tries to 3
with the 3 being inserted by CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES.

---
 boot/bootmeth_rauc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
boot/bootmeth_rauc.c +2 -1
index 81a73046e83..f5d5a971e87 100644
@@ -18,6 +18,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <string.h>
+#include <linux/stringify.h>
 #include <asm/cache.h>
 
 /* Length of env var "BOOT_*_LEFT" */
@@ -304,7 +305,7 @@ static int find_active_slot(char **slot_name, ulong *slot_tries)
 	if (!slot_found) {
 		if (IS_ENABLED(CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES)) {
 			log_warning("WARNING: No valid slot found\n");
-			log_info("INFO: Resetting boot order and all slot tries\n");
+			log_info("INFO: Resetting all slot tries to " __stringify(CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES) "\n");
 			boot_order_list = str_to_list(CONFIG_BOOTMETH_RAUC_BOOT_ORDER);
 			for (i = 0; boot_order_list[i]; i++) {
 				sprintf(boot_left, "BOOT_%s_LEFT", boot_order_list[i]);
Signature · 1 line
2.43.0
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] bootstd: rauc: no valid slot fallback: fix info msg to reflect real flow

Thanks for the fixes!

Quoted 54 lines · Andreas Pretzsch

If there is no more active slot found in find_active_slot(), like when
all slots in BOOT_ORDER have a count of 0, the counters are reset to their
default value CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES. The BOOT_ORDER is _not_
changed, which is logically correct (especially for the case when there is
only one (active) slot set, e.g. BOOT_ORDER only contains 'B', probably due
to RAUC option prevent-late-fallback being set). Resetting the counters of
inactive slots also does not harm here, and is fine as a generic solution.

But the log_info statement in this scenario
  INFO: Resetting boot order and all slot tries
is incorrect. Change this to
  INFO: Resetting all slot tries to 3
with the 3 being inserted by CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES.

---
 boot/bootmeth_rauc.c | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)
boot/bootmeth_rauc.c +1 -0
index 81a73046e83..f5d5a971e87 100644
@@ -18,6 +18,7 @@
  #include <malloc.h>
  #include <mapmem.h>
  #include <string.h>
+#include <linux/stringify.h>
  #include <asm/cache.h>


 /* Length of env var "BOOT_*_LEFT" */

boot/bootmeth_rauc.c +0 -0
@@ -304,7 +305,7 @@ static int find_active_slot(char **slot_name,
 ulong *slot_tries)
  	if (!slot_found) {

  if (IS_ENABLED(CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES)) { log_warning("WARNING: No valid slot found\n");

boot/bootmeth_rauc.c +0 -1
-			log_info("INFO: Resetting boot order and all

slot tries\n");

boot/bootmeth_rauc.c +1 -0
+			log_info("INFO: Resetting all slot tries to

" __stringify(CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES) "\n"); boot_order_list = str_to_list(CONFIG_BOOTMETH_RAUC_BOOT_ORDER);
  for (i = 0; boot_order_list[i]; i++) { sprintf(boot_left, "BOOT_%s_LEFT", boot_order_list[i]);

#3 lore raw

PATCH 2/2 bootstd: rauc: extend and fix doc to reflect real flow

In reply to Andreas Pretzsch

The documentation of bootmeth rauc in some aspects does not reflect the real program flow. Specifically the reset of boot tries in case of "no more slots found" is incorrect (it won't change BOOT_ORDER). Also the search sequence for boot scripts was mixed and incomplete. Fix these points in the documentation.

Explain the initial setup of any missing BOOT_ORDER and BOOT_x_LEFT environment variables, and inform about BOOT_x_LEFT decrementing.

---
 doc/develop/bootstd/rauc.rst | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)
doc/develop/bootstd/rauc.rst +13 -6
index b2661d18da4..668d2a138a3 100644
@@ -21,14 +21,21 @@ with the left one tried first.
 The default number of boot tries of each slot is set by
 ``CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES``.
 
-In case no valid slot can be found and/or all slots have zero tries left, the
-boot order and slot tries are reset to their default values, if
-``CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES`` is enabled. This prevents a system
-from locking up in the bootloader and tries booting again after a specified
-number of tries.
+If ``BOOT_ORDER`` does not exist in environment, it will be created and set to
+``CONFIG_BOOTMETH_RAUC_BOOT_ORDER``.  If any ``BOOT_x_LEFT`` (``BOOT_A_LEFT``,
+``BOOT_B_LEFT``) does not exist in environment, it will be created and set to
+``CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES``.
+
+If ``CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES`` is enabled, and no valid slot
+is found (all slots in BOOT_ORDER have BOOT_x_LEFT set to 0), *all* slot tries
+are reset to their default values.  This prevents a system from locking up in
+the bootloader and tries booting again after a specified number of tries.
+
+If a valid slot is found, its LEFT value in environment is decremented by 1.
 
 The boot script must be located in each boot partition. The bootmeth searches
-for "boot.scr.uimg" first, then "boot.scr" if not found.
+for ``boot.scr`` first, then ``boot.scr.uimg`` if not found. It will search in
+all directories of the bootstd list of prefixes (``"/", "/boot"`` by default).
 
 When the bootflow is booted, the bootmeth sets these environment variables:
 
Signature · 1 line
2.43.0
#4 lore raw

Re: [PATCH 2/2] bootstd: rauc: extend and fix doc to reflect real flow

Hi Andreas,

two small nit-picks below...

Quoted 34 lines · Andreas Pretzsch

The documentation of bootmeth rauc in some aspects does not reflect the
real program flow. Specifically the reset of boot tries in case of "no
more slots found" is incorrect (it won't change BOOT_ORDER). Also the search sequence for boot scripts was mixed and incomplete. Fix these points in the documentation.

Explain the initial setup of any missing BOOT_ORDER and BOOT_x_LEFT environment variables, and inform about BOOT_x_LEFT decrementing.

---
 doc/develop/bootstd/rauc.rst | 19 +++++++++++++------

 1 file changed, 13 insertions(+), 6 deletions(-)
doc/develop/bootstd/rauc.rst +0 -0
index b2661d18da4..668d2a138a3 100644
@@ -21,14 +21,21 @@ with the left one tried first.

 The default number of boot tries of each slot is set by ``CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES``.

-In case no valid slot can be found and/or all slots have zero tries left, the
-boot order and slot tries are reset to their default values, if -``CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES`` is enabled. This prevents a system
-from locking up in the bootloader and tries booting again after a specified

doc/develop/bootstd/rauc.rst +1 -1
-number of tries.
+If ``BOOT_ORDER`` does not exist in environment, it will be created
Quoted 4 lines

and set to
+``CONFIG_BOOTMETH_RAUC_BOOT_ORDER``.  If any ``BOOT_x_LEFT`` (``BOOT_A_LEFT``,
+``BOOT_B_LEFT``) does not exist in environment, it will be created

Use "e.g." here, as the slots may be named differently and this is just an example:

(e.g. ``BOOT_A_LEFT``, ``BOOT_B_LEFT``)

Quoted 6 lines

and set to
+``CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES``.

doc/develop/bootstd/rauc.rst +2 -0
+
+If ``CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES`` is enabled, and no

valid slot
+is found (all slots in BOOT_ORDER have BOOT_x_LEFT set to 0), *all*

Use inline literal formatting here:

(all slots in ``BOOT_ORDER`` have ``BOOT_x_LEFT`` set to 0)

Regards,
Martin

Quoted 20 lines

slot tries
+are reset to their default values.  This prevents a system from locking up in
+the bootloader and tries booting again after a specified number of tries.

doc/develop/bootstd/rauc.rst +2 -0
+
+If a valid slot is found, its LEFT value in environment is

decremented by 1.

 The boot script must be located in each boot partition. The bootmeth searches

doc/develop/bootstd/rauc.rst +1 -1
-for "boot.scr.uimg" first, then "boot.scr" if not found.
+for ``boot.scr`` first, then ``boot.scr.uimg`` if not found. It will

search in
+all directories of the bootstd list of prefixes (``"/", "/boot"`` by default).

 When the bootflow is booted, the bootmeth sets these environment variables:

#5 lore raw

v2 cover bootstd: rauc: fix doc and info msg to reflect real flow

In reply to Andreas Pretzsch

For the RAUC bootmethod, newly introduced in U-Boot 2025.10, both code and documentation contain some incorrect (maybe outdated) statements, so they do not reflect the real behaviour.
This series corrects both the docs and one log_info in the code, to now reflect the real flow. Beside being visible in the code, all of it was tested on a real machine.

Despite the very late time in RC cycle, I suggest inclusion before release of U-Boot 2025.10, as the current statements are simply incorrect. Also I do not see any risk in these non-functional changes.
Thanks to Martin Schwan for the review and esp. the initial code!

Changes for v2:
- bootmeth_rauc.c: add Reviewed-by of Martin Schwan
- doc: rephrase and fix formatting based on feedback from Martin Schwan

Andreas Pretzsch (2):
bootstd: rauc: no valid slot fallback: fix info msg to reflect real
flow
bootstd: rauc: extend and fix doc to reflect real flow

 boot/bootmeth_rauc.c         |  3 ++-
 doc/develop/bootstd/rauc.rst | 19 +++++++++++++------
 2 files changed, 15 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0
#6 lore raw

PATCH v2 1/2 bootstd: rauc: no valid slot fallback: fix info msg to reflect real flow

If there is no more active slot found in find_active_slot(), like when all slots in BOOT_ORDER have a count of 0, the counters are reset to their default value CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES. The BOOT_ORDER is _not_ changed, which is logically correct (especially for the case when there is only one (active) slot set, e.g. BOOT_ORDER only contains 'B', probably due to RAUC option prevent-late-fallback being set). Resetting the counters of inactive slots also does not harm here, and is fine as a generic solution.

But the log_info statement in this scenario
INFO: Resetting boot order and all slot tries
is incorrect. Change this to
INFO: Resetting all slot tries to 3
with the 3 being inserted by CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES.

---
Changes for v2:
- add Reviewed-by of Martin Schwan

 boot/bootmeth_rauc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
boot/bootmeth_rauc.c +2 -1
index 81a73046e83..f5d5a971e87 100644
@@ -18,6 +18,7 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <string.h>
+#include <linux/stringify.h>
 #include <asm/cache.h>
 
 /* Length of env var "BOOT_*_LEFT" */
@@ -304,7 +305,7 @@ static int find_active_slot(char **slot_name, ulong *slot_tries)
 	if (!slot_found) {
 		if (IS_ENABLED(CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES)) {
 			log_warning("WARNING: No valid slot found\n");
-			log_info("INFO: Resetting boot order and all slot tries\n");
+			log_info("INFO: Resetting all slot tries to " __stringify(CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES) "\n");
 			boot_order_list = str_to_list(CONFIG_BOOTMETH_RAUC_BOOT_ORDER);
 			for (i = 0; boot_order_list[i]; i++) {
 				sprintf(boot_left, "BOOT_%s_LEFT", boot_order_list[i]);
Signature · 1 line
2.43.0
#7 lore raw

PATCH v2 2/2 bootstd: rauc: extend and fix doc to reflect real flow

In reply to Andreas Pretzsch

The documentation of bootmeth rauc in some aspects does not reflect the real program flow. Specifically the reset of boot tries in case of "no more slots found" is incorrect (it won't change BOOT_ORDER). Also the search sequence for boot scripts was mixed and incomplete. Fix these points in the documentation.

Explain the initial setup of any missing BOOT_ORDER and BOOT_x_LEFT environment variables, and inform about BOOT_x_LEFT decrementing.

---
Changes for v2:
- rephrase and fix formatting based on feedback from Martin Schwan

 doc/develop/bootstd/rauc.rst | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)
doc/develop/bootstd/rauc.rst +13 -6
index b2661d18da4..5afd705dcb1 100644
@@ -21,14 +21,21 @@ with the left one tried first.
 The default number of boot tries of each slot is set by
 ``CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES``.
 
-In case no valid slot can be found and/or all slots have zero tries left, the
-boot order and slot tries are reset to their default values, if
-``CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES`` is enabled. This prevents a system
-from locking up in the bootloader and tries booting again after a specified
-number of tries.
+If ``BOOT_ORDER`` does not exist in environment, it will be created and set to
+``CONFIG_BOOTMETH_RAUC_BOOT_ORDER``.  If any ``BOOT_x_LEFT`` (for example
+``BOOT_A_LEFT`` and/or ``BOOT_B_LEFT``) does not exist in environment, it will
+be created and set to ``CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES``.
+
+If ``CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES`` is enabled, and no valid slot
+is found (all slots in ``BOOT_ORDER`` have ``BOOT_x_LEFT`` set to 0), *all* slot
+tries are reset to their default values.  This prevents a system from locking up
+in the bootloader and tries booting again after a specified number of tries.
+
+If a valid slot is found, its LEFT value in environment is decremented by 1.
 
 The boot script must be located in each boot partition. The bootmeth searches
-for "boot.scr.uimg" first, then "boot.scr" if not found.
+for ``boot.scr`` first, then ``boot.scr.uimg`` if not found. It will search in
+all directories of the bootstd list of prefixes (``"/", "/boot"`` by default).
 
 When the bootflow is booted, the bootmeth sets these environment variables:
 
Signature · 1 line
2.43.0
Reviewed-by on v2 2/2
#8 lore raw

Re: [PATCH v2 2/2] bootstd: rauc: extend and fix doc to reflect real flow

Quoted 67 lines · Andreas Pretzsch

The documentation of bootmeth rauc in some aspects does not reflect the
real program flow. Specifically the reset of boot tries in case of "no
more slots found" is incorrect (it won't change BOOT_ORDER). Also the search sequence for boot scripts was mixed and incomplete. Fix these points in the documentation.

Explain the initial setup of any missing BOOT_ORDER and BOOT_x_LEFT environment variables, and inform about BOOT_x_LEFT decrementing.

---
Changes for v2:
  - rephrase and fix formatting based on feedback from Martin Schwan

 doc/develop/bootstd/rauc.rst | 19 +++++++++++++------

 1 file changed, 13 insertions(+), 6 deletions(-)
doc/develop/bootstd/rauc.rst +0 -0
index b2661d18da4..5afd705dcb1 100644
@@ -21,14 +21,21 @@ with the left one tried first.

 The default number of boot tries of each slot is set by ``CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES``.

-In case no valid slot can be found and/or all slots have zero tries left, the
-boot order and slot tries are reset to their default values, if -``CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES`` is enabled. This prevents a system
-from locking up in the bootloader and tries booting again after a specified

doc/develop/bootstd/rauc.rst +1 -1
-number of tries.
+If ``BOOT_ORDER`` does not exist in environment, it will be created

and set to
+``CONFIG_BOOTMETH_RAUC_BOOT_ORDER``.  If any ``BOOT_x_LEFT`` (for example
+``BOOT_A_LEFT`` and/or ``BOOT_B_LEFT``) does not exist in environment, it will

doc/develop/bootstd/rauc.rst +3 -0
+be created and set to ``CONFIG_BOOTMETH_RAUC_DEFAULT_TRIES``.
+
+If ``CONFIG_BOOTMETH_RAUC_RESET_ALL_ZERO_TRIES`` is enabled, and no

valid slot
+is found (all slots in ``BOOT_ORDER`` have ``BOOT_x_LEFT`` set to 0), *all* slot
+tries are reset to their default values.  This prevents a system from locking up
+in the bootloader and tries booting again after a specified number of tries.

doc/develop/bootstd/rauc.rst +2 -0
+
+If a valid slot is found, its LEFT value in environment is

decremented by 1.

 The boot script must be located in each boot partition. The bootmeth searches

doc/develop/bootstd/rauc.rst +1 -1
-for "boot.scr.uimg" first, then "boot.scr" if not found.
+for ``boot.scr`` first, then ``boot.scr.uimg`` if not found. It will

search in
+all directories of the bootstd list of prefixes (``"/", "/boot"`` by default).

 When the bootflow is booted, the bootmeth sets these environment variables:

#9 lore raw
In reply to Andreas Pretzsch
Quoted 8 lines · Andreas Pretzsch

For the RAUC bootmethod, newly introduced in U-Boot 2025.10, both code and documentation contain some incorrect (maybe outdated) statements, so they do not reflect the real behaviour.
This series corrects both the docs and one log_info in the code, to now reflect the real flow. Beside being visible in the code, all of it was tested on a real machine.

[...]

Applied to u-boot/master, thanks!

[1/2] bootstd: rauc: no valid slot fallback: fix info msg to reflect real flow

      commit: d6277523e54f4398dc5fe26e1d6151f400c974ca
[2/2] bootstd: rauc: extend and fix doc to reflect real flow
      commit: 1c3687782fcedbf13d114d0dcf3d151f2a210973
Signature · 1 line
Tom
#10 lore raw
In reply to Andreas Pretzsch

Hi,

Quoted 12 lines · Andreas Pretzsch

For the RAUC bootmethod, newly introduced in U-Boot 2025.10, both code and documentation contain some incorrect (maybe outdated) statements, so they do not reflect the real behaviour.
This series corrects both the docs and one log_info in the code, to now reflect the real flow. Beside being visible in the code, all of it was tested on a real machine.

Despite the very late time in RC cycle, I suggest inclusion before release of U-Boot 2025.10, as the current statements are simply incorrect. Also I do not see any risk in these non-functional changes.

Quoted 8 lines

Andreas Pretzsch (2):
bootstd: rauc: no valid slot fallback: fix info msg to reflect real
flow
bootstd: rauc: extend and fix doc to reflect real flow

 boot/bootmeth_rauc.c         |  3 ++-
 doc/develop/bootstd/rauc.rst | 19 +++++++++++++------
 2 files changed, 15 insertions(+), 7 deletions(-)

While we are talking about this bootmeth, does anyone know what happened re a test for it?

Regards,
Simon

#11 lore raw

Re: [PATCH 0/2] bootstd: rauc: fix doc and info msg to reflect real flow - test cases

Quoted 8 lines · Simon Glass

Hi,

Quoted 3 lines · Andreas Pretzsch

For the RAUC bootmethod, newly introduced in U-Boot 2025.10 [...]

While we are talking about this bootmeth, does anyone know what happened re a test for it?

Guess you refer to test code for bootmeth-rauc. Honestly, no idea.

I just came to notice that there now is an official way, so bumped the U-Boot version to 2025.10 in a customer project. And stumbled upon some details, hence the fixes. I've got some more in the workqueue (mostly improve printouts what went wrong and extending documentation a bit), but none of it will be ready before 2025.10 release. Needs polish and testing. I'll send them in hopefully in time for 2025.11 merge window.

A quick look in test/boot/bootmeth.c shows some tests for extlinux, efi, vbe simple. I guess the list check would be expandable for rauc, too. The fixed numbering might need some massage, but surely doable.

But the real thing is to test the boot flow itself, and especially the switchover and fallback handling. Which in principle is comparable for all methods, but differ in detail. I can see you already wrote quite extensive test cases here, respect for that! However I haven't looked into them yet. But pretty sure this will be a task of days, not hours.

While I'm happy to assist here, I realistically won't find the time to act as the main implementor.
But maybe Martin Schwan already has some snippets prepared here ? Or we even might pull in the RAUC developers, to some extent at least ? I know their codebase includes an outstanding amount of test coverage, so there is appreciation for testing at least.

Best regards,
Andreas

Signature · 5 lines
carpe noctem engineering
Ingenieurbuero fuer Hard- & Software-Entwicklung Andreas Pretzsch
Dipl.-Ing. (FH) Andreas Pretzsch      Phone: +49-(0)711-3908735-7
Tuebinger Strasse 63                  email: [email protected]
70178 Stuttgart, Germany              VATIN: DE814841529
#12 lore raw

Re: [PATCH 0/2] bootstd: rauc: fix doc and info msg to reflect real flow - test cases

Hi Simon,

sorry, that I didn't reply to your personal message.

I had the tests for bootmeth_rauc on my to-do list and I am working on it right now. It took me some time to get the existing tests in test/boot/ to work (test instructions and environment are not easy to understand from the documentation). I hope to have some patches soon.

Regards,
Martin Schwan

Quoted 48 lines · Andreas Pretzsch
Quoted 9 lines · Simon Glass

Hi,

Quoted 3 lines · Andreas Pretzsch

For the RAUC bootmethod, newly introduced in U-Boot 2025.10 [...]

While we are talking about this bootmeth, does anyone know what happened re a test for it?

Guess you refer to test code for bootmeth-rauc. Honestly, no idea.

I just came to notice that there now is an official way, so bumped the
U-Boot version to 2025.10 in a customer project. And stumbled upon some
details, hence the fixes. I've got some more in the workqueue (mostly improve printouts what went wrong and extending documentation a bit), but none of it will be ready before 2025.10 release. Needs polish and testing. I'll send them in hopefully in time for 2025.11 merge window.

A quick look in test/boot/bootmeth.c shows some tests for extlinux, efi, vbe simple. I guess the list check would be expandable for rauc, too. The fixed numbering might need some massage, but surely doable.

But the real thing is to test the boot flow itself, and especially the
switchover and fallback handling. Which in principle is comparable for
all methods, but differ in detail. I can see you already wrote quite extensive test cases here, respect for that! However I haven't looked into them yet. But pretty sure this will be a task of days, not hours.

While I'm happy to assist here, I realistically won't find the time to
act as the main implementor.
But maybe Martin Schwan already has some snippets prepared here ? Or we even might pull in the RAUC developers, to some extent at least ?
I know their codebase includes an outstanding amount of test coverage,
so there is appreciation for testing at least.

Best regards,
  Andreas

#13 lore raw

Re: [PATCH 0/2] bootstd: rauc: fix doc and info msg to reflect real flow - test cases

Hi Martin,

Quoted 9 lines · Martin Schwan

Hi Simon,

sorry, that I didn't reply to your personal message.

I had the tests for bootmeth_rauc on my to-do list and I am working on it right now. It took me some time to get the existing tests in test/boot/ to work (test instructions and environment are not easy to understand from the documentation). I hope to have some patches soon.

OK, great! If you are able to send a patch for the docs to make it easier for future people, please do.

Regards,
Simon