mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-04-01 09:00:18 +02:00
44 lines
922 B
Plaintext
44 lines
922 B
Plaintext
/*
|
|
* SPDX-License-Identifier: MIT OR Apache-2.0
|
|
*
|
|
* Copyright (c) 2021-2024 The rp-rs Developers
|
|
* Copyright (c) 2021 rp-rs organization
|
|
* Copyright (c) 2025 Raspberry Pi Ltd.
|
|
*/
|
|
|
|
MEMORY {
|
|
BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100
|
|
FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100
|
|
RAM : ORIGIN = 0x20000000, LENGTH = 256K
|
|
SRAM4 : ORIGIN = 0x20040000, LENGTH = 4k
|
|
SRAM5 : ORIGIN = 0x20041000, LENGTH = 4k
|
|
}
|
|
|
|
EXTERN(BOOT2_FIRMWARE)
|
|
|
|
SECTIONS {
|
|
.boot2 ORIGIN(BOOT2) :
|
|
{
|
|
KEEP(*(.boot2));
|
|
} > BOOT2
|
|
} INSERT BEFORE .text;
|
|
|
|
SECTIONS {
|
|
.boot_info : ALIGN(4)
|
|
{
|
|
KEEP(*(.boot_info));
|
|
} > FLASH
|
|
|
|
} INSERT AFTER .vector_table;
|
|
|
|
_stext = ADDR(.boot_info) + SIZEOF(.boot_info);
|
|
|
|
SECTIONS {
|
|
.bi_entries : ALIGN(4)
|
|
{
|
|
__bi_entries_start = .;
|
|
KEEP(*(.bi_entries));
|
|
. = ALIGN(4);
|
|
__bi_entries_end = .;
|
|
} > FLASH
|
|
} INSERT AFTER .text; |