If the nv-l4t-bootloader-config.service fails to run or fail to successfully finishes for consecutive 3 times, then it will enter recovery boot.
sudo systemctl status nv-l4t-bootloader-config
This could be any kind of reason. For example, if there is kernel panic happened and make your board unable to boot rootfs, and it happens 3 times consecutively, then it will trigger recovery boot.
I don’t understand. How does the script both fail to run and finish successfully? I’ll run the script with set -x and see what’s happening. Thanks for the pointer.
It should be " fails to run or fail to successfully finishes".
I would suggest you just run your normal usecase and enable serial console to monitor the log.
Generally, this issue is mostly happened after kernel panic.
Run this script alone will not help in debugging this issue. The root cause of such issue is mostly from others.