autopkgtest ignores --architecture flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Won't Fix
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
High
|
Heinrich Schuchardt | ||
Focal |
Won't Fix
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Brian Murray | ||
Lunar |
Fix Released
|
Medium
|
Brian Murray | ||
Mantic |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
Description
-----------
The cloud images produced by livecd-rootfs do not properly configure the tty for armhf and subsequently the terminal output is not available.
Test Case
---------
1) Run `autopkgtest-
2) Observe the last console message `EFI stub: Exiting boot services...`
With a cloud image build with the livecd-rootfs version in -proposed you'll see much more output from `autopkgtest-
Regression Potential
-------
The serial console is being set to ttyS0 differently that it was for architectures other than arm64 or armhf. However, this has been in place in noble for an extended period of time and has not cause any regressions for those architectures.
Original Description
-------
On an arm64 as well as on amd64 I saw this behavior:
$ autopkgtest-
$ autopkgtest -U --apt-pocket=
autopkgtest [13:18:32]: starting date and time: 2023-09-20 13:18:32+0200
autopkgtest [13:18:32]: version 5.28ubuntu1
autopkgtest [13:18:32]: host mcbin; command line: /usr/bin/
qemu-system-
<VirtSubproc>: failure: timed out waiting for 'login prompt on serial console'
autopkgtest [13:19:33]: ERROR: testbed failure: unexpected eof from the testbed
When trying to boot into the image on an arm64 system with
qemu-system-aarch64 \
-machine virt -accel kvm -m 4G -smp 4 -cpu host,aarch64=off -nographic \
-object rng-random,
-device virtio-
-drive if=pflash,
-device virtio-
-netdev user,id=
-drive file=autopkgtes
the last messages displayed are
EFI stub: Booting Linux Kernel...
EFI stub: Entering in SVC mode with MMU enabled
EFI stub: Loaded initrd from LINUX_EFI_
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
qemu-system-aarch64 seems to be close to idling at less than 0.5 % CPU load. So booting obviously stalled.
Related branches
- Paride Legovini: Approve
- Philip Roche (community): Approve
- Gauthier Jolly: Pending requested
- Brian Murray: Pending requested
-
Diff: 30 lines (+11/-1)1 file modifiedlive-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot (+11/-1)
- Brian Murray: Needs Fixing
- Gauthier Jolly (community): Approve
-
Diff: 30 lines (+11/-1)1 file modifiedlive-build/ubuntu-cpc/hooks.d/chroot/999-cpc-fixes.chroot (+11/-1)
tags: | added: adt-351 |
Changed in livecd-rootfs (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Heinrich Schuchardt (xypron) |
Changed in autopkgtest (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in livecd-rootfs (Ubuntu Focal): | |
status: | New → Triaged |
Changed in livecd-rootfs (Ubuntu Jammy): | |
status: | New → Triaged |
Changed in livecd-rootfs (Ubuntu Lunar): | |
status: | New → Triaged |
Changed in livecd-rootfs (Ubuntu Mantic): | |
status: | New → Triaged |
Changed in livecd-rootfs (Ubuntu Jammy): | |
assignee: | nobody → Brian Murray (brian-murray) |
importance: | Undecided → Medium |
status: | Triaged → In Progress |
Changed in livecd-rootfs (Ubuntu Lunar): | |
assignee: | nobody → Brian Murray (brian-murray) |
importance: | Undecided → Medium |
status: | Triaged → In Progress |
Changed in livecd-rootfs (Ubuntu Mantic): | |
assignee: | nobody → Brian Murray (brian-murray) |
importance: | Undecided → Medium |
status: | Triaged → In Progress |
description: | updated |
description: | updated |
Changed in livecd-rootfs (Ubuntu Focal): | |
status: | Triaged → Won't Fix |
Changed in autopkgtest (Ubuntu Lunar): | |
status: | New → Won't Fix |
no longer affects: | autopkgtest (Ubuntu Focal) |
A login into the image is possible via U-Boot:
qemu-system-arm -machine virt -cpu cortex-a15 -m 1G -smp cores=2 -bios /usr/lib/ u-boot/ qemu_arm/ u-boot. bin -nographic -object rng-random, filename= /dev/urandom, id=rng0 -device virtio- rng-pci, rng=rng0, id=rng- device0 -device virtio- net-pci, netdev= eth0 -netdev user,id= eth0,hostfwd= tcp::8022- :22 -drive file=autopkgtes t-mantic- armhf.img, if=virtio, format= qcow2
In the U-Boot console use
virtio scan addr_r: $filesize $fdtcontroladdr
load virtio 0:1 $kernel_addr_r boot/vmlinuz
load virtio 0:1 $ramdisk_addr_r boot/initrd.img
setenv bootargs root=/dev/vda1
bootz $kernel_addr_r $ramdisk_
grub.cfg has this line:
linux /boot/vmlinuz- 6.5.0-5- generic root=LABEL= cloudimg- rootfs ro console=tty1 console=ttyS0
But the last command indicates that the serial console is ttyAMA0:
ubuntu@ autopkgtest: ~$ last
ubuntu ttyAMA0 Wed Sep 20 13:50 still logged in
reboot system boot 6.5.0-5-generic Wed Sep 20 13:43 still running
File /etc/default/ grub.d/ 50-cloudimg- settings. cfg introduces the console=ttyS0 commandline argument.