All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configs: am3517_evm: Fix boot hang
@ 2021-06-26 13:42 Adam Ford
  2021-06-26 23:47 ` Derald D. Woods
  2021-07-14  6:52 ` Lokesh Vutla
  0 siblings, 2 replies; 3+ messages in thread
From: Adam Ford @ 2021-06-26 13:42 UTC (permalink / raw)
  To: u-boot; +Cc: lokeshvutla, trini, aford, Adam Ford

SPL is really tight on space, so decrease a little memory that we
allocate in order to fix boot hang.

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig
index 0b9bd0e475..9611d33bec 100644
--- a/configs/am3517_evm_defconfig
+++ b/configs/am3517_evm_defconfig
@@ -9,7 +9,7 @@ CONFIG_NR_DRAM_BANKS=2
 CONFIG_SPL_TEXT_BASE=0x40200000
 CONFIG_TARGET_AM3517_EVM=y
 CONFIG_EMIF4=y
-CONFIG_SPL_SYS_MALLOC_F_LEN=0x3000
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x2500
 CONFIG_SPL=y
 CONFIG_DEFAULT_DEVICE_TREE="am3517-evm"
 CONFIG_LTO=y
@@ -53,8 +53,6 @@ CONFIG_ENV_IS_IN_NAND=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_BOOTP_SEND_HOSTNAME=y
 CONFIG_SPL_DM=y
-CONFIG_SPL_DM_SEQ_ALIAS=y
-CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_DM_PCA953X=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MTD=y
@@ -84,3 +82,4 @@ CONFIG_USB_MUSB_HOST=y
 CONFIG_USB_MUSB_AM35X=y
 CONFIG_BCH=y
 CONFIG_SPL_TINY_MEMSET=y
+# CONFIG_EFI_LOADER is not set
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] configs: am3517_evm: Fix boot hang
  2021-06-26 13:42 [PATCH] configs: am3517_evm: Fix boot hang Adam Ford
@ 2021-06-26 23:47 ` Derald D. Woods
  2021-07-14  6:52 ` Lokesh Vutla
  1 sibling, 0 replies; 3+ messages in thread
From: Derald D. Woods @ 2021-06-26 23:47 UTC (permalink / raw)
  To: Adam Ford; +Cc: u-boot, lokeshvutla, trini, aford

On Sat, Jun 26, 2021 at 08:42:58AM -0500, Adam Ford wrote:
> SPL is really tight on space, so decrease a little memory that we
> allocate in order to fix boot hang.
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>
> 
> diff --git a/configs/am3517_evm_defconfig b/configs/am3517_evm_defconfig
> index 0b9bd0e475..9611d33bec 100644
> --- a/configs/am3517_evm_defconfig
> +++ b/configs/am3517_evm_defconfig
> @@ -9,7 +9,7 @@ CONFIG_NR_DRAM_BANKS=2
>  CONFIG_SPL_TEXT_BASE=0x40200000
>  CONFIG_TARGET_AM3517_EVM=y
>  CONFIG_EMIF4=y
> -CONFIG_SPL_SYS_MALLOC_F_LEN=0x3000
> +CONFIG_SPL_SYS_MALLOC_F_LEN=0x2500
>  CONFIG_SPL=y
>  CONFIG_DEFAULT_DEVICE_TREE="am3517-evm"
>  CONFIG_LTO=y
> @@ -53,8 +53,6 @@ CONFIG_ENV_IS_IN_NAND=y
>  CONFIG_VERSION_VARIABLE=y
>  CONFIG_BOOTP_SEND_HOSTNAME=y
>  CONFIG_SPL_DM=y
> -CONFIG_SPL_DM_SEQ_ALIAS=y
> -CONFIG_SPL_OF_TRANSLATE=y
>  CONFIG_DM_PCA953X=y
>  CONFIG_MMC_OMAP_HS=y
>  CONFIG_MTD=y
> @@ -84,3 +82,4 @@ CONFIG_USB_MUSB_HOST=y
>  CONFIG_USB_MUSB_AM35X=y
>  CONFIG_BCH=y
>  CONFIG_SPL_TINY_MEMSET=y
> +# CONFIG_EFI_LOADER is not set
> -- 
> 2.25.1
> 

Works for me on Zoom AM3517 eXperimenter.

Tested-by: Derald D. Woods <woods.technical@gmail.com>

Boot Capture
============

U-Boot SPL 2021.07-rc4-169-g4d8c21da41 (Jun 26 2021 - 18:34:45 -0500)
Trying to boot from MMC1
spl_load_image_fat_os: error reading image args, err - -2


U-Boot 2021.07-rc4-169-g4d8c21da41 (Jun 26 2021 - 18:34:45 -0500)

AM35XX-GP ES2.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 MHz
Model: TI AM3517 EVM (AM3517/05 TMDSEVM3517)
DRAM:  256 MiB
NAND:  512 MiB
MMC:   OMAP SD/MMC: 0
Loading Environment from FAT... Unable to read "uboot.env" from
mmc0:1... Loading Environment from NAND... OK
In:    serial@49020000
Out:   serial@49020000
Err:   serial@49020000
OMAP die ID: 126800010000000001685a201600f00c
Net:   eth0: ethernet@5c000000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Failed to load 'uEnv.txt'
Checking if uenvcmd is set ...
Running default loadimage ...
5080632 bytes read in 452 ms (10.7 MiB/s)
61310 bytes read in 8 ms (7.3 MiB/s)
Booting from mmc ...
Kernel image @ 0x82000000 [ 0x000000 - 0x4d8638 ]
## Flattened Device Tree blob at 82c00000
   Booting using the fdt blob at 0x82c00000
   Loading Device Tree to 8df25000, end 8df36f7d ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
...

Derald


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] configs: am3517_evm: Fix boot hang
  2021-06-26 13:42 [PATCH] configs: am3517_evm: Fix boot hang Adam Ford
  2021-06-26 23:47 ` Derald D. Woods
@ 2021-07-14  6:52 ` Lokesh Vutla
  1 sibling, 0 replies; 3+ messages in thread
From: Lokesh Vutla @ 2021-07-14  6:52 UTC (permalink / raw)
  To: u-boot, Adam Ford; +Cc: Lokesh Vutla, trini, aford

On Sat, 26 Jun 2021 08:42:58 -0500, Adam Ford wrote:
> SPL is really tight on space, so decrease a little memory that we
> allocate in order to fix boot hang.
 
Applied to https://source.denx.de/u-boot/custodians/u-boot-ti.git for-rc, thanks!
[1/1] configs: am3517_evm: Fix boot hang
      https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/56771f5378
 
--
Thanks and Regards,
Lokesh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-14  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-26 13:42 [PATCH] configs: am3517_evm: Fix boot hang Adam Ford
2021-06-26 23:47 ` Derald D. Woods
2021-07-14  6:52 ` Lokesh Vutla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.