Add a /chosen node with stdout-path pointing to serial0 (uart1) to enable the DT-driven console discovery path in serial_find_console_or_panic().
Without this node, the live DT path in serial_find_console_or_panic() is skipped and the fallback path is used. Adding the /chosen node makes the console selection explicit and deterministic, ensuring the correct serial device is always selected as the console. Signed-off-by: Gurumoorthy Santhakumar <[email protected]> --- Changes in v2: - Replaced the DM_FLAG_PRE_RELOC approach (v1) with adding a /chosen node in the board-specific U-Boot DTSI overlay, as suggested by Casey Connolly. This is the standard DT mechanism for specifying the console device and avoids modifying driver flags. Link: https://lore.kernel.org/u-boot/[email protected]/ --- --- arch/arm/dts/ipq5424-rdp466-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/ipq5424-rdp466-u-boot.dtsi b/arch/arm/dts/ipq5424-rdp466-u-boot.dtsi index 9e4af4d9f72..36640f31d61 100644 --- a/arch/arm/dts/ipq5424-rdp466-u-boot.dtsi +++ b/arch/arm/dts/ipq5424-rdp466-u-boot.dtsi @@ -12,6 +12,9 @@ reg = <0x0 0x80000000 0x0 0x20000000>; }; + chosen { + stdout-path = "serial0:115200n8"; + }; }; &sdhc { -- 2.34.1

