feat: add fast factory stage prompts

This commit is contained in:
chenjintao
2026-09-24 09:48:51 +08:00
parent c615b30e20
commit 339873517e
6 changed files with 18 additions and 5 deletions
+7
View File
@@ -64,6 +64,13 @@ U:/factory_pass_zh.mp3
U:/factory_shutdown_zh.mp3
```
文件系统同时预留两段快速节点提示音,供后续接入测试节点时使用:
```text
U:/factory_audio_loopback_zh.mp3
U:/factory_nfc_test_zh.mp3
```
对应资源源目录为:
```text
+5 -1
View File
@@ -2,10 +2,12 @@
## 1. 说明
产测固件从 U 盘文件系统根目录读取以下三个文件:
产测音频包包含以下五个文件:
```text
factory_boot_zh.mp3
factory_audio_loopback_zh.mp3
factory_nfc_test_zh.mp3
factory_pass_zh.mp3
factory_shutdown_zh.mp3
```
@@ -44,6 +46,8 @@ dir audio_prompts\factory_test\customer_fs
```text
factory_boot_zh.mp3
factory_audio_loopback_zh.mp3
factory_nfc_test_zh.mp3
factory_pass_zh.mp3
factory_shutdown_zh.mp3
```
+2 -2
View File
@@ -30,7 +30,7 @@ burn_tool/aboot-tools-2024.08.08-win-x64/adownload.exe
factory_host/dist/EG800FactoryHost.exe
```
默认“产测固件”指向已包含三个产测 MP3 的 FT1 整包;默认“正式固件”指向
默认“产测固件”指向已包含五个产测 MP3 的 FT1 整包;默认“正式固件”指向
`version` 目录中的正式内层 `-fac.zip`。两者都可在外置
`factory_host_config.json` 中替换,烧录时不要选择 `-target.zip` 外层归档。
@@ -69,7 +69,7 @@ python -B .\factory_host\build_factory_audio_package.py
脚本会执行以下检查:
1. 源目录必须且只能包含三个固定文件名。
1. 源目录必须且只能包含五个固定文件名。
2. 每个文件必须为 16 kHz、单声道、48 kbps MP3。
3. 使用 SDK `mklfs-v2.exe -m` 生成 262144 字节 `customer_fs.bin`。
4. 立即反向解包镜像并逐文件比对 SHA-256。
+4 -2
View File
@@ -1,4 +1,4 @@
"""Validate and package the three fixed FT1 audio prompts."""
"""Validate and package the fixed FT1 audio prompts."""
from __future__ import annotations
@@ -15,6 +15,8 @@ from pathlib import Path
EXPECTED_FILES = (
"factory_boot_zh.mp3",
"factory_audio_loopback_zh.mp3",
"factory_nfc_test_zh.mp3",
"factory_pass_zh.mp3",
"factory_shutdown_zh.mp3",
)
@@ -165,7 +167,7 @@ def build_package(root: Path, output: Path) -> tuple[Path, Path, dict]:
readme_path.write_text(
"班班 FT1 产测音频包\n\n"
"customer_fs.bin 固定为 262144 字节,用于 EG800AKCN_11LG 的 customer_fs 分区。\n"
"三个 MP3 必须位于 U:/ 根目录;不要将此镜像混入正式业务固件。\n"
"五个 MP3 必须位于 U:/ 根目录;不要将此镜像混入正式业务固件。\n"
"烧录后以 FT1 BOOT_AUDIO 和最终 session_result 作为设备侧验证。\n",
encoding="utf-8-sig",
)