NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-amd64/61043: Makefile.efiboot allows user-defined COPTS and CPUFLAGS
>Number: 61043
>Category: port-amd64
>Synopsis: Makefile.efiboot allows user-defined COPTS and CPUFLAGS
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-amd64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 22 17:40:00 +0000 2026
>Originator: lg
>Release: 11.0
>Organization:
>Environment:
NetBSD netbsd-vm 11.0_STABLE NetBSD 11.0_STABLE (GENERIC) #0: Tue Nov 3 16:04:49 EST 2026 root@devuan-vm:/root/netbsd/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
Custom-built images produced by the install-image and live-image targets fail to boot on real hardware when booted via UEFI. During boot, the screen gets filled with memory ranges like 0x... - 0x... . BIOS boot works on both real hardware and in a virtual machine. Official release image boots via UEFI on the same hardware.
mk.conf:
BUILDSEED!= date +%s
COPTS+=-O2
CPUFLAGS+=-march=znver2 -mtune=znver2
MAKEVERBOSE=1
MKAMDGPUFIRMWARE=no
MKATF=no
MKCATPAGES=no
MKCOMPAT=no
MKCTF=no
MKDTB=no
MKDTC=no
MKDTRACE=no
MKGROFF=no
MKHESIOD=no
MKHTML=no
MKIEEEFP=no
MKINFO=no
MKIPFILTER=no
MKISCSI=no
MKKERBEROS=no
MKLDAP=no
MKLLVMRT=no
MKLVM=no
MKMDNS=no
MKNOUVEAUFIRMWARE=yes
MKPF=no
MKPIGZGZIP=yes
MKPOSTFIX=no
MKRADEONFIRMWARE=no
MKSKEY=no
MKUNBOUND=no
MKX11=no
MKXORG_SERVER=no
MKYP=no
MKZFS=no
USE_FORT=yes
USE_PIGZGZIP=yes
USE_SSP=yes
build commands:
./build.sh -U -j4 -m amd64 -a x86_64 -O ../obj -T ../tools -V MAKECONF=/etc/mk.conf tools &&
./build.sh -U -u -j4 -m amd64 -a x86_64 -O ../obj -T ../tools -V MAKECONF=/etc/mk.conf -V MAKEFLAGS="MKXORG_SERVER=no" release &&
./build.sh -U -u -j4 -m amd64 -a x86_64 -O ../obj -T ../tools -V MAKECONF=/etc/mk.conf -V MAKEFLAGS="MKXORG_SERVER=no" live-image
build env: netbsd 11.0 amd64
sources tree: netbsd 11.1 amd64
>How-To-Repeat:
1. download source tree
2. build it as described above
3. write an image to usb stick
4. boot via uefi on real hardware
>Fix:
overriding COPTS and CPUFLAGS in sys/arch/i386/stand/efiboot/Makefile.efiboot solved the problem for me: the image was successfully booted on real hardware.
Home |
Main Index |
Thread Index |
Old Index