-
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
west sign fails to find header size or padding #44691
Comments
The header size is defined in the python code as:
This means it is likely you do not have a ROM start offset defined for the build, did you build with mcuboot support enabled and the correct Kconfig to link it in the application slot? |
This is not an actual version number. Please share the exact SHA you're using.
Can you please share exact steps to reproduce? This is just the west sign command, but as @lairdjm says you also need to share the build commands. |
That isn't a commit sha, go to the zephyr directory and do
As can be seen from your output, the rom start offset is 0, which means it is not leaving space for an mcuboot header |
I'm closing since there has been no response. @thamilv91 please reopen this issue if you believe there is a bug here. |
I am using west v0.12.0, Zephyr 3.0.99 would like to sign an image for mcuboot.The following command works on my desktop, but fails on linux ubuntu machine: west sign -t imgtool -- --key .pem
=== image configuration:
partition offset: 65536 (0x10000)
partition size: 262144 (0x40000)
rom start offset: 0 (0x0)
=== signing binaries
unsigned bin: /home/thamizh/ncs/zephyr/samples/subsys/mgmt/updatehub/build/zephyr/zephyr.bin
signed bin: /home/thamizh/ncs/zephyr/samples/subsys/mgmt/updatehub/build/zephyr/zephyr.signed.bin
Usage: imgtool sign [OPTIONS] INFILE OUTFILE
Error: Invalid value for "-H" / "--header-size": Minimum value for -H/--header-size is 32
FATAL ERROR: command exited with status 2: /home/thamizh/.local/bin/imgtool sign --version 0.0.0+0 --align 4 --header-size 0 --slot-size 262144 --key home/thamizh/ncs/bootloader/mcuboot/root-rsa-2048.pem /home/thamizh/ncs/zephyr/samples/subsys/mgmt/updatehub/build/zephyr/zephyr.bin /home/thamizh/ncs/zephyr/samples/subsys/mgmt/updatehub/build/zephyr/zephyr.signed.bin
The text was updated successfully, but these errors were encountered: