<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15830</bug_id>
          
          <creation_ts>2025-04-11 14:48:07 +0000</creation_ts>
          <short_desc>poky-altcfg genericarm64 images fail to start agetty on AMD KV260 serial console</short_desc>
          <delta_ts>2025-04-24 14:41:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>5.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikko Rapeli">mikko.rapeli</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>floss</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101637</commentid>
    <comment_count>0</comment_count>
    <who name="Mikko Rapeli">mikko.rapeli</who>
    <bug_when>2025-04-11 14:48:07 +0000</bug_when>
    <thetext>Latest master branch poky-altcfg distro builds for genericarm64 machine and image core-image-base fail to start agetty on AMD KV260 /dev/ttyPS1.

Until recent refactory to systemd&apos;s agetty handling, the default config of poky-altcfg was to try starting agetty on all serial consoles set in SERIAL_CONSOLES build time variable but also start systemd agetty generator to spawn agetty on all detected serial consoles.

The result was that poky-altcfg genericarm64 images like core-image-minimal on AMD KV260 booted into serial console login on /dev/ttyPS1.

After recent changes this is no longer working. Kernel boot logs and systemd&apos;s startup messages are visible but agetty is not started.

This is regression, but to me the fix is to switch genericarm64 from build-time configure SERIAL_CONSOLES to systemd agetty generator based on detected tty&apos;s at runtime. Before recent systemd agetty refactoring, missing SERIAL_CONSOLES resulted in slowed boot when default systemd 180 second timeout was hit until systemd boot status changed from &quot;starting&quot; to &quot;running&quot; or &quot;degraded&quot;.

Fix proposal for both slow boot and missing agetty on AMD KV260:

https://lists.yoctoproject.org/g/poky/message/13590

Additional details in

https://lists.yoctoproject.org/g/poky/message/13592

In Linaro we&apos;ve been using the systemd side getty generator for a long time to support multiple devices from qemuarm64 and genericarm64 machine builds without hard coding SERIAL_CONSOLES at build time. Suppoted devices has included qemu, rpi4, synquacer, AMD KV260, AMD zcu102, rockpi4b and AVA.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101709</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-04-22 19:07:19 +0000</bug_when>
    <thetext>Patches posted, and in poky-contrib:ross/getty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101731</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-04-24 14:41:36 +0000</bug_when>
    <thetext>Fixed in some sense in oe-core 6ec2c52b938302b894f119f701ffcf0a847eee85.

I shall open new tickets for future improvements to this field.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>