Skip to content

Commit d5df124

Browse files
committed
platform/prime_hub: remove .boot section
The bootloader doesn't actually look at this information, so it can be removed. Originally, this special section was inferred from the layout of the official firmware image.
1 parent 6eeb48f commit d5df124

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

bricks/primehub/prime_hub.ld

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ SECTIONS
3434
_fw_isr_vector_src = .; /* The isr vector table must be copied to SRAM since the
3535
firmware doesn't start at the beginning of the flash memory */
3636
KEEP(*(.isr_vector)) /* isr vector table */
37-
. = 0x200;
38-
*(.boot) /* .boot section for info read by bootloader */
39-
KEEP(*(.boot))
4037
*(.text) /* .text sections (code) */
4138
*(.text*) /* .text* sections (code) */
4239
*(.rodata) /* .rodata sections (constants, strings, etc.) */
@@ -89,7 +86,6 @@ SECTIONS
8986
.checksum :
9087
{
9188
. = ALIGN(4);
92-
_checksum = .;
9389
LONG(CHECKSUM)
9490
} >FLASH
9591

lib/pbio/platform/prime_hub/platform.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ typedef struct {
2626
const void *reserved;
2727
} boot_t;
2828

29-
// defined in linker script
30-
extern const uint32_t _checksum;
31-
32-
// special boot info table read by bootloader
33-
const boot_t __attribute__((section(".boot"))) boot = {
34-
.fw_ver = "v0.5.00.0020-2b83556",
35-
.checksum = &_checksum,
36-
.magic = (const uint8_t[16]) {1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4},
37-
};
38-
3929
enum {
4030
COUNTER_PORT_A,
4131
COUNTER_PORT_B,

0 commit comments

Comments
 (0)