Repository navigation
Burn Image: write at the address the menu means, in any language - #86
Merged
Merged
Conversation
Burn Image read the address from the menu's label: the text in
parentheses, as in "boot (0x8000)". The full-firmware item is the other
way round, "0x0 (完整固件)" in Chinese, so rkdeveloptool got
"wl 完整固件 <image>" and refused it ("Begin is invalid"). In English
"0x0 (Full Firmware)" didn't match and the whole label went through,
which rkdeveloptool happened to read as 0.
Each menu item now carries its address as item data, and Burn Image and
the custom-address field use that. The custom address is trimmed.
Fixes #85
Closed
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.
Fixes #85.
Bug: in the Chinese UI, Burn Image at "0x0 (完整固件)" ran
rkdeveloptool wl 完整固件 <image>, and rkdeveloptool refused it withBegin is invalid, please check!. The reporter ranwl 0x0 <image>by hand and it worked.Cause:
burn_imagetook the address from the text in parentheses, which suits partition items likeboot (0x8000). The full-firmware item is the other way round:0x0 (完整固件)matched\((\S+)\), so the address became完整固件.0x0 (Full Firmware)didn't match because of the space, so the whole label was passed. rkdeveloptool happened to read that as 0, which is why it only broke in Chinese.The parsing dates from 2025-11.
Fix:
populate_address_combogives each item its address as item data:0x0, a custom-address marker, or the partition's address.burn_imageand the custom-address field use that data. No label is parsed any more.Test:
check_burn_addressruns Burn Image in Chinese and English for full firmware, custom (" 0x4000 ") and a partition, and expects0x0,0x4000,0x8000. On the old code it fails with exactly the issue's symptom: