[U-Boot] [PATCH v3 00/10] make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
Andy Yan
andy.yan at rock-chips.com
Mon Jul 24 09:42:39 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 stage.
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 v3:
- use CONFIG_VAL(), which suggested by Simon
- disable SPL_DM_SERIAL
- use puts instead of printf, which suggested by Simon
Changes in v2:
- introduce a new control CONFIG_SPL_SYS_MALLOC_F_LEN, adviced by Simon
Andy Yan (10):
make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
mips: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently
powerpc: spl and normal u-boot stage set SYS_MALLOC_F_LEN indepently
microblaze: spl and normal u-boot stage set SYS_MALLOC_F_LEN
indepently
sandbox: use CONFIG_VAL(SYS_MALLOC_F_LEN) to distinguish malloc pool
size before relocation
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 puts 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 | 4 ++--
arch/arm/mach-rockchip/rk3036-board-spl.c | 6 ------
arch/microblaze/cpu/start.S | 8 ++++----
arch/mips/cpu/start.S | 6 +++---
arch/powerpc/cpu/mpc83xx/start.S | 8 ++++----
arch/powerpc/cpu/mpc85xx/start.S | 11 +++++------
arch/sandbox/cpu/start.c | 2 +-
cmd/bdinfo.c | 4 ++--
common/Makefile | 4 +++-
common/board_f.c | 4 ++--
common/board_r.c | 2 +-
common/dlmalloc.c | 12 ++++++------
common/init/board_init.c | 8 ++++----
common/spl/spl.c | 8 ++++----
configs/evb-rk3036_defconfig | 7 ++++++-
configs/kylin-rk3036_defconfig | 7 ++++++-
drivers/core/Kconfig | 8 ++++----
drivers/serial/serial-uclass.c | 4 ++--
include/asm-generic/global_data.h | 2 +-
lib/asm-offsets.c | 2 +-
lib/efi/efi_app.c | 2 +-
23 files changed, 83 insertions(+), 57 deletions(-)
create mode 100644 arch/arm/dts/rk3036-sdk-u-boot.dtsi
--
2.7.4
More information about the U-Boot
mailing list