From 479d66c9e375202a8317c0eed9567064d880b61d Mon Sep 17 00:00:00 2001 From: SashegDev Date: Mon, 7 Sep 2026 07:23:03 +0000 Subject: [PATCH] compat: thor2/WPInternals USB table, tools/check-env.sh --- compat/thor2-wpinternals.md | 27 +++++++++++++++++++++++++++ tools/check-env.sh | 11 +++++++++++ 2 files changed, 38 insertions(+) create mode 100644 compat/thor2-wpinternals.md create mode 100755 tools/check-env.sh diff --git a/compat/thor2-wpinternals.md b/compat/thor2-wpinternals.md new file mode 100644 index 0000000..6769f76 --- /dev/null +++ b/compat/thor2-wpinternals.md @@ -0,0 +1,27 @@ +# Совместимость с оригинальными прогами + +## USB +| Режим | VID:PID | Кто работает | +|---|---|---| +| EDL QDLoader 9008 | 05C6:9008 | thor2 emergency, qdl, bkerler/edl, QFIL | +| Flash/MassStorage | 045E:9006 | thor2 uefiflash, WDRT, WPInternals, Rufus, Win32DiskImager | +| QHSUSB_BULK | 05C6:9008 без драйвера | нужен HEX по RKH | + +## thor2 (только Windows-хост!) +```bat +thor2 -mode listconnections +thor2 -mode emergency -hexfile MPRG8909_fh.ede -edfile RM1127_fh.edp [-ffufile orig.ffu] +thor2 -mode ffureader -ffufile orig.ffu -dump_gpt -filedir Dump +thor2 -mode uefiflash -ffufile orig.ffu -do_full_nvi_update -do_factory_reset +thor2 -mode rnd -bootnormalmode +``` +Из WSL: `usbipd attach` эмулятора в Windows, сам QEMU в WSL. Напрямую в линуксе thor2 нет. + +## WPInternals +Orig FFU + MPRG8909_fh.ede/RM1127_fh.edp + donor RM-1085. USB 2.0 only. +MainOS примонтировал — НЕ ФОРМАТИРОВАТЬ. + +## Ошибки +- 0x1106 SEC_HDR_FAIL = чужой RM/product code, не лечится флагами +- 0xFA000006 = батарея/cбой Secure FFU +- 85030 = тайминг reset+Enter, кабель/USB3 diff --git a/tools/check-env.sh b/tools/check-env.sh new file mode 100755 index 0000000..c57f752 --- /dev/null +++ b/tools/check-env.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Проверка окружения для lumia-emu (linux/amd64, WSL). +echo "== lumia-emu env ==" +echo -n "os: "; uname -srm +echo -n "disk /root: "; df -h /root | awk 'NR==2{print $4" free ("$5" used)"}' +echo -n "mem: "; free -h | awk 'NR==2{print $2" total, "$7" avail"}' +for t in qemu-system-arm qemu-img python3 dtc usbipd; do + if command -v $t >/dev/null 2>&1; then echo "OK $t: $(command -v $t)"; else echo "MISS $t"; fi +done +echo -n "fw/: "; ls fw/ 2>/dev/null | head -5 || echo "(пусто — залить orig.ffu + MPRG8909_fh.ede к 17:00 МСК)" +echo "note: FFU ~2G + emmc 8G требуют ~12G; на сервере сейчас ~4G — качать только на домашнем WSL"