用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AeonDave/malskill --skill spi-flash命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | spi-flash |
| description | In-circuit and out-of-circuit SPI/NAND flash dumping and writing using flashrom and CH341A/FT232H. |
Use when UART is unavailable, or a full firmware extraction/patching loop is required.
W25Q*, Macronix MX25L* or GigaDevice GD25Q*).Rule: Read at least twice, and ensure hashes match before proceeding. Variance indicates bad clip contact or SoC contention.
# Read attempt 1
flashrom -p ch341a_spi -r fw_dump1.bin
# Read attempt 2
flashrom -p ch341a_spi -r fw_dump2.bin
# Verification
md5sum fw_dump1.bin fw_dump2.bin
If hashes differ, reseat the clip, shorten cables, or power the target board VCC slightly if SoC is draining programmer current.
Rule: Always backup original raw dump offline before writing.
# Write modified firmware back
flashrom -p ch341a_spi -w fw_patched.bin
Use binwalk to verify the read was successful and contains expected headers (not just 0xFF or 0x00).
binwalk fw_dump1.bin
# Expect: U-Boot header, Squashfs, JFFS2, TRX, or CramFS