请问全志R329Tina安全启动校验linux/rootfs失败直接重启如何解决?
本回答来源全志R329Tina安全启动校验linux/rootfs失败直接重启如何解决?
参考下面补丁修改tina/lichee/brandy-2.0/u-boot-2018/cmd/bootm.c文件
diff --git a/cmd/bootm.c b/cmd/bootm.c
index 0a267b4251..887c1f0a79 100644
--- a/cmd/bootm.c
+++ b/cmd/bootm.c
@@ -248,13 +248,17 @@ int do_bootm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
full = 0;
}
if (sunxi_verify_partion(&verify_pattern, rootfs_name, "rootfs", full) != 0) {
- return -1;
+ gd->debug_mode = 8;
+ printf("sunxi verify rootfs fail, reboot\n");
+ reset_cpu(0);
}