boards: imxrt1060-evk: Fix knsh and related linker script files
Summary: - Fix knsh/defconfig to work with pyOCD - Fix kernel-space.ld to boot - Fix memory.ld for CONFIG_BUILD_PROTECTED=y Impact: - CONFIB_BUILD_PROTECTED=y only Testing: - Tested with imxrt1060-evk Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
777c6c4aad
commit
e95b032c74
@ -15,7 +15,9 @@ CONFIG_ARCH_CHIP_MIMXRT1062DVL6A=y
|
||||
CONFIG_ARCH_STACKDUMP=y
|
||||
CONFIG_ARMV7M_DCACHE=y
|
||||
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y
|
||||
CONFIG_ARMV7M_DTCM=y
|
||||
CONFIG_ARMV7M_ICACHE=y
|
||||
CONFIG_ARMV7M_ITCM=y
|
||||
CONFIG_ARMV7M_USEBASEPRI=y
|
||||
CONFIG_ARM_MPU=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=104926
|
||||
|
@ -24,10 +24,31 @@
|
||||
|
||||
OUTPUT_ARCH(arm)
|
||||
EXTERN(_vectors)
|
||||
EXTERN(g_flash_config)
|
||||
EXTERN(g_image_vector_table)
|
||||
EXTERN(g_boot_data)
|
||||
|
||||
ENTRY(_stext)
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/* Image Vector Table and Boot Data for booting from external flash */
|
||||
|
||||
.boot_hdr : ALIGN(4)
|
||||
{
|
||||
FILL(0xff)
|
||||
__boot_hdr_start__ = ABSOLUTE(.) ;
|
||||
KEEP(*(.boot_hdr.conf))
|
||||
. = 0x1000 ;
|
||||
KEEP(*(.boot_hdr.ivt))
|
||||
. = 0x1020 ;
|
||||
KEEP(*(.boot_hdr.boot_data))
|
||||
. = 0x1030 ;
|
||||
KEEP(*(.boot_hdr.dcd_data))
|
||||
__boot_hdr_end__ = ABSOLUTE(.) ;
|
||||
. = 0x2000 ;
|
||||
} > kflash
|
||||
|
||||
.text :
|
||||
{
|
||||
_stext = ABSOLUTE(.);
|
||||
|
@ -61,7 +61,8 @@ MEMORY
|
||||
|
||||
/* 1MiB of OCRAM */
|
||||
|
||||
dtcm (rwx) : ORIGIN = 0x20000000, LENGTH = 512K
|
||||
kocram (rwx) : ORIGIN = 0x20200000, LENGTH = 512K
|
||||
uocram (rwx) : ORIGIN = 0x20240000, LENGTH = 512K
|
||||
itcm (rwx) : ORIGIN = 0x00000000, LENGTH = 128K
|
||||
dtcm (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||
kocram (rwx) : ORIGIN = 0x20200000, LENGTH = 256K
|
||||
uocram (rwx) : ORIGIN = 0x20240000, LENGTH = 256K
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user