ARM64 ISO + install has boot console showing on serial port only

Bug #2083919 reported by Mate Kukri
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
Noble
New
Undecided
Unassigned
Plucky
Fix Released
Undecided
Unassigned
livecd-rootfs (Ubuntu)
Fix Released
Critical
Chris Peterson
Noble
New
Undecided
Unassigned
Plucky
Fix Released
Undecided
Unassigned

Bug Description

Boot console only shows on serial port. For encrypted installs this means it is not possible to enter passphrase and unlock installation without having access to serial console.

Related branches

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/2083919

tags: added: iso-testing
Mate Kukri (mkukri)
summary: - ARM64 ISO + install has boot console showing on serial port only
+ Oracular Oriole ARM64 ISO + install has boot console showing on serial
+ port only
Changed in livecd-rootfs (Ubuntu):
milestone: none → ubuntu-24.10
importance: Undecided → Critical
Revision history for this message
Mate Kukri (mkukri) wrote (last edit ): Re: Oracular Oriole ARM64 ISO + install has boot console showing on serial port only

I am not sure if this should be release critical, it seems like Noble does the same thing on my VM.

Chris Peterson (cpete)
Changed in livecd-rootfs (Ubuntu):
status: New → In Progress
assignee: nobody → Chris Peterson (cpete)
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Unless I'm confused this should be fixed in tools/boot/oracular/ in debian-cd

Chris Peterson (cpete)
Changed in livecd-rootfs (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Mate Kukri (mkukri) wrote :

https://iso.qa.ubuntu.com/qatracker/milestones/463/builds/315087/testcases still has this problem partially.

console=tty0 is applied and the console shows when booting the live system from the ISO, but the resulting installation still has the exact same problem, and that's where the passphrase issue occurs.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The arm64 desktop live iso still have "console=tty0" like the server images do.
It appears that accessing console causes boot-loop.
Removing console=tty0 as well as quiet and splash manages to boot my x13s to desktop.

Note I have an earlier production / commercial X13s sku, and it does often behave differently to the engineering samples x13s.

Will check what i have on this laptop and complete the wipe and reinstall shortly.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Note that console=tty0 is before --- and shouldn't be copied into the installed system.....

Revision history for this message
Mate Kukri (mkukri) wrote :

For my VM the installed system also needs console=tty0, otherwise it only asks for the passphrase on the serial port.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

@cpete @mwhudson @juliank

I think if we want for "console=tty0" to be used for both live & installed system, it has to come after "---"

Currently it is before:

```
smbios --type 1 --get-string 6 --set system_product_version
regexp "ThinkPad X13s.*" "$system_product_version"
if [ $? = 0 ]; then
        cmdline="clk_ignore_unused pd_ignore_unused arm64.nopauth"
        dtb="devicetree /casper/sc8280xp-lenovo-thinkpad-x13s.dtb"
fi

menuentry "Try or Install Ubuntu" {
 set gfxpayload=keep
 linux /casper/vmlinuz console=tty0 $cmdline --- quiet splash
 initrd /casper/initrd
 $dtb
}
```

Also the special x13s args are also before '---' which is probably why nothing works unless one ticks to install 3rd party software, as with those args after '---' they would be copied into installed system as is. But I am not up to date on the rest of integrations if that will help or hinder the experience with/without 3rd party software.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

(about history on -- and --- you can read at https://bugs.launchpad.net/maas/+bug/1402042 and Boot Console section in https://www.debian.org/releases/bullseye/amd64/ch05s03.en.html)

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

separately pondering if there is kernel or grub/shim missconfiguration that default console is somewhere else. Comparing it with amd64 image now.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

$ cat ~/Downloads/config-6.11.0-8-generic.arm64.txt | grep CONFIG_CMDLINE
CONFIG_CMDLINE="console=ttyAMA0"
CONFIG_CMDLINE_FROM_BOOTLOADER=y

the console=ttyAMA0 sounds like a workaround for VMs and servers, if a kernel is to be generic it shouldn't assume the type of console in use.

how console setting is set in all images (cloud-images ubuntu-core server.iso desktop.iso) should be evaluated before changing this default in linux kernel config.

Revision history for this message
Brian Murray (brian-murray) wrote :
Revision history for this message
Mate Kukri (mkukri) wrote (last edit ):

> $ cat ~/Downloads/config-6.11.0-8-generic.arm64.txt | grep CONFIG_CMDLINE
> CONFIG_CMDLINE="console=ttyAMA0"
> CONFIG_CMDLINE_FROM_BOOTLOADER=y

This is definitely not the right configuration for Desktop, and probably questionable for server as well, where a specific server might have a graphical console.

It seems like on AMD64 this is a solved problem where server can do console on both? I am not sure why this is hard-coded here?

Changed in linux (Ubuntu):
status: New → Invalid
Changed in livecd-rootfs (Ubuntu):
status: Fix Committed → Fix Released
Juerg Haefliger (juergh)
tags: added: kernel-daily-bug
Tobias Heider (tobhe)
summary: - Oracular Oriole ARM64 ISO + install has boot console showing on serial
- port only
+ ARM64 ISO + install has boot console showing on serial port only
Tobias Heider (tobhe)
Changed in linux (Ubuntu Plucky):
status: New → Fix Released
Changed in livecd-rootfs (Ubuntu Plucky):
status: New → Fix Released
Revision history for this message
Mate Kukri (mkukri) wrote :

'Fix Released' we like.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.