How to disable the NVIDIA_L4T_BOOTMODE_RECOVERY mode

Hello, I am doing some tests about reboot cycles. After executing the boot script when the system start, After several times I noticed that the system enters Recovery mode easily. How can I disable this function, as our product, once produced, cannot be manually switched back to Normal mode. i think this is a misjudgment of system anomalies. i really need your help.

這個沒有辦法關掉. 建議先提供你的測試手法給我們確認一下哪邊出了問題

基本上連續三次開不進去rootfs跑systemd的話就會進入recovery image.

麻煩在這個檔案裡面打上patch.
/opt/nvidia/l4t-bootloader-config/nv-l4t-bootloader-config.service

@@ -31,6 +31,7 @@
 After=nv.service
 After=nvgetty.service
 After=l4t-rootfs-validation-config.service
+Before=shutdown.target reboot.target halt.target
 
 [Service]
 Type=oneshot

Hello,WayneWWW
这个应该可以解决reboot的问题,但是假设我们系统坏了也不想进入recovery mode,因为我们想切换到另一个备份进行一些恢复操作,这个功能能彻底在uefi代码中屏蔽掉么,我想理论上是可以的,只是我不太熟悉这些代码。

我前面說過了. 這個功能不支援關閉

修改uefi代码也不行么, what a pity . T T 或者修改次数大一些呢

Hello,WayneWWW

这个好像不行,几次后又进去了

能請你把uart log分享一下嗎? 開進去之前的. 另外能請你確認一下你每次到底有沒有執行到nv-l4t-bootloader-config.service?

能請你增加一下你那個service的delay看一下這樣能不能讓nv-l4t-bootloader-config.service被執行到嗎?

總之nv-l4t-bootloader-config.service如果沒被執行到, 連續三次之後就會進recovery image了

Hello,WayneWWW
这样测试必现,我在重启的脚本中增加5S延时再reboot发现也不行,不过这个测试只是一方面,但是从产品稳定性角度来讲我们就是想去掉这个功能,,,希望官方能考虑版本迭代的时候把这个功能选择权交给用户T T

Hello,WayneWWW,
i find this mechanism is in ROM , so i can not change it , how about recovery.img ? when in recovery mode does it mean it is runing recovery.img , i want to know how to rebuild recovery.img, Can i do something in it ?

Hi,

Please check

https://docs.nvidia.com/jetson/archives/r36.4/DeveloperGuide/SD/SoftwarePackagesAndTheUpdateMechanism.html#recovery-image-customization

Hello,WayneWWW,
I’d like to ask if, once I’ve entered recovery mode, will it automatically switch to direct boot after I perform an OTA on recovery.img?

Is this still an issue to support? Any result can be shared?

Hello,kayccc

yes, i need . how about this one ?