From 2fd78142053ec04d6de6fc69c5feff1ec911b69f Mon Sep 17 00:00:00 2001 From: MemRelay Date: Thu, 26 Nov 2026 17:38:35 +0800 Subject: [PATCH] =?UTF-8?q?create:=20MSM8916=20modemst=20=E5=88=86?= =?UTF-8?q?=E5=8C=BA=E5=AE=89=E5=85=A8=E5=A4=87=E4=BB=BD=E4=B8=8E=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:ltedongle-exp-modemst-backup-20261126 MemRelay-Resource: 7bd59e75-1bee-43fb-9541-dc1a76ab5549 --- .../MSM8916 modemst 分区安全备份与恢复流程.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 projects/bc51a377-ed2d-4afc-a176-554fce220d45/MSM8916 modemst 分区安全备份与恢复流程.md diff --git a/projects/bc51a377-ed2d-4afc-a176-554fce220d45/MSM8916 modemst 分区安全备份与恢复流程.md b/projects/bc51a377-ed2d-4afc-a176-554fce220d45/MSM8916 modemst 分区安全备份与恢复流程.md new file mode 100644 index 0000000..a072af4 --- /dev/null +++ b/projects/bc51a377-ed2d-4afc-a176-554fce220d45/MSM8916 modemst 分区安全备份与恢复流程.md @@ -0,0 +1,45 @@ +--- +title: MSM8916 modemst 分区安全备份与恢复流程 +type: experience +permalink: main/projects/bc51a377-ed2d-4afc-a176-554fce220d45/msm8916-modemst-分区安全备份与恢复流程 +stable_id: 7bd59e75-1bee-43fb-9541-dc1a76ab5549 +scope: project +memory_type: experience +project_id: bc51a377-ed2d-4afc-a176-554fce220d45 +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: ltedongle-exp-modemst-backup-20261126 +created_at: '2026-11-26T09:38:31.937448+00:00' +updated_at: '2026-11-26T09:38:31.937448+00:00' +tags: +- modemst +- backup +- experience +--- + +## 场景 +需要备份和恢复 UFI001C 的 modemst(基带 EFS)分区,里面包含 IMEI、RF 校准数据等关键信息。 + +## 备份流程 +1. systemctl stop ModemManager +2. systemctl stop rmtfs +3. 确认 remoteproc 状态变为 offline:cat /sys/class/remoteproc/remoteproc*/state +4. sha256sum /dev/mmcblk0p7 /dev/mmcblk0p8(记录停机前 hash) +5. dd if=/dev/mmcblk0p7 of=modemst1.bin bs=4096 conv=fsync +6. dd if=/dev/mmcblk0p8 of=modemst2.bin bs=4096 conv=fsync +7. sha256sum modemst1.bin modemst2.bin(必须与步骤 4 一致) +8. systemctl start rmtfs && systemctl start ModemManager +9. 若基带停在 shutting-down:qmicli -d /dev/wwan0qmi0 --dms-set-operating-mode=online + +## 恢复流程 +同上 1-3,然后反向 dd 写回,核对 hash,再启动服务。 + +## 关键经验 +- modemst1 对应 mmcblk0p7,modemst2 对应 mmcblk0p8 +- 权限 brw-rw---- root:disk,root 可读写 +- fsg 分区(mmcblk0p10)在此设备上全为 0,不能用作恢复源 +- 两个分区必须成对备份/恢复 +- 停止 rmtfs 后基带 remoteproc 会自动 offline,但之后重新启动服务时基带可能停在 shutting-down 状态,需要手动用 qmicli 拉回 online +- 整个过程中 ADB 连接可能因 USB gadget 受影响而断开,需要等待重连 +- 备份不要提交到 Git(含设备唯一标识) \ No newline at end of file