Skip to content

dist/tools/riotboot_gen_hdr/genhdr: add update command#20239

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
benpicco:dist/tools/riotboot_gen_hdr-update
Jan 9, 2024
Merged

dist/tools/riotboot_gen_hdr/genhdr: add update command#20239
benpicco merged 1 commit intoRIOT-OS:masterfrom
benpicco:dist/tools/riotboot_gen_hdr-update

Conversation

@benpicco
Copy link
Contributor

@benpicco benpicco commented Jan 9, 2024

Contribution description

Sometimes we want to roll-back to a previous firmware version. To do so we need a higher riotbot version numbers still.

Add an update command to the riotboot_gen_hdr tool so that an existing firmware image can be re-rolled out with a new version number.

Testing procedure

$ dist/tools/riotboot_gen_hdr/bin/genhdr show /tmp/slot0.1704742721.bin
version: 1704742721
address: 0x1100
checksum: valid

$ dist/tools/riotboot_gen_hdr/bin/genhdr update /tmp/slot0.1704742721.bin 12345

$ dist/tools/riotboot_gen_hdr/bin/genhdr show /tmp/slot0.1704742721.bin 
version: 12345
address: 0x1100
checksum: valid

Issues/PRs references

@benpicco benpicco added the Area: tools Area: Supplementary tools label Jan 9, 2024
@benpicco benpicco force-pushed the dist/tools/riotboot_gen_hdr-update branch from 4e0af10 to 1aa7239 Compare January 9, 2024 13:11
@benpicco benpicco added the Type: new feature The issue requests / The PR implemements a new feature for RIOT label Jan 9, 2024
@benpicco benpicco requested review from kYc0o and kaspar030 January 9, 2024 13:11
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jan 9, 2024
Copy link
Contributor

@kaspar030 kaspar030 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 9, 2024
@riot-ci
Copy link

riot-ci commented Jan 9, 2024

Murdock results

✔️ PASSED

9d350f0 dist/tools/riotboot_gen_hdr/genhdr: add update command

Success Failures Total Runtime
1 0 1 01m:05s

Artifacts

Sometimes we want to roll-back to a previous firmware version.
To do so we need a higher riotbot version numbers still.

Add an update command to the riotboot_gen_hdr tool so that an existing
firmware image can be re-rolled out with a new version number.
@benpicco benpicco force-pushed the dist/tools/riotboot_gen_hdr-update branch from 1aa7239 to 9d350f0 Compare January 9, 2024 15:15
@benpicco benpicco enabled auto-merge January 9, 2024 15:17
@benpicco benpicco added this pull request to the merge queue Jan 9, 2024
Merged via the queue into RIOT-OS:master with commit 4c74405 Jan 9, 2024
@benpicco benpicco deleted the dist/tools/riotboot_gen_hdr-update branch January 9, 2024 15:30
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.01 milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants