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 <[email protected]>
---
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(+)

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"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19873): 
https://lists.yoctoproject.org/g/meta-ti/message/19873
Mute This Topic: https://lists.yoctoproject.org/mt/118967639/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

  • [meta-ti] [master][PATCH v2] am6... Yogesh Hegde via lists.yoctoproject.org

Reply via email to