Skip to content

Skip signature with warning#42

Merged
jciberlin merged 2 commits into
masterfrom
pr-skip_signature_with_warning
May 9, 2022
Merged

Skip signature with warning#42
jciberlin merged 2 commits into
masterfrom
pr-skip_signature_with_warning

Conversation

@Igor-Misic

@Igor-Misic Igor-Misic commented May 8, 2022

Copy link
Copy Markdown
Member

This is the solution for #31
It goes in pair with this commit:
IMProject/IMBootloader@1716953

In the previous iteration, we forced singed firmware because there was the possibility of flashing something that is not firmware and then breaking the option to flash anything without connecting JTAG.

Recently we introduced the feature "enter in bootloader with the button" so here we will relax our requirements for flashing unsigned firmware with a warning only.
image
In case a warning is too much it can be disabled in the config.json with "enable_signature_warning": "false"

Additionally, the config version is added. We will need it in the future to be able to detect if we need to update the config, so the transition to the new/old config can be easier. Logic is still missing.

Regarding IMLedBlink unsigned firmware this
https://github.com/IMProject/IMLedBlink/blob/master/Linker/STM32H7xx.ld#L84-L87
need to be changed to this
https://github.com/IMProject/IMLedBlink/blob/master/Linker/STM32H7xx_SIGNATURE.ld#L90-L95
otherwise flashing will not work properly since the bootloader will get in error.
The current linker script is kept like this because easier for JTAG debugging.
The server has properly built versions, but we will need to see how to build release/debug versions in the future.

@Igor-Misic Igor-Misic requested a review from jciberlin May 8, 2022 18:03
@Igor-Misic Igor-Misic changed the title Pr skip signature with warning Skip signature with warning May 8, 2022
@Igor-Misic Igor-Misic force-pushed the pr-skip_signature_with_warning branch from 06c6b22 to da63d0d Compare May 8, 2022 20:40

@jciberlin jciberlin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@jciberlin jciberlin merged commit ca533b7 into master May 9, 2022
@jciberlin jciberlin deleted the pr-skip_signature_with_warning branch May 9, 2022 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants