[U-Boot] [PATCH v2 0/9] make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
Andy Yan
andy.yan at rock-chips.com
Thu Jul 13 03:11:15 UTC 2017
Some platforms like RK3036 has very small sram to run spl code, so
it has no enough sapce for so much malloc pool before relocation in
spl stage as the normal u-boot stake.
As the long discussion in [1] [2], I make this series out, try to
make spl and normal u-boot stage use independent SYS_MALLOC_F_LEN.
[1]https://lists.denx.de/pipermail/u-boot/2017-July/297370.html
[2]https://lists.denx.de/pipermail/u-boot/2017-July/297504.html
Changes in v2:
- introduce a new control CONFIG_SPL_SYS_MALLOC_F_LEN, adviced by Simon
- set spl pre relocation malloc pool by CONFIG_SPL_SYS_MALLOC_F_LEN
Andy Yan (9):
make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
mips: spl and normal u-boot stage set SYS_MALLOC_F indepently
powerpc: spl and normal u-boot stage set SYS_MALLOC_F indepently
microblaze: spl and normal u-boot stage set SYS_MALLOC_F indepently
rockchip: set malloc pool size to 0 before relocation in spl state on
rk3036 based board
rockchip: disable SPL_ARCH_MEMCPY/MEMSET for rk3036
rockchip: enable SPL_LIBGENERIC for rk3036 based boards
rockchip: use debug() instead of printf when back to bootrom
rockchip: add u-boot specific dts for rk3036 sdk
Kconfig | 10 ++++++++++
arch/arm/dts/rk3036-sdk-u-boot.dtsi | 11 +++++++++++
arch/arm/mach-rockchip/bootrom.c | 2 +-
arch/arm/mach-rockchip/rk3036-board-spl.c | 6 ------
arch/microblaze/cpu/start.S | 11 ++++++++---
arch/mips/cpu/start.S | 8 ++++++--
arch/powerpc/cpu/mpc83xx/start.S | 13 +++++++++----
arch/powerpc/cpu/mpc85xx/start.S | 16 ++++++++++------
arch/sandbox/cpu/start.c | 2 +-
cmd/bdinfo.c | 2 +-
common/Makefile | 2 +-
common/board_f.c | 4 ++--
common/board_r.c | 2 +-
common/dlmalloc.c | 12 ++++++------
common/init/board_init.c | 4 ++--
common/spl/spl.c | 6 +++---
configs/evb-rk3036_defconfig | 5 +++++
configs/kylin-rk3036_defconfig | 6 +++++-
drivers/core/Kconfig | 8 ++++----
drivers/serial/serial-uclass.c | 4 ++--
include/asm-generic/global_data.h | 2 +-
include/common.h | 11 +++++++++++
lib/asm-offsets.c | 2 +-
lib/efi/efi_app.c | 2 +-
24 files changed, 102 insertions(+), 49 deletions(-)
create mode 100644 arch/arm/dts/rk3036-sdk-u-boot.dtsi
--
2.7.4
More information about the U-Boot
mailing list