diff mbox series

[U-Boot,2/2] arm: am57xx: Allow bootm to load larger kernels

Message ID 20190702175609.22557-2-semen.protsenko@linaro.org
State Accepted
Commit d2c9a9a3d728c20ecf78d5894a1a121a78f38efa
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/2] env: ti: Increase boot partition | expand

Commit Message

Sam Protsenko July 2, 2019, 5:56 p.m. UTC
linux-mainline with multi_v7_defconfig + Android configs takes more
space than regular TI Android kernel and bootm will fail to load it.
Let's increase max kernel size up to 64 MiB to make it possible to run
such kernel.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
 include/configs/am57xx_evm.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Igor Opaniuk July 12, 2019, 9:41 a.m. UTC | #1
Hi Sam,

On Tue, Jul 2, 2019 at 8:56 PM Sam Protsenko <semen.protsenko@linaro.org> wrote:
>
> linux-mainline with multi_v7_defconfig + Android configs takes more
> space than regular TI Android kernel and bootm will fail to load it.
> Let's increase max kernel size up to 64 MiB to make it possible to run
> such kernel.
>
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
> ---
>  include/configs/am57xx_evm.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
> index 2c651aab17..9a39cd6351 100644
> --- a/include/configs/am57xx_evm.h
> +++ b/include/configs/am57xx_evm.h
> @@ -24,6 +24,8 @@
>  #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
>  #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
>
> +#define CONFIG_SYS_BOOTM_LEN           SZ_64M
> +
>  #define CONSOLEDEV                     "ttyO2"
>  #define CONFIG_SYS_NS16550_COM1                UART1_BASE      /* Base EVM has UART0 */
>  #define CONFIG_SYS_NS16550_COM2                UART2_BASE      /* UART2 */
> --
> 2.20.1
>

Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Lokesh Vutla July 16, 2019, 6:11 a.m. UTC | #2
On 02/07/19 11:26 PM, Sam Protsenko wrote:
> linux-mainline with multi_v7_defconfig + Android configs takes more
> space than regular TI Android kernel and bootm will fail to load it.
> Let's increase max kernel size up to 64 MiB to make it possible to run
> such kernel.
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh
Tom Rini July 28, 2019, 9:50 p.m. UTC | #3
On Tue, Jul 02, 2019 at 08:56:09PM +0300, Sam Protsenko wrote:

> linux-mainline with multi_v7_defconfig + Android configs takes more
> space than regular TI Android kernel and bootm will fail to load it.
> Let's increase max kernel size up to 64 MiB to make it possible to run
> such kernel.
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
> Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
index 2c651aab17..9a39cd6351 100644
--- a/include/configs/am57xx_evm.h
+++ b/include/configs/am57xx_evm.h
@@ -24,6 +24,8 @@ 
 #define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
 
+#define CONFIG_SYS_BOOTM_LEN		SZ_64M
+
 #define CONSOLEDEV			"ttyO2"
 #define CONFIG_SYS_NS16550_COM1		UART1_BASE	/* Base EVM has UART0 */
 #define CONFIG_SYS_NS16550_COM2		UART2_BASE	/* UART2 */