Skip to content

Commit 8926100

Browse files
ahasztagnordicjm
authored andcommitted
samples: suit: smp_transfer: Images flashed separately to ext flash
This commit adds configurations to the smp_transfer sample, which allow separating the firmware images from the root envelope and sending them separately to the external flash. The manifests templates was modified so that such update works. Signed-off-by: Artur Hadasz <[email protected]>
1 parent 07fea6b commit 8926100

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

samples/suit/smp_transfer/sample.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,22 @@ tests:
5252
- OVERLAY_CONFIG="sysbuild/smp_transfer_bt.conf"
5353
- SB_OVERLAY_CONFIG="sysbuild_bt.conf"
5454
tags: suit bluetooth ci_samples_suit
55+
56+
sample.suit.smp_transfer.full.extflash.extracted_cache:
57+
extra_args:
58+
- FILE_SUFFIX=extflash
59+
- SUIT_DFU_CACHE_PARTITION_1_EB_SIZE=4096
60+
extra_configs:
61+
- CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE=y
62+
tags: suit ci_samples_suit
63+
64+
sample.suit.smp_transfer.full.extflash.bt.extracted_cache:
65+
extra_args:
66+
- FILE_SUFFIX=extflash
67+
- OVERLAY_CONFIG="sysbuild/smp_transfer_bt.conf"
68+
- SB_OVERLAY_CONFIG="sysbuild_bt.conf"
69+
- SUIT_DFU_CACHE_PARTITION_1_EB_SIZE=4096
70+
- hci_ipc_CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE=y
71+
extra_configs:
72+
- CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE=y
73+
tags: suit bluetooth ci_samples_suit

samples/suit/smp_transfer/suit/nrf54h20/app_envelope_extflash.yaml.jinja2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ SUIT_Envelope_Tagged:
8686
suit-current-version: {{ DEFAULT_VERSION }}
8787
{%- endif %}
8888

89+
{%- if 'CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE' not in application['config'] or application['config']['CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE'] == '' %}
8990
suit-payload-fetch:
9091
- suit-directive-set-component-index: 2
9192
- suit-directive-override-parameters:
9293
suit-parameter-uri: 'file://{{ application['filename'] }}'
9394
- suit-directive-fetch:
9495
- suit-send-record-failure
96+
{%- endif %}
9597
suit-install:
9698
{%- if flash_companion is defined %}
9799
- suit-directive-set-component-index: 1
@@ -123,7 +125,11 @@ SUIT_Envelope_Tagged:
123125
{%- endif %}
124126
- suit-directive-set-component-index: 1
125127
- suit-directive-override-parameters:
128+
{%- if 'CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE_URI' in application['config'] and application['config']['CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE_URI'] != '' %}
129+
suit-parameter-uri: '{{ application['config']['CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE_URI'] }}'
130+
{%- else %}
126131
suit-parameter-uri: 'file://{{ application['filename'] }}'
132+
{%- endif %}
127133
suit-parameter-image-digest:
128134
suit-digest-algorithm-id: cose-alg-sha-256
129135
suit-digest-bytes:

samples/suit/smp_transfer/suit/nrf54h20/rad_envelope_extflash.yaml.jinja2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,22 @@ SUIT_Envelope_Tagged:
7777
suit-current-version: {{ DEFAULT_VERSION }}
7878
{%- endif %}
7979

80+
{%- if 'CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE' not in radio['config'] or radio['config']['CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE'] == '' %}
8081
suit-payload-fetch:
8182
- suit-directive-set-component-index: 2
8283
- suit-directive-override-parameters:
8384
suit-parameter-uri: 'file://{{ radio['filename'] }}'
8485
- suit-directive-fetch:
8586
- suit-send-record-failure
87+
{%- endif %}
8688
suit-install:
8789
- suit-directive-set-component-index: 1
8890
- suit-directive-override-parameters:
91+
{%- if 'CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE_URI' in radio['config'] and radio['config']['CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE_URI'] != '' %}
92+
suit-parameter-uri: '{{ radio['config']['CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE_URI'] }}'
93+
{%- else %}
8994
suit-parameter-uri: 'file://{{ radio['filename'] }}'
95+
{%- endif %}
9096
- suit-directive-fetch:
9197
- suit-send-record-failure
9298
- suit-condition-image-match:

0 commit comments

Comments
 (0)