silent hangup when debugging lib/fdtdec.c
Quoted 7 lines · Fabio Estevam
Quoted 1 line · On Thu, Nov 27, 2025 at 9:33 AM [email protected]…
I also have a mx7dsabresd but I cannot bring it to boot with a master build unfortunately.
Just tested booting the top-of-tree U-Boot on a mx7dsabresd and it boots:
Thanks! When using 0ae3dc6809ff like you I can boot and reproduce the hangup issue on mx7dsabresd:
<debug_uart>
FDT 8787da38 gd 0091de20
top 87887538 sp 87800000sys_init_sp_addr 0091ff10gbl_data_size 000000f0
FDT overlap
resetting ...
System reset not supported on this platform
### ERROR ### Please RESET the board ###
This is the patch that enables debug uart and demonstrates the issue:
From 9ee6e3244f15c8a1d9cb86130186cc9f221721c6 Mon Sep 17 00:00:00 2001
From: Alexander Feilke <[email protected]>
Date: Thu, 27 Nov 2025 16:47:23 +0100
--- board/freescale/mx7dsabresd/mx7dsabresd.c | 6 ++++++ configs/mx7dsabresd_defconfig | 5 +++++ lib/fdtdec.c | 5 +++++ 3 files changed, 16 insertions(+)
board/freescale/mx7dsabresd/mx7dsabresd.c +6 -0
@@ -25,6 +25,7 @@#include <i2c.h> #include <asm/mach-imx/mxc_i2c.h> #include <asm/arch/crm_regs.h> +#include <linux/delay.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -233,6 +234,11 @@ int board_early_init_f(void)return 0 ; } +void board_debug_uart_init (void ) +{ +setup_iomux_uart (); +} +int board_init (void ) {/* address of boot parameters */
configs/mx7dsabresd_defconfig +5 -0
@@ -10,6 +10,11 @@ CONFIG_TARGET_MX7DSABRESD=y # CONFIG_ARMV7_VIRT is not set CONFIG_IMX_RDC=y CONFIG_IMX_BOOTAUX=y +CONFIG_DEBUG_UART_BASE=0x30860000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_DEBUG_UART=y +CONFIG_DEBUG_UART_ANNOUNCE=y +CONFIG_DEBUG_UART_BOARD_INIT=y CONFIG_IMX_HAB=y CONFIG_SYS_MEMTEST_START=0x80000000 CONFIG_SYS_MEMTEST_END=0xa0000000
lib/fdtdec.c +5 -0
@@ -9,6 +9,7 @@#ifndef USE_HOSTCC #define LOG_CATEGORY LOGC_DT +#define DEBUG #include <bloblist.h> #include <boot_fit.h>
@@ -35,6 +36,7 @@#include <linux/ctype.h> #include <linux/lzo.h> #include <linux/ioport.h> +#include <system-constants.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -1276,6 +1278,9 @@ static void *fdt_find_separate(void)*/ if (top > (void *)gd || top > (void *)&stack_ptr) {printf ("FDT %p gd %p\n" , fdt_blob, gd); +printf ("top %p sp %p\n" , top, stack_ptr); +printf ("sys_init_sp_addr %p\n" ,SYS_INIT_SP_ADDR ); +printf ("gbl_data_size %p\n" ,GENERATED_GBL_DATA_SIZE );panic ("FDT overlap" ); } }
Signature · 1 line
2.34.1
Quoted 9 lines · On Thursday, November 27, 2025 16:50 CET, [email protected]…
Quoted 6 lines · Fabio Estevam
Quoted 1 line · On Thu, Nov 27, 2025 at 9:33 AM [email protected]…
I also have a mx7dsabresd but I cannot bring it to boot with a master build unfortunately.
Just tested booting the top-of-tree U-Boot on a mx7dsabresd and it boots
Thanks! When using
0ae3dc6809fflike you I can boot and reproduce the hangup issue on mx7dsabresd
Any findings about this yet? Can you reproduce it on mx7dsabresd too? I'm having issues tracking down the problem there
Quoted 22 lines
Quoted 10 lines
Description: U-Boot hangs silently during boot when enabling DEBUG in
lib/fdtdec.cNot sure if its really a bug or rather a configuration issue on my side.
Minimal steps to reproduce: <see patch>
The hang is caused by
panic("FDT overlap");later inside the if block. (seelib/fdtdec.c:1279infdt_find_separate(void))Quoted 9 lines
Additionally, no boot log can be seen because serial is initialized after loading the devicetree in this boot stage (see
common/board_r.c:665ininitcall_run_r(void))Tested on i.MX6 with configs for
tqma6d_mba6and other tq boards that aren't, mainlined yet (tqma6ulx_mba6ulandtqma7d_mba7).Any idea what to look for to fix this on our side?
I can boot and reproduce the hangup issue on mx7dsabresd:
Quoted 9 lines
<
debug_uart>
FDT8787da38gd0091de20
top 87887538 sp 87800000sys_init_sp_addr0091ff10gbl_data_size000000f0
FDT overlap
resetting ...
System reset not supported on this platform
### ERROR ### Please RESET the board ###
Just want to revive this topic as the issue is still unresolved.
Quoted 32 lines · On Tue, Jan 13, 2026 at 09:52:35AM +0100, [email protected]…
Quoted 22 lines
Quoted 10 lines
Description: U-Boot hangs silently during boot when enabling DEBUG in
lib/fdtdec.cNot sure if its really a bug or rather a configuration issue on my side.
Minimal steps to reproduce: <see patch>
The hang is caused by
panic("FDT overlap");later inside the if block. (seelib/fdtdec.c:1279infdt_find_separate(void))Quoted 9 lines
Additionally, no boot log can be seen because serial is initialized after loading the devicetree in this boot stage (see
common/board_r.c:665ininitcall_run_r(void))Tested on i.MX6 with configs for
tqma6d_mba6and other tq boards that aren't, mainlined yet (tqma6ulx_mba6ulandtqma7d_mba7).Any idea what to look for to fix this on our side?
I can boot and reproduce the hangup issue on mx7dsabresd:
Quoted 9 lines
<
debug_uart>
FDT8787da38gd0091de20
top 87887538 sp 87800000sys_init_sp_addr0091ff10gbl_data_size000000f0
FDT overlap
resetting ...
System reset not supported on this platform
### ERROR ### Please RESET the board ###
Quoted 1 line
Just want to revive this topic as the issue is still unresolved.
OK, so looking at this, it's a "feature" as the check doesn't take in to account that we might not have relocated gd out of initial memory (in this case, 0x009.....) and in to sdram (0x8.......) and so is a faulty check.
Signature · 1 line
Tom