diff mbox series

[master,v2] am62lxx: Override serial console to ttyS0 only

Message ID 20260423053952.254126-1-y-hegde@ti.com
State Under Review
Delegated to: Ryan Eatmon
Headers show
Series [master,v2] am62lxx: Override serial console to ttyS0 only | expand

Commit Message

Yogesh Hegde April 23, 2026, 5:39 a.m. UTC
The am62lxx SoC default UART is ttyS0 since it doesn't have the
R5 cores taking up a UART. The k3 default SERIAL_CONSOLES
inherited includes ttyS2, which causes systemd to wait indefinitely
for a console that never appears, significantly increasing boot time
and degrading user experience.

Override SERIAL_CONSOLES to specify only ttyS0, allowing the boot
process to proceed normally without waiting for unavailable consoles.

Signed-off-by: Yogesh Hegde <y-hegde@ti.com>
---
v2 Changes:
- moved SERIAL_CONSOLES override to include/am62lxx.inc

---

Boot time is increased from 33s to 2m18s.
Boot time is measured from power on to TI LVGL demo
running on HDMI Display.

Logs:

root@am62lxx-evm:~# systemd-analyze critical-chain ti-lvgl-demo.service
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
ti-lvgl-demo.service @1min 32.588s
`-multi-user.target @1min 32.577s
   `-getty.target @1min 32.575s
     `-serial-getty@... @13.002s
       `-systemd-user-sessions.service @10.847s +660ms
         `-network.target @10.582s
           `-systemd-networkd.service @8.748s +1.799s
             `-network-pre.target @8.735s
               `-iptables.service @7.477s +920ms
                 `-basic.target @7.363s
                   `-dbus-broker.service @6.661s +466ms
                     `-dbus.socket @6.310s +434us
                       `-sysinit.target @6.263s
                         `-systemd-vconsole-setup.service @18.198s +391ms
                           `-systemd-journald.socket @2.781s +335us
                             `-system.slice @1.282s
                               `--.slice @1.282s

From the time analysis log, `getty.target` takes 1min 32 secs to bootup due to
serial-getty@... failed. This service fails because there is no
hardware associated with ttyS2.

---
 meta-ti-bsp/conf/machine/include/am62lxx.inc | 2 ++
 1 file changed, 2 insertions(+)

Comments

PRC Automation April 23, 2026, 5:55 a.m. UTC | #1
meta-ti / na / 20260423053952.254126-1-y-hegde

PRC Results: PASS

=========================================================
  check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [master][PATCH v2] am62lxx: Override serial console to ttyS0 only
    WARN: Revised patch missing a comment. (REVISION-1)
        patch
    
    For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887



=========================================================
  apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [master][PATCH v2] am62lxx: Override serial console to ttyS0 only
- Submitter: From: Yogesh Hegde <y-hegde@ti.com>
- Date: Date: Thu, 23 Apr 2026 11:09:52 +0530
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: 2ec66f7586fc6255eb766912caa24aa2f0e13d3d

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: master-wip
- Commit Author: Yogesh Hegde <y-hegde@ti.com>
- Commit Subject: am62lxx-evm: Override serial console to ttyS0 only
- Commit SHA: 285e74bf5d6ae2e6b3744d777b6f8bb4a1afa0c5

Patches
----------------------------------------
All patches applied



=========================================================
  check-yocto-repo: PASS
=========================================================
master
=====================
PASS



=========================================================
  yocto-check-layers: PASS
=========================================================
master - PASS
=====================
All checks passed
diff mbox series

Patch

diff --git a/meta-ti-bsp/conf/machine/include/am62lxx.inc b/meta-ti-bsp/conf/machine/include/am62lxx.inc
index 12c8d6ea..26abe479 100644
--- a/meta-ti-bsp/conf/machine/include/am62lxx.inc
+++ b/meta-ti-bsp/conf/machine/include/am62lxx.inc
@@ -3,6 +3,8 @@  SOC_FAMILY:append = ":am62lxx"
 
 MACHINE_FEATURES += "screen"
 
+SERIAL_CONSOLES = "115200;ttyS0"
+
 TFA_BOARD = "am62lx"
 TFA_K3_SYSTEM_SUSPEND = "1"
 TFA_PLATFORM = "k3low"