Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set tty0 in cmdline as the default preferred console #3402

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

sairon
Copy link
Member

@sairon sairon commented Jun 6, 2024

The preferred console (which is used for printing the systemd boot log) is the last one specified in the cmdline boot arguments. Make sure it is always tty0, i.e. the first graphical console.

In some places tty1 was used - change it to tty0 which is commonly used, and in HAOS points to tty1 anyway.

The only exception is the Yellow, which doesn't have an HDMI port, so the serial console is used as the preferred one instead.

For ASUS Tinker, use a versioned cmdline.txt file instead of in-place generating it in the post-build hook.

The preferred console (which is used for printing the systemd boot log)
is the last one specified in the cmdline boot arguments. Make sure it is
always tty0, i.e. the first graphical console.

In some places tty1 was used - change it to tty0 which is commonly used,
and in HAOS points to tty1 anyway.

The only exception is the Yellow, which doesn't have an HDMI port, so
the serial console is used as the preferred one instead.

For ASUS Tinker, use a versioned cmdline.txt file instead of in-place
generating it in the post-build hook.
@sairon sairon added board/raspberrypi Raspberry Pi Boards board/ova Open Virtual Appliance (Virtual Machine) board/odroid Hardkernel's ODROID Boards board/tinker ASUS' Tinker Boards board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/khadas Khadas VIM Boards board/yellow Home Assistant Yellow board/generic-aarch64 Generic aarch64 machine board/green Home Assistant Green labels Jun 6, 2024
@sairon sairon requested a review from agners June 6, 2024 14:05
@sairon sairon merged commit 22b63ae into dev Jun 7, 2024
2 checks passed
@sairon sairon deleted the tty0-as-preferred-console branch June 7, 2024 10:59
@sairon sairon mentioned this pull request Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/generic-aarch64 Generic aarch64 machine board/generic-x86-64 Generic x86-64 Boards (like Intel NUC) board/green Home Assistant Green board/khadas Khadas VIM Boards board/odroid Hardkernel's ODROID Boards board/ova Open Virtual Appliance (Virtual Machine) board/raspberrypi Raspberry Pi Boards board/tinker ASUS' Tinker Boards board/yellow Home Assistant Yellow cla-signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants