Files
operating-system/buildroot-external
Stefan Agner 5756969be9 Avoid trying to boot non-existing kernel image in failover case (#1016)
* Avoid trying to boot non-existing kernel image in fail-over case

The A/B update system automatically switches to the other boot slot when
booting fails. However, in a fresh installation, only boot slot A
exists. If booting fails three times (e.g. if somebody plugs out power
before the slot can be marked as good), then the system switches to boot
slot B which does not contain a kernel image yet. Avoid trying to boot
the non-existing kernel image.

With this change, if slot B is empty U-Boot will restore both slots to 3
attempts and retry booting from slot A on next reboot:

```
Trying to boot slot B, 2 attempts remaining. Loading kernel ...
** Unrecognized filesystem type **
No valid slot found, resetting tries to 3
storing env...
```

Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2020-11-24 17:33:44 +01:00
..
2020-05-04 15:11:43 +02:00
2020-08-06 20:49:42 +02:00
2020-11-17 20:06:03 +01:00
2020-11-18 09:56:38 +01:00
2020-11-13 18:25:44 +01:00
2018-05-14 22:37:39 +02:00
2018-05-14 22:37:39 +02:00
2020-11-10 22:55:18 +01:00