All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/3] Enable spl relocation on arm
@ 2019-05-16 12:19 Andy Yan
  2019-05-16 12:21 ` [U-Boot] [PATCH v2 1/3] powerpc: Convert CONFIG_SPL_RELOC_TEXT_BASE to Kconfig Andy Yan
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Andy Yan @ 2019-05-16 12:19 UTC (permalink / raw)
  To: u-boot

Some times we want to relocate spl code to dram after dram
initialization or relocate spl code to a high memory to avoid
code overid.

For example on Rockchip armv8 platform, we run with boot flow
TPL->SPL->ATF->U-Boot.
TPL run in sram and is responsible for dram initialization.
SPL run from the start address of dram and is responsible for
loading ATF and U-Boot.

The case here is that the ATF load address is from 64KB of dram,
which overlaps with spl code itself.

So we want to relocate spl itself to high memory to aovid this.

When look the code, I found powerpc use the spl relocation. So
I dicide share the config with powerpc.

Changes in v2:
- Move Kconfig modification to PATCH 1/3
- Add more detial commit message

Andy Yan (3):
  powerpc: Convert CONFIG_SPL_RELOC_TEXT_BASE to Kconfig
  spl: add relocation support
  arm: add spl relocation support for arm

 arch/arm/config.mk                           |  6 +++
 arch/arm/cpu/armv8/start.S                   |  4 ++
 arch/arm/cpu/armv8/u-boot-spl.lds            | 17 ++++++
 arch/arm/lib/Makefile                        |  2 +-
 arch/arm/lib/crt0_64.S                       |  3 +-
 common/spl/Kconfig                           | 13 +++++
 common/spl/spl.c                             | 55 ++++++++++++++++++++
 configs/BSC9131RDB_NAND_SYSCLK100_defconfig  |  2 +
 configs/BSC9131RDB_NAND_defconfig            |  2 +
 configs/BSC9132QDS_NAND_DDRCLK100_defconfig  |  2 +
 configs/BSC9132QDS_NAND_DDRCLK133_defconfig  |  2 +
 configs/C29XPCIE_NAND_defconfig              |  2 +
 configs/P1010RDB-PA_36BIT_NAND_defconfig     |  2 +
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig   |  2 +
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig |  2 +
 configs/P1010RDB-PA_NAND_defconfig           |  2 +
 configs/P1010RDB-PA_SDCARD_defconfig         |  2 +
 configs/P1010RDB-PA_SPIFLASH_defconfig       |  2 +
 configs/P1010RDB-PB_36BIT_NAND_defconfig     |  2 +
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig   |  2 +
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig |  2 +
 configs/P1010RDB-PB_NAND_defconfig           |  2 +
 configs/P1010RDB-PB_SDCARD_defconfig         |  2 +
 configs/P1010RDB-PB_SPIFLASH_defconfig       |  2 +
 configs/P1020MBG-PC_36BIT_SDCARD_defconfig   |  2 +
 configs/P1020MBG-PC_SDCARD_defconfig         |  2 +
 configs/P1020RDB-PC_36BIT_NAND_defconfig     |  2 +
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig   |  2 +
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig |  2 +
 configs/P1020RDB-PC_NAND_defconfig           |  2 +
 configs/P1020RDB-PC_SDCARD_defconfig         |  2 +
 configs/P1020RDB-PC_SPIFLASH_defconfig       |  2 +
 configs/P1020RDB-PD_NAND_defconfig           |  2 +
 configs/P1020RDB-PD_SDCARD_defconfig         |  2 +
 configs/P1020RDB-PD_SPIFLASH_defconfig       |  2 +
 configs/P1020UTM-PC_36BIT_SDCARD_defconfig   |  2 +
 configs/P1020UTM-PC_SDCARD_defconfig         |  2 +
 configs/P1021RDB-PC_36BIT_NAND_defconfig     |  2 +
 configs/P1021RDB-PC_36BIT_SDCARD_defconfig   |  2 +
 configs/P1021RDB-PC_36BIT_SPIFLASH_defconfig |  2 +
 configs/P1021RDB-PC_NAND_defconfig           |  2 +
 configs/P1021RDB-PC_SDCARD_defconfig         |  2 +
 configs/P1021RDB-PC_SPIFLASH_defconfig       |  2 +
 configs/P1022DS_36BIT_NAND_defconfig         |  2 +
 configs/P1022DS_36BIT_SDCARD_defconfig       |  2 +
 configs/P1022DS_36BIT_SPIFLASH_defconfig     |  2 +
 configs/P1022DS_NAND_defconfig               |  2 +
 configs/P1022DS_SDCARD_defconfig             |  2 +
 configs/P1022DS_SPIFLASH_defconfig           |  2 +
 configs/P1024RDB_NAND_defconfig              |  2 +
 configs/P1024RDB_SDCARD_defconfig            |  2 +
 configs/P1024RDB_SPIFLASH_defconfig          |  2 +
 configs/P1025RDB_NAND_defconfig              |  2 +
 configs/P1025RDB_SDCARD_defconfig            |  2 +
 configs/P1025RDB_SPIFLASH_defconfig          |  2 +
 configs/P2020RDB-PC_36BIT_NAND_defconfig     |  2 +
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig   |  2 +
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig |  2 +
 configs/P2020RDB-PC_NAND_defconfig           |  2 +
 configs/P2020RDB-PC_SDCARD_defconfig         |  2 +
 configs/P2020RDB-PC_SPIFLASH_defconfig       |  2 +
 include/configs/BSC9131RDB.h                 |  1 -
 include/configs/BSC9132QDS.h                 |  1 -
 include/configs/C29XPCIE.h                   |  3 --
 include/configs/P1010RDB.h                   |  4 --
 include/configs/P1022DS.h                    |  3 --
 include/configs/p1_p2_rdb_pc.h               |  3 --
 67 files changed, 206 insertions(+), 17 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2019-08-13  9:35 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16 12:19 [U-Boot] [PATCH v2 0/3] Enable spl relocation on arm Andy Yan
2019-05-16 12:21 ` [U-Boot] [PATCH v2 1/3] powerpc: Convert CONFIG_SPL_RELOC_TEXT_BASE to Kconfig Andy Yan
2019-05-16 12:21 ` [U-Boot] [PATCH v2 2/3] spl: add relocation support Andy Yan
2019-05-17  8:34   ` Lukasz Majewski
2019-05-17  9:03     ` Andy Yan
2019-05-18 16:26   ` Simon Glass
2019-05-20  6:34     ` [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由sjg@google.com代发】 Andy Yan
2019-05-20 15:35       ` Simon Glass
2019-05-21  6:50         ` Andy Yan
2019-05-22  0:28           ` Simon Glass
2019-05-22  1:56             ` Andy Yan
2019-05-22 19:39               ` Simon Glass
2019-05-28  8:33                 ` Andy Yan
2019-06-22 19:10                   ` Simon Glass
2019-06-24 10:36                     ` Andy Yan
2019-06-30 13:03                       ` [U-Boot] [PATCH v2 2/3] spl: add relocation support Kever Yang
2019-07-06 17:16                       ` [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由sjg@google.com代发】 Simon Glass
2019-07-07  0:36                         ` Andy Yan
2019-08-13  9:35                           ` Simon Glass
2019-05-20 15:58       ` Andre Przywara
2019-05-22  1:42         ` Andy Yan
2019-05-22 19:39           ` Simon Glass
2019-05-28  8:47             ` Andy Yan
2019-06-22 19:10               ` Simon Glass
2019-05-16 12:22 ` [U-Boot] [PATCH v2 3/3] arm: add spl relocation support for arm Andy Yan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.