-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #950 from pennam/pico-rand-fix
RP2040: fix OTA and binary size computation
- Loading branch information
Showing
5 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
patches/0235-RP2040-add-second_stage_ota-section-to-linker-script.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 9819fef4bdb417e3ff9aee08266264b6ec23e075 Mon Sep 17 00:00:00 2001 | ||
From: pennam <[email protected]> | ||
Date: Wed, 11 Sep 2024 12:24:01 +0200 | ||
Subject: [PATCH 235/236] RP2040: add second_stage_ota section to linker script | ||
|
||
- This was previously done inside mbed-os-to-arduino script | ||
--- | ||
.../TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld | ||
index ec8bac7e40..8295f3269d 100644 | ||
--- a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld | ||
+++ b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld | ||
@@ -54,6 +54,10 @@ SECTIONS | ||
__flash_binary_start = .; | ||
} > FLASH | ||
|
||
+ .second_stage_ota : { | ||
+ KEEP (*(.second_stage_ota)) | ||
+ } > FLASH | ||
+ | ||
.boot2 : { | ||
__boot2_start__ = .; | ||
KEEP (*(.boot2)) | ||
-- | ||
2.45.2 | ||
|
27 changes: 27 additions & 0 deletions
27
patches/0236-RP2040-add-simbols-to-linker-script-to-compute-.unin.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 35b0d95199cb5b9cda593ce4b4029c4306906ccd Mon Sep 17 00:00:00 2001 | ||
From: pennam <[email protected]> | ||
Date: Wed, 11 Sep 2024 12:27:03 +0200 | ||
Subject: [PATCH 236/236] RP2040: add simbols to linker script to compute | ||
.uninitialized_data section size | ||
|
||
--- | ||
.../TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld | ||
index 8295f3269d..b748bab5fa 100644 | ||
--- a/targets/TARGET_RASPBERRYPI/TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld | ||
+++ b/targets/TARGET_RASPBERRYPI/TARGET_RP2040/TOOLCHAIN_GCC_ARM/memmap_default.ld | ||
@@ -183,7 +183,9 @@ SECTIONS | ||
|
||
.uninitialized_data (COPY): { | ||
. = ALIGN(4); | ||
+ __uninitialized_data_start__ = .; | ||
*(.uninitialized_data*) | ||
+ __uninitialized_data_end__ = .; | ||
} > RAM | ||
|
||
/* Start and end symbols must be word-aligned */ | ||
-- | ||
2.45.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters