[U-Boot] [PATCH v3 0/5] rockchip: adapt SPL in first 0x40000 of DRAM to load ATF

Kever Yang kever.yang at rock-chips.com
Wed Oct 23 07:36:17 UTC 2019


We use to reserve IRAM to avoid the SPL text overlap with ATF M0 code,
and when we introduce the TPL, the SPL space is in DRAM, we reserve
space to avoid SPL text overlap with ATF bl31.

Now we decide to move ATF entry point to 0x40000 instead of 0x1000,
so that the SPL can have 0x40000 as code size and no need to reserve
space or relocate before loading ATF.

At the same time, the SPL_STACK_R should be later than 0x100000, and
consider we may load kernel in falcon mode, we shoul use and address
later, and consider some board may have small DRAM size, we use
0x4000000(64MB)as SPL_STACK_R_ADDR will be fine for all the case.

The mainline ATF has update since:
0aad563c rockchip: Update BL31_BASE to 0x40000


Changes in v3:
- update rk3328 boards and evb-px5 at the same time

Changes in v2:
- add update for leez board
- add other related patch

Kever Yang (5):
  rockchip: rk3399: defconfig: no need to reserve IRAM for SPL
  rockchip: rk3328: defconfig: no need to reserve IRAM for SPL
  rockchip: evb-px5: defconfig: no need to reserve IRAM for SPL
  rockchip: rk3399: update SPL_STACK_R_ADDR
  rockchip: config: update CONFIG_SPL_MAX_SIZE for 64bit CPUs

 arch/arm/mach-rockchip/rk3399/Kconfig        | 3 +++
 configs/chromebook_bob_defconfig             | 1 -
 configs/evb-px5_defconfig                    | 1 -
 configs/evb-rk3328_defconfig                 | 1 -
 configs/evb-rk3399_defconfig                 | 2 --
 configs/ficus-rk3399_defconfig               | 1 -
 configs/firefly-rk3399_defconfig             | 2 --
 configs/khadas-edge-captain-rk3399_defconfig | 2 --
 configs/khadas-edge-rk3399_defconfig         | 2 --
 configs/khadas-edge-v-rk3399_defconfig       | 2 --
 configs/leez-rk3399_defconfig                | 2 --
 configs/nanopc-t4-rk3399_defconfig           | 2 --
 configs/nanopi-m4-rk3399_defconfig           | 2 --
 configs/nanopi-neo4-rk3399_defconfig         | 2 --
 configs/orangepi-rk3399_defconfig            | 2 --
 configs/puma-rk3399_defconfig                | 1 -
 configs/roc-rk3399-pc_defconfig              | 2 --
 configs/rock-pi-4-rk3399_defconfig           | 2 --
 configs/rock64-rk3328_defconfig              | 1 -
 configs/rock960-rk3399_defconfig             | 1 -
 configs/rockpro64-rk3399_defconfig           | 2 --
 include/configs/rk3328_common.h              | 2 +-
 include/configs/rk3368_common.h              | 2 +-
 include/configs/rk3399_common.h              | 2 +-
 24 files changed, 6 insertions(+), 36 deletions(-)

-- 
2.17.1



More information about the U-Boot mailing list