253 字
1 分钟
Linux 使用 EDL 备份 Qualcomm 9008 设备
2024-08-13

背景#

我的设备是 410 wifi 棒,msm8916。最近发现了吃灰的它,发现内核还停留在 5.15,打算编译 6.6 的,于是打算备份,但鉴于起只能通过 9008 来备份整机,便有了这篇文章。

安装#

sudo apt install adb fastboot python3-dev python3-pip liblzma-dev git
sudo apt purge modemmanager

git clone https://github.com/bkerler/edl.git
cd edl
git submodule update --init --recursive

sudo cp Drivers/51-edl.rules /etc/udev/rules.d
sudo cp Drivers/50-android.rules /etc/udev/rules.d
# 重启 udev,不然无法识别设备
sudo udevadm control --reload-rules && sudo udevadm trigger

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

使用#

备份#

(venv) ~/p/edl master 13.9s > python3 edl rf all.bin
Qualcomm Sahara / Firehose Client V3.62 (c) B.Kerler 2018-2024.
main - Trying with no loader given ...
main - Waiting for the device
main - Device detected :)
main - Mode detected: firehose
Dumping flash with sector count 7634944 as all.bin.
Progress: |----------|   1.4% Read (Sector 0x192A0 of 0x748000, 06m:18s left) 9.09 MB/s

恢复#

(venv) ~/p/edl master 13.9s > python3 edl wf all.bin
Qualcomm Sahara / Firehose Client V3.62 (c) B.Kerler 2018-2024.
main - Trying with no loader given ...
main - Waiting for the device
main - Device detected :)
main - Mode detected: firehose
Writing flash with sector count 7634944 from all.bin.
Progress: |----------|   1.4% Write (Sector 0x192A0 of 0x748000, 06m:18s left) 9.09 MB/s
Linux 使用 EDL 备份 Qualcomm 9008 设备
https://blog.lpkt.cn/posts/linux-edl-bak/linux-edl-bak/
作者
lollipopkit
发布于
2024-08-13
许可协议
CC BY-NC-SA 4.0