Skip to content

Conversation

@d3zd3z
Copy link
Member

@d3zd3z d3zd3z commented Jan 6, 2017

Initial work to bring in iotboot's Zephyr port.

d3zd3z added 3 commits January 6, 2017 11:07
Allocate a static tmpbuf instead of calling malloc.  This is the only
direct call to malloc in the code.
Create a small Makefile for the Zephyr build system to use.
Add support for building mcuboot as a Zephyr application.  This is
copied from the iotboot repo with some minor reorganization to work with
the mcuboot directory layout.
@ccollins476ad ccollins476ad merged commit 5153bd6 into mcu-tools:master Jan 6, 2017
ccollins476ad added a commit that referenced this pull request Jan 6, 2017
Merge remote-tracking branch 'd3zd3z/zephyr'
@ccollins476ad
Copy link
Collaborator

Thanks, David.

gnomeadrift pushed a commit to gnomeadrift/mcuboot that referenced this pull request Oct 8, 2018
ozersa pushed a commit to analogdevicesinc/mcuboot that referenced this pull request Sep 29, 2025
MCUBoot multi image support mode requires each image
be procedded individually that requires multiple signature
check during boot. If there be 4 image it will require 4 times
signature validatation. This feature increase boot time and
depend on the project long boot time may not be expected.

To provide a solution for this case we propose to
- Generate each image as regular
- Concatanate them and re generate a main mcuboot image.

-------------------------
|         Header        |
-------------------------
|  SubImage (optional)  |
|  (Header+Data+Footer) |
-------------------------
|  SubImage (optional)  |
|  (Header+Data+Footer) |
-------------------------
|        .....          |
-------------------------
|         Footer        |
-------------------------

During boot time if top level image be validated sub image can be
just copied to the target location without to recheck them.

To provide this feature there will be two commit
1- Provide a script that combine images
2- Update mcuboot source code to process subimages

This commit is for mcu-tools#1, in this commit we are adding
a script which called as combine_images.py.

The usage of the script is:
python combine_images.py --config combine_images.yaml --imgtool imgtool --output <outfolder>

combine_images.yaml file is added as reference file it need to be
updated as per of the project need.

Signed-off-by: Sadik Ozer <[email protected]>
Signed-off-by: Michael Eskowitz [email protected]
ozersa pushed a commit to analogdevicesinc/mcuboot that referenced this pull request Oct 13, 2025
MCUBoot multi image support mode requires each image
be procedded individually that requires multiple signature
check during boot. If there be 4 image it will require 4 times
signature validatation. This feature increase boot time and
depend on the project long boot time may not be expected.

To provide a solution for this case we propose to
- Generate each image as regular
- Concatanate them and re generate a main mcuboot image.

-------------------------
|         Header        |
-------------------------
|  SubImage (optional)  |
|  (Header+Data+Footer) |
-------------------------
|  SubImage (optional)  |
|  (Header+Data+Footer) |
-------------------------
|        .....          |
-------------------------
|         Footer        |
-------------------------

During boot time if top level image be validated sub image can be
just copied to the target location without to recheck them.

To provide this feature there will be two commit
1- Provide a script that combine images
2- Update mcuboot source code to process subimages

This commit is for mcu-tools#1, in this commit we are adding
a script which called as combine_images.py.

The usage of the script is:
python combine_images.py --config combine_images.yaml --imgtool imgtool --output <outfolder>

combine_images.yaml file is added as reference file it need to be
updated as per of the project need.

Signed-off-by: Sadik Ozer <[email protected]>
Signed-off-by: Michael Eskowitz <[email protected]>
ozersa pushed a commit to analogdevicesinc/mcuboot that referenced this pull request Oct 22, 2025
MCUBoot multi image support mode requires each image
be procedded individually that requires multiple signature
check during boot. If there be 4 imageis it requires 4 times
signature validatation. This feature increase boot time.
Depend on the project requirement long boot time may not be accepted.

To provide a solution for this case we propose to
- Generate each image as regular mcuboot format
- Concatanate them and re generate a main mcuboot image. As below

-------------------------
|         Header        |
-------------------------
|        Image-1        |
|  (Header+Data+Footer) |
-------------------------
|        Image-2        |
|  (Header+Data+Footer) |
-------------------------
|        .....          |
-------------------------
|         Footer        |
-------------------------

During boot time if top level image be validated sub image can be
just copied to the target location without to recheck them.

There will be two commit to implement this feature
1- Add a script that combine images
2- Update mcuboot source code to process subimages

This commit is for mcu-tools#1, it adds a script which called as
combine_images.py. Any imgtool parameters can be passed to the script
It will directly pass them to the imgtool.

Usage:
python combine_images.py --config combine_images.yaml --imgtool imgtool --output <outfolder>

combine_images.yaml file is added as reference file it need to be
updated as per of the project need.

Signed-off-by: Sadik Ozer <[email protected]>
Signed-off-by: Michael Eskowitz <[email protected]>
ozersa pushed a commit to analogdevicesinc/mcuboot that referenced this pull request Oct 24, 2025
MCUBoot multi image support mode requires each image
be procedded individually that requires multiple signature
check during boot. If there be 4 imageis it requires 4 times
signature validatation. This feature increase boot time.
Depend on the project requirement long boot time may not be accepted.

To provide a solution for this case we propose to
- Generate each image as regular mcuboot format
- Concatanate them and re generate a main mcuboot image. As below

-------------------------
|         Header        |
-------------------------
|        Image-1        |
|  (Header+Data+Footer) |
-------------------------
|        Image-2        |
|  (Header+Data+Footer) |
-------------------------
|        .....          |
-------------------------
|         Footer        |
-------------------------

During boot time if top level image be validated sub image can be
just copied to the target location without to recheck them.

There will be two commit to implement this feature
1- Add a script that combine images
2- Update mcuboot source code to process subimages

This commit is for mcu-tools#1, it adds a script which called as
combine_images.py. Any imgtool parameters can be passed to the script
It will directly pass them to the imgtool.

Usage:
python combine_images.py --config combine_images.yaml --imgtool imgtool --output <outfolder>

combine_images.yaml file is added as reference file it need to be
updated as per of the project need.

Signed-off-by: Sadik Ozer <[email protected]>
Signed-off-by: Michael Eskowitz <[email protected]>
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