Skip to content

T8120: add support for per CPU architecture serial interface name#1128

Merged
sever-sever merged 4 commits intovyos:currentfrom
c-po:per-arch-kernel-serial-interface
Mar 2, 2026
Merged

T8120: add support for per CPU architecture serial interface name#1128
sever-sever merged 4 commits intovyos:currentfrom
c-po:per-arch-kernel-serial-interface

Conversation

@c-po
Copy link
Copy Markdown
Member

@c-po c-po commented Feb 28, 2026

Change summary

x86_64 and arm64 both use a different serial interface during Linux Kernel boot. Define either ttyS0 or ttyAMA0 per CPU architecture. This could be further overwritten by individual flavors.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

How to test / Smoketest result

VyOS smoketest infrastructure passed

  • make test-interfaces
  • make test-no-interfaces-no-vpp
  • make testc

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

c-po added 3 commits February 28, 2026 19:35
x86_64 and arm64 both use a different serial interface during Linux Kernel
boot. Define either ttyS0 or ttyAMA0 per CPU architecture. This could be
further overwritten by individual flavors.
When building an ISO image the files which are probed for no longer exist.
This means it makes no sense to longer carry an unused hook.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 28, 2026

👍
No issues in PR Title / Commit Title

@github-actions github-actions bot added the current VyOS rolling release label Feb 28, 2026
This file is only needed to support upgrades from the legacy image management
tools. Example would be an upgrade from VyOS 1.3.8 -> 1.5 (which is officially
unsupported, but we always try our best). This is also the reason why we can
leave the ttyS0 console in this file - there was no ARM64 image for VyOS 1.3!
Copy link
Copy Markdown
Member

@dmbaturin dmbaturin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the need to have console workarounds for different architectures annoying but that is the nature of the problem and we have to do something about it, one way or another.

I see no issues with the logic here.

Copy link
Copy Markdown
Member

@sever-sever sever-sever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the different Serial console depending on the CPU arch.

@sever-sever sever-sever merged commit ff2a5df into vyos:current Mar 2, 2026
8 checks passed
@vyosbot vyosbot added mirror-initiated This PR initiated for mirror sync workflow mirror-completed and removed mirror-initiated This PR initiated for mirror sync workflow labels Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

current VyOS rolling release mirror-completed

Development

Successfully merging this pull request may close these issues.

4 participants