Skip to content

Commit

Permalink
tests: nrf_compress: Make space for largre MCUboot
Browse files Browse the repository at this point in the history
Increases size of MCUboot by taking away one page of primary
image. Changes signing CMake to properly change address of a
binary.

Signed-off-by: Dominik Ermel <[email protected]>
  • Loading branch information
de-nordic committed Jan 28, 2025
1 parent 8287a1e commit 9cabc4d
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ set(BYPRODUCT_KERNEL_SIGNED_HEX_NAME "${output}"
CACHE FILEPATH "Signed kernel hex file" FORCE
)
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands COMMAND
${CMAKE_OBJCOPY} -I ihex -O ihex --change-addresses 0x92000
${CMAKE_OBJCOPY} -I ihex -O ihex --change-addresses 0x91000
${ZEPHYR_BINARY_DIR}/${KERNEL_NAME}.signed.hex ${output})
set_property(GLOBAL APPEND PROPERTY extra_post_build_byproducts ${output})
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
app:
address: 0x10200
address: 0x11200
end_address: 0xa2000
region: flash_primary
size: 0x91e00
size: 0x90e00
EMPTY_1:
address: 0x0
end_address: 0x10200
end_address: 0x11200
device: MX25R64
region: external_flash
size: 0x10200
size: 0x11200
compressed_app:
address: 0x10200
address: 0x11200
end_address: 0xa2000
device: MX25R64
region: external_flash
size: 0x91e00
size: 0x90e00
EMPTY_2:
address: 0xa2000
end_address: 0x800000
Expand All @@ -23,30 +23,30 @@ EMPTY_2:
size: 0x75e000
mcuboot:
address: 0x0
end_address: 0x10000
end_address: 0x11000
region: flash_primary
size: 0x10000
size: 0x11000
mcuboot_pad:
address: 0x10000
end_address: 0x10200
address: 0x11000
end_address: 0x11200
region: flash_primary
size: 0x200
mcuboot_primary:
address: 0x10000
address: 0x11000
end_address: 0xa2000
orig_span: &id001
- mcuboot_pad
- app
region: flash_primary
size: 0x92000
size: 0x91000
span: *id001
mcuboot_primary_app:
address: 0x10200
address: 0x11200
end_address: 0xa2000
orig_span: &id002
- app
region: flash_primary
size: 0x91e00
size: 0x90e00
span: *id002
mcuboot_secondary:
address: 0xa2000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
app:
address: 0x10200
address: 0x11200
end_address: 0xa2000
region: flash_primary
size: 0x91e00
size: 0x90e00
EMPTY_1:
address: 0x0
end_address: 0x10200
end_address: 0x11200
device: MX25R64
region: external_flash
size: 0x10200
size: 0x11200
compressed_app:
address: 0x10200
address: 0x11200
end_address: 0xa2000
device: MX25R64
region: external_flash
size: 0x91e00
size: 0x90e00
EMPTY_2:
address: 0xa2000
end_address: 0x800000
Expand All @@ -23,30 +23,30 @@ EMPTY_2:
size: 0x75e000
mcuboot:
address: 0x0
end_address: 0x10000
end_address: 0x11000
region: flash_primary
size: 0x10000
size: 0x11000
mcuboot_pad:
address: 0x10000
end_address: 0x10200
address: 0x11000
end_address: 0x11200
region: flash_primary
size: 0x200
mcuboot_primary:
address: 0x10000
address: 0x11000
end_address: 0xa2000
orig_span: &id001
- mcuboot_pad
- app
region: flash_primary
size: 0x92000
size: 0x91000
span: *id001
mcuboot_primary_app:
address: 0x10200
address: 0x11200
end_address: 0xa2000
orig_span: &id002
- app
region: flash_primary
size: 0x91e00
size: 0x90e00
span: *id002
mcuboot_secondary:
address: 0xa2000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
app:
address: 0x10800
address: 0x11800
end_address: 0xa2000
region: flash_primary
size: 0x91800
size: 0x90800
EMPTY_1:
address: 0x0
end_address: 0x10800
end_address: 0x11800
device: MX25R64
region: external_flash
size: 0x10800
size: 0x11800
compressed_app:
address: 0x10800
address: 0x11800
end_address: 0xa2000
device: MX25R64
region: external_flash
size: 0x91800
size: 0x90800
EMPTY_2:
address: 0xa2000
end_address: 0x800000
Expand All @@ -28,30 +28,30 @@ EMPTY_3:
size: 0x65000
mcuboot:
address: 0x0
end_address: 0x10000
end_address: 0x11000
region: flash_primary
size: 0x10000
size: 0x11000
mcuboot_pad:
address: 0x10000
end_address: 0x10800
address: 0x11000
end_address: 0x11800
region: flash_primary
size: 0x800
mcuboot_primary:
address: 0x10000
address: 0x11000
end_address: 0xa2000
orig_span: &id001
- mcuboot_pad
- app
region: flash_primary
size: 0x92000
size: 0x91000
span: *id001
mcuboot_primary_app:
address: 0x10800
address: 0x11800
end_address: 0xa2000
orig_span: &id002
- app
region: flash_primary
size: 0x91800
size: 0x90800
span: *id002
mcuboot_secondary:
address: 0xa2000
Expand Down

0 comments on commit 9cabc4d

Please sign in to comment.