[U-Boot] [PATCH] rockchip: mkimage: correct spl_size for rk3399

The maximum spl_size for rk3399 is the internal memory size minus the size used in bootrom (which usually can get from SPL_TEXT_BASE).
Signed-off-by: Kever Yang kever.yang@rock-chips.com ---
tools/rkcommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 395d2db..4b496a0 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -73,7 +73,7 @@ static struct spl_info spl_infos[] = { { "rk3288", "RK32", 0x8000, false, false }, { "rk322x", "RK32", 0x8000 - 0x1000, false, false }, { "rk3328", "RK32", 0x8000 - 0x1000, false, false }, - { "rk3399", "RK33", 0x20000, false, true }, + { "rk3399", "RK33", 0x30000 - 0x2000, false, true }, };
static unsigned char rc4_key[16] = {

On 14 Jun 2017, at 08:54, Kever Yang kever.yang@rock-chips.com wrote:
The maximum spl_size for rk3399 is the internal memory size minus the size used in bootrom (which usually can get from SPL_TEXT_BASE).
Signed-off-by: Kever Yang kever.yang@rock-chips.com
Reviewed-by: Philipp Tomsich philipp.tomsich@theobroma-systems.com

On 14 June 2017 at 02:20, Dr. Philipp Tomsich philipp.tomsich@theobroma-systems.com wrote:
On 14 Jun 2017, at 08:54, Kever Yang kever.yang@rock-chips.com wrote:
The maximum spl_size for rk3399 is the internal memory size minus the size used in bootrom (which usually can get from SPL_TEXT_BASE).
Signed-off-by: Kever Yang kever.yang@rock-chips.com
Reviewed-by: Philipp Tomsich philipp.tomsich@theobroma-systems.com
Reviewed-by: Simon Glass sjg@chromium.org

On Wed, 14 Jun 2017, Kever Yang wrote:
The maximum spl_size for rk3399 is the internal memory size minus the size used in bootrom (which usually can get from SPL_TEXT_BASE).
Signed-off-by: Kever Yang kever.yang@rock-chips.com Reviewed-by: Philipp Tomsich philipp.tomsich@theobroma-systems.com Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-rockchip/master, thanks!
participants (4)
-
Dr. Philipp Tomsich
-
Kever Yang
-
Philipp Tomsich
-
Simon Glass