build: add CMake targets for merged binary generation and selective f… - #1850
Open
KillerInk wants to merge 2 commits into
Open
build: add CMake targets for merged binary generation and selective f…#1850KillerInk wants to merge 2 commits into
KillerInk wants to merge 2 commits into
Conversation
…lash Merge binary targets: - merge_bin_target: creates esp-miner-merged.bin (bootloader + partitions + firmware + OTA) - merge_bin_target_with_config: includes config from .cvs at 0x9000 - Configurable via -DMERGE_CONFIG_CVS=config-XXX.cvs (default: config-401.cvs) - Uses ESP-IDF nvs_partition_gen.py to generate config.bin automatically - merge_bin_target_update: firmware + OTA only in hex format for OTA updates - merge_bin_target_all_configs: generates one merged binary per config-*.bin file Flash targets (write individual components to preserve partitions): - flash_factory: full erase + write all partitions (first installation) - flash_update_keep_config: updates firmware, preserves NVS config at 0x9000 - flash_with_config: includes config from .cvs, preserves OTA/www partitions - flash_config_only: erase + write NVS config only (0x9000-0x10000) - flash_app_only: erase + write firmware only (0x10000-0x500000) These targets fix the issue where flashing a merged binary at 0x0 erased NVS config and OTA partitions up to 0xf12000, and provide cross-platform alternatives to the merge_bin.sh scripts. Update readme.md with documentation for all targets and erase range table.
Test Results 2 files 2 suites 1s ⏱️ Results for commit 2a92184. ♻️ This comment has been updated with latest results. |
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.
…lash
Merge binary targets:
Flash targets (write individual components to preserve partitions):
These targets fix the issue where flashing a merged binary at 0x0 erased NVS config and OTA partitions up to 0xf12000, and provide cross-platform alternatives to the merge_bin.sh scripts.
Update readme.md with documentation for all targets and erase range table.