巨大八爪鱼
武林盟主 二十一級
|
1.在开机脚本的rauc status mark-good后面再加一句rauc status mark-bad other。 2.修改uboot的bootcmd: test -n "${BOOT_ORDER}" || setenv BOOT_ORDER "A B" 改成 test -n "${BOOT_ORDER}" || setenv BOOT_ORDER "A"
Prevent a fallback if my current partition is good
#1588
Answered
by
a3f
BtdDurand
asked this question in
Q&A
|
巨大八爪鱼
武林盟主 二十一級
|
BtdDurand on Jan 6, 2025
I'm currently using Rauc on a SOM running a Renesaz RZ/G2L processor with u-boot as bootloader. Everything works fine but I was able to boot on the fallback partition while my current partition is good:
my current partition has been marked as good by the status mark-good command my equipment reboots u-boot decrements the BOOT_X_LEFT variable a power failure occurs before the status mark-good command if this power failure occurs several times, BOOT_X_LEFT is equal to 0 on the next boot, the equipment boots on the fallback partition
Does Rauc include a safety feature to prevent booting on the fallback partition when the current partition is good? Answered by a3f on Jan 26, 2025
prevent-late-fallback=true has been introduced in the recently merged #1584 View full answer Replies: 1 comment · 3 replies
a3f on Jan 26, 2025
prevent-late-fallback=true has been introduced in the recently merged #1584 3 replies @BtdDurand BtdDurand on Jan 27, 2025 Author
Ok, thank you very much. @ejoerns ejoerns on Jan 27, 2025 Maintainer
@BtdDurand Depending on your needs, you could also set BOOT_X_LEFT to a higher value. Then it would need more power failures in a row to fall back.
An alternative implementation we have in mind is to allow disabling all boot counting once the system has successfully booted. However, this has other implications, too.
In general, it's a general question of whether you need a fallback or not. Fallback handling has implications on availability, security, consistency, etc. @BtdDurand BtdDurand on Jan 27, 2025 Author
@ejoerns Thank you for these clarifications. I added the command rauc status mark-bad other after rauc status mark-good and everything works fine. Answer selected by BtdDurand
|