test: the UEFI stick is smoke-tested on the VGA screen (t0086)
vm-screendump.sh -U boots a raw stick image in OVMF and test.sh reads the screen.
The serial line of a UEFI boot ends at efiboot's ':-(' because the kernel console is the
framebuffer; the stick does boot to sysinst (measured 2026-11-17, OVMF, 10 GiB image).
This commit is contained in:
1 parent
f5a5d1efc4
commit
f515106b5b
2 files changed
+36
-12
No files matched your search
+24
-7
@@ -13,9 +13,9 @@
|
||||
# 3. install-simple.sh -B the smoke tests of the other media: they boot to the
|
||||
# disk menu, which offers the target and not the
|
||||
# medium itself (CD 1, the stick, BIOS and UEFI)
|
||||
# The stick under UEFI is not smoke-tested: its loader takes the serial port only
|
||||
# on a key (eficons.c) and the stick's boot.cfg sits in a FFS this host cannot
|
||||
# edit; it came up to sysinst on the VGA screen (screendump, 2026-11-08).
|
||||
# The stick under UEFI is smoke-tested on the VGA screen (vm-screendump.sh -U, read
|
||||
# with tesseract): its loader takes the serial port only on a key (eficons.c) and
|
||||
# the kernel's console is the framebuffer, so the serial line says nothing.
|
||||
# Not run here, only when sysinst, the loader or the cgd code changed:
|
||||
# install-cgd.sh (BIOS and UEFI).
|
||||
#
|
||||
@@ -64,10 +64,27 @@ run smoke-cd1-bios "$TOP/tools/install-simple.sh" -B -f bios
|
||||
run smoke-cd1-uefi "$TOP/tools/install-simple.sh" -B -f uefi
|
||||
run smoke-usb-bios "$TOP/tools/install-simple.sh" -B -f bios -U "$USB"
|
||||
run smoke-usbmbr-bios "$TOP/tools/install-simple.sh" -B -f bios -U "$USBBIOS"
|
||||
# No UEFI test of a stick: NetBSD efiboot stops with ":-(" when OVMF boots it
|
||||
# from a USB disk, with or without /source, 3 GB or 7 GB
|
||||
# (build/logs/test-smoke-usb-uefi-2026-11-09.log); the same GPT image boots a
|
||||
# MacBookPro8,1 via EFI (docs/PLATFORMS.md). The UEFI path is tested on the CD.
|
||||
# The UEFI stick: OVMF boots the GPT stick and the screen shows sysinst's language
|
||||
# menu. Looked at the VGA screen (vm-screendump.sh -U), not at the serial line:
|
||||
# after efiboot the kernel's console is wscons on the framebuffer, so a serial log
|
||||
# ends at efiboot's last line (":-(" with the memory map before it) although the
|
||||
# boot goes on -- measured 2026-11-17 (the earlier note here took that for a hang).
|
||||
uefi_stick_boot()
|
||||
{
|
||||
shot=$L/usb-uefi-$DAY.ppm
|
||||
if ! "$TOP/tools/vm-screendump.sh" -f uefi -t 70 -U "$USB" -o "$shot"; then
|
||||
echo "FAIL: no screen dump of the stick in OVMF"
|
||||
return 1
|
||||
fi
|
||||
txt=$(convert "$shot" png:- | tesseract stdin stdout 2>/dev/null)
|
||||
case $txt in
|
||||
*"Installation messages in English"*)
|
||||
echo "PASS: the GPT stick boots under UEFI (OVMF) to sysinst" ;;
|
||||
*) echo "FAIL: no sysinst menu on the screen of the UEFI stick ($shot)"
|
||||
return 1 ;;
|
||||
esac
|
||||
}
|
||||
run smoke-usb-uefi uefi_stick_boot
|
||||
[ $QUICK = yes ] || run install-dvd "$TOP/tools/install-simple.sh" -S
|
||||
# The GPT stick (the image a Mac boots) carries /source (patch 0018): one full
|
||||
# installation from it, through its BIOS path, checks that sysinst installs them.
|
||||
|
||||
+12
-5
@@ -2,12 +2,13 @@
|
||||
# License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree.
|
||||
# vm-screendump.sh -- boot a CD or a disk once and save what the screen shows.
|
||||
#
|
||||
# usage: vm-screendump.sh [-f bios|uefi] [-t seconds] [-i iso | -d disk] -o file.ppm
|
||||
# usage: vm-screendump.sh [-f bios|uefi] [-t seconds] [-i iso | -d disk | -U stick] -o file.ppm
|
||||
#
|
||||
# For the question "the serial console is silent: where is the output?". The
|
||||
# machine has a VGA card, the serial line goes to <file>.serial, and after the
|
||||
# time limit the QEMU monitor writes the screen to <file> (PPM). The medium
|
||||
# is attached read-only (a CD) or as given (a disk). Default medium: the CD
|
||||
# is attached read-only (a CD) or as given (a disk); -U is an install stick (a raw
|
||||
# image, as a USB disk, writes go to a scratch overlay). Default medium: the CD
|
||||
# this tree built.
|
||||
#
|
||||
# Exit status: 0 the dump exists, 1 anything else.
|
||||
@@ -19,22 +20,24 @@ TOP=$(cd "$(dirname "$0")/.." && pwd)
|
||||
VER=$(cat "$TOP/src/sys/conf/makronix-release")
|
||||
ISO=$TOP/build/obj/releasedir/images/Makronix-$VER-amd64.iso
|
||||
DISK=
|
||||
USB=
|
||||
FW=bios
|
||||
SECS=70
|
||||
OUT=
|
||||
|
||||
usage()
|
||||
{
|
||||
echo "usage: ${0##*/} [-f bios|uefi] [-t seconds] [-i iso | -d disk] -o file.ppm" >&2
|
||||
echo "usage: ${0##*/} [-f bios|uefi] [-t seconds] [-i iso | -d disk | -U stick] -o file.ppm" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
while getopts f:t:i:d:o: ch; do
|
||||
while getopts f:t:i:d:U:o: ch; do
|
||||
case $ch in
|
||||
f) FW=$OPTARG ;;
|
||||
t) SECS=$OPTARG ;;
|
||||
i) ISO=$OPTARG; DISK= ;;
|
||||
d) DISK=$OPTARG ;;
|
||||
U) USB=$OPTARG; DISK= ;;
|
||||
o) OUT=$OPTARG ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
@@ -56,7 +59,11 @@ uefi)
|
||||
-drive "if=pflash,format=raw,file=$D/vars.fd" ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
if [ -n "$DISK" ]; then
|
||||
if [ -n "$USB" ]; then
|
||||
set -- "$@" -device qemu-xhci,id=xhci \
|
||||
-drive "file=$USB,if=none,id=usb0,format=raw,snapshot=on" \
|
||||
-device usb-storage,drive=usb0,bootindex=0
|
||||
elif [ -n "$DISK" ]; then
|
||||
set -- "$@" -drive "file=$DISK,if=ide,index=0,format=qcow2"
|
||||
else
|
||||
set -- "$@" -drive "file=$ISO,media=cdrom,readonly=on,if=ide,index=2" \
|
||||
|
||||
Reference in new issue
Block a user