Auto-download firmware from OpenIPC when -f is omitted#4
Merged
Conversation
When no firmware file is specified with -f, defib now automatically downloads the appropriate U-Boot binary from OpenIPC releases. Supports 26 chip models with caching to avoid re-downloads. CLI: defib burn -c hi3516ev300 -p /dev/ttyUSB0 (downloads u-boot-hi3516ev300-universal.bin automatically) defib burn -c hi3516ev300 -f my-custom.bin -p /dev/ttyUSB0 (uses local file as before) WebUI: Chip selection now shows "Download from OpenIPC" button when a pre-built firmware is available. Users can still pick a local file for custom builds. - firmware.py: download, cache, URL resolution, chip aliases - Cache: ~/.cache/defib/firmware/ (Linux), ~/Library/Caches/ (macOS) - 11 new tests for firmware module Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Users under stress recovering a bricked camera don't want to hunt for the right U-Boot binary. Now defib downloads it automatically.
CLI — just specify chip and port:
defib burn -c hi3516ev300 -p /dev/ttyUSB0 # Downloads u-boot-hi3516ev300-universal.bin from OpenIPC, caches it, flashesWebUI — one-click download button appears when chip is selected:
Select chip → "Download U-Boot for hi3516ev300" button → Start Recovery
Local file still works:
Details
🤖 Generated with Claude Code