Interacting with NetBSD serial console boot blocks no longer works
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
The NetBSD boot blocks display a menu allowing the user to make a
selection using the keyboard. For example, when booting a NetBSD
installation CD-ROM, the menu looks like this:
1. Install NetBSD
2. Install NetBSD (no ACPI)
3. Install NetBSD (no ACPI, no SMP)
4. Drop to boot prompt
Choose an option; RETURN for default; SPACE to stop countdown.
Option 1 will be chosen in 30 seconds.
When booting NetBSD in a recent qemu using an emulated serial console,
making this menu selection no longer works: when you type the selected
number, the keyboard input is ignored, and the 30-second countdown
continues. In older versions of qemu, it works.
To reproduce the problem, run:
wget http://
qemu-
During the 30-second countdown, press 4
Expected behavior: The countdown stops and you get a ">" prompt
Incorrect behavior: The countdown continues
There may also be some corruption of the terminal output; for example,
"Option 1 will be chosen in 30 seconds" may be displayed as "Option 1
will be chosen in p0 seconds".
Using bisection, I have determined that the problem appeared with qemu
commit 083fab0290f2c40
updated to 1.11 prerelease, and the problem is still there as of
commit 7398166ddf7c6db
system used for the tests was Debian 9 x86_64.
Credit for discovering this bug goes to Paul Goyette.
no longer affects: | seabios |
Changed in qemu: | |
status: | Incomplete → New |
Reverting to Seabios 1.10 (version rel-1.10. 3.0-gb76661dd) fixes this problem.
Steps:
$ cd && mkdir seabios-test && cd seabios-test /github. com/coreboot/ seabios. git file=/home/ oc/VM/img/ netbsd. image,index= 0,media= disk \ virtio- net-pci, ipv6=off \ seabios- test/seabios/ out/bios. bin
$ git clone -b 1.10-stable https:/
$ cd seabios
$ make
$ qemu-system-x86_64 \
-drive if=virtio,
-M q35,accel=kvm -m 350M -cpu host -smp $(nproc) \
-nic user,model=
-nographic -bios /home/oc/
Result:
I can interact with NetBSD boot menu and select one of the available options.
Host:
Linux e130 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64 GNU/Linux
QEMU emulator version 4.2.0