新增map绑定转储诊断(dhara_map_find+裸读绑定页):跨boot对比定界树分歧与数据丢失

This commit is contained in:
2026-09-20 10:48:47 +08:00
parent 7d6f431d68
commit 66fc48cd98
4 changed files with 310 additions and 0 deletions
+5
View File
@@ -20,6 +20,7 @@
#include "sd2506.h"
#include "sys_clock.h"
#include "gd5f2gq5ue.h"
#include "nand_ftl.h"
#include "tpafe5160.h"
#include "sys_log.h"
@@ -72,6 +73,10 @@ int app_main_init(void) {
(ret == GD5F_ID_MISMATCH) ? "ID MISMATCH" : "UNKNOWN");
if (ret != GD5F_OK) {
syslog_post(SYSLOG_SELFTEST, "NAND fault");
} else {
/* 裸片读写擦持久性自检(2026-09-20 诊断,可整块移除):
* 定界"驱动层读写擦 / FTL 层 / 掉电持久性"三个故障域 */
nand_ftl_raw_persist_test();
}
/* 4) TPAFE5160 ADC 测试 */