作者共發了2篇帖子。
字體大小:較小 - 100% (默認)▼  內容轉換:不轉換▼
 
點擊 回復
7 1
解决板子多次快速复位后,uboot错误切换到B槽位上,而B槽位刚好没有镜像导致死机的问题
巨大八爪鱼
武林盟主 二十一級
回復
1樓 發表於:2026-11-11 18:04
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

巨大八爪鱼
武林盟主 二十一級
回復
2樓 發表於:2026-11-11 18:04

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

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
(快捷鍵:Ctrl+Enter)
本帖信息
點擊數:7 回複數:1
作者:巨大八爪鱼
最後回覆:巨大八爪鱼
最後回復時間:2026-11-11 18:04
公告板