-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flash signed binaries: key path and version #27957
Comments
Found another issue: |
Hi there, thanks for your feedback! I'm a bit unclear from your description, but would you like this to be addressed before #27818 is merged? I'm particularly concerned by these two comments:
This makes it sound like the new feature is not useful enough yet. |
Hi @mbolivar-nordic , I think many use cases passes "user" version to MCUboot. If the improvements that you are doing could address that will help in many cases. For instance, any user that rely uses FW update may need set all time the version number manually. Yesterday you answered my question and I'm Ok with that, to change file name, for instance. But I think people realized that --version for MCUboot is rely a important thing. In my case, because of that I asked about how add version to file names. This way people can "see" and know what check. For instance, my use case uses below mandatory args when using MCUboot
My intention try to clarify things for you. |
Hi @nandojve -- sure, I get that the version is important. But I am sorry for not understanding whether there is some change needed in pull request #27818 to make it useful, or if the existing code is good enough. Perhaps if the code is good enough, we need some changes to the documentation to make it clearer how to manage the version number? Thanks again for helping me to understand. |
We could potentially support this without changing the existing PR by adding a choice option as later work controlling how relative paths work. But it might be easier just to put the application inside the workspace, no? That is generally best for making 'west build' work without environment variables, anyway. So I will consider this an enhancement that is out of scope of the existing PR.
This is tricky. There are lots of places where we might want to put software versions and lots of opinions about where they come from. I will also consider this out of scope of the initial PR unless people come to consensus on what to do. As you say, we can add a new Kconfig option that covers this at that point. |
Not sure what you mean by this. |
About version. Currently I'm using Python script to take FW version from Git tag, probably it should be useful for others:
|
build/zephyr/runners.yaml contains filenames for flashing.
Probably we need another PR with updating this file? |
Just a question - in the debug process I'm using zephyr.elf file. |
No, imgtool only supports bin and hex. You can just use 'west flash' followed by 'west attach' to debug the flashed binary without reflashing. |
That shouldn't be the case if you follow the workflow in the updated west sign documentation from #27818. If that's what's happening, it's a bug and we'll fix it. If you are manually calling 'west sign', then that doesn't (and is not meant to) change runners.yaml. |
Related to PR #27818
@mbolivar-nordic Thanks for great functionality, only minor improvement looks necessary to use in projects:
CONFIG_MCUBOOT_SIGNATURE_KEY_FILE uses relative path to zephyrproject folder. Better to use relative path to user's project to store keys in separate place. Or describe additional shell variable with path to keys folder.
imgtool.exe sign --version
should take version number from Git tag (probably using new setting CONFIG_MCUBOOT_GIT_TAG_VERSION).Thank you.
The text was updated successfully, but these errors were encountered: