Message ID | 1500889846-26643-1-git-send-email-andy.yan@rock-chips.com |
---|---|
State | Accepted |
Delegated to: | Philipp Tomsich |
Headers | show |
> RK3036 only has 4kb sram, the spl code will use > 3.4 ~ 3.5 kb, the last 0.5kb are used for SP and > GD, so there is no space for malloc. Also, the spl > will directly return to bootrom after dram initialized, > they never need the space for malloc. > > Signed-off-by: Andy Yan <andy.yan@rock-chips.com> > Reviewed-by: Simon Glass <sjg@chromium.org> > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3036_defconfig | 1 + > configs/kylin-rk3036_defconfig | 1 + > 2 files changed, 2 insertions(+) > Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> RK3036 only has 4kb sram, the spl code will use > 3.4 ~ 3.5 kb, the last 0.5kb are used for SP and > GD, so there is no space for malloc. Also, the spl > will directly return to bootrom after dram initialized, > they never need the space for malloc. > > Signed-off-by: Andy Yan <andy.yan@rock-chips.com> > Reviewed-by: Simon Glass <sjg@chromium.org> > Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3036_defconfig | 1 + > configs/kylin-rk3036_defconfig | 1 + > 2 files changed, 2 insertions(+) > Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> RK3036 only has 4kb sram, the spl code will use > 3.4 ~ 3.5 kb, the last 0.5kb are used for SP and > GD, so there is no space for malloc. Also, the spl > will directly return to bootrom after dram initialized, > they never need the space for malloc. > > Signed-off-by: Andy Yan <andy.yan@rock-chips.com> > Reviewed-by: Simon Glass <sjg@chromium.org> > Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> > Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> > --- > > Changes in v3: None > Changes in v2: None > > configs/evb-rk3036_defconfig | 1 + > configs/kylin-rk3036_defconfig | 1 + > 2 files changed, 2 insertions(+) > Applied to u-boot-rockchip, thanks!
diff --git a/configs/evb-rk3036_defconfig b/configs/evb-rk3036_defconfig index 321ef71..78e2095 100644 --- a/configs/evb-rk3036_defconfig +++ b/configs/evb-rk3036_defconfig @@ -4,6 +4,7 @@ CONFIG_ROCKCHIP_RK3036=y CONFIG_TARGET_EVB_RK3036=y CONFIG_SPL_STACK_R_ADDR=0x80000 CONFIG_DEFAULT_DEVICE_TREE="rk3036-sdk" +CONFIG_SPL_SYS_MALLOC_F_LEN=0x0 CONFIG_DEBUG_UART=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_STACK_R=y diff --git a/configs/kylin-rk3036_defconfig b/configs/kylin-rk3036_defconfig index 715e4b2..fd20eff 100644 --- a/configs/kylin-rk3036_defconfig +++ b/configs/kylin-rk3036_defconfig @@ -4,6 +4,7 @@ CONFIG_ROCKCHIP_RK3036=y CONFIG_TARGET_KYLIN_RK3036=y CONFIG_SPL_STACK_R_ADDR=0x80000 CONFIG_DEFAULT_DEVICE_TREE="rk3036-sdk" +CONFIG_SPL_SYS_MALLOC_F_LEN=0x0 # CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_STACK_R=y # CONFIG_CMD_IMLS is not set