NetBSD Problem Report #59756
From bernd@fluor.bersie.home Thu Nov 13 13:37:06 2025
Return-Path: <bernd@fluor.bersie.home>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 06C311A9239
for <gnats-bugs@gnats.NetBSD.org>; Thu, 13 Nov 2025 13:37:06 +0000 (UTC)
Message-Id: <20251113132826.8C6799815A4@fluor.bersie.home>
Date: Thu, 13 Nov 2025 14:28:26 +0100 (CET)
From: bernd.sieker@posteo.net
Reply-To: bernd.sieker@posteo.net
To: gnats-bugs@NetBSD.org
Subject: NetBSD 10.1 UEFI bootloader does not work on ASRock Rack B650D4U mainboard with EPYC 4005 series CPU
X-Send-Pr-Version: 3.95
>Number: 59756
>Category: port-amd64
>Synopsis: NetBSD 10.1 UEFI bootloader does not work on ASRock Rack B650D4U mainboard with EPYC 4005 series CPU
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-amd64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 13 13:40:00 +0000 2025
>Last-Modified: Sat Nov 15 00:00:01 +0000 2025
>Originator: bernd.sieker@posteo.net
>Release: NetBSD 10.1
>Organization:
>Environment:
System: NetBSD fluor.bersie.home 10.1 NetBSD 10.1 (FLUOR) #38: Tue Jan 21 08:19:05 CET 2025 bernd@fluor.bersie.home:/usr/src/sys/arch/amd64/compile/FLUOR amd64
Architecture: x86_64
Machine: amd64
>Description:
The system is an ASRock Rack B650D4U server mainboard with an AMD
EPYC 4465P CPU and two M.2 nvme SSDs.
I have used gpt to create EFI system partitions on both SSDs of
various sizes (64M to 640M) tried formatting FAT16 or FAT32, mounted
it with or without long names enabled, created the efi/boot folder
and copied bootx64.efi from /usr/mdec into it.
Whenever the system is set to UEFI boot, only a blank screen with
a cursor on the upper left is shown.
The machine can boot other uefi bootloaders just fine, I tested
rEFInd in various configurations.
I also tried using an older version of NetBSD's bootx64.efi from
a system I installed in 2021, with the same result. Either version
of that bootloader worked fine on Dell T110, Dell T320 and Dell
T420 systems with different Intel Xeon CPUs.
I also tried rEFInd to load the NetBSD bootloader, with the same
result (blank screen, cursor in the top left).
I tested BIOS versions 21.08 and 22.03 (all new) on the
mainboard.
The USB install image (self-built on another amd64 system, as well
as directly downloaded from netbsd.org) exhibits the same behaviour.
The problem appears to be the combination of this ASRock Rack
mainboard and/or AMD CPU with the NetBSD uefi bootloader.
The NetBSD bootloader works fine with the Dell/Xeon systems, and
the ASRock/AMD system boots fine with rEFInd.
I don't know if other CPUs will work on this mainboard.
Legacy booting works without problems and the systems runs just
fine.
>How-To-Repeat:
Install efi boot partition with NetBSD's bootx64.efi on ASRock Rack
B650D4U mainboard with EPYC 4005 series CPU. Reboot system in UEFI
mode, observe hanging bootloader.
>Fix:
Fix is unknown to me. Workaround is to boot in legacy ("BIOS") mode.
>Audit-Trail:
From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc: Paul Ripke <stix@stix.id.au>
Subject: Re: port-amd64/59756: NetBSD 10.1 UEFI bootloader does not work on
ASRock Rack B650D4U mainboard with EPYC 4005 series CPU
Date: Fri, 14 Nov 2025 06:51:08 +0000 (UTC)
On Thu, 13 Nov 2025, bernd.sieker@posteo.net wrote:
>> Description:
> The system is an ASRock Rack B650D4U server mainboard with an AMD
> EPYC 4465P CPU and two M.2 nvme SSDs.
> [...]
> Whenever the system is set to UEFI boot, only a blank screen with
> a cursor on the upper left is shown.
>
Maybe the same as: PR misc/59151: efiboot hangs on new motherboard.
Can you see if Paul's patch works for you?
-RVP
From: Bernd Sieker <bernd.sieker@posteo.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-amd64/59756: NetBSD 10.1 UEFI bootloader does not work on
ASRock Rack B650D4U mainboard with EPYC 4005 series CPU
Date: Fri, 14 Nov 2025 22:47:44 +0000
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------qVPDo6mMd53o00YiVjux6sZ6
Content-Type: multipart/mixed; boundary="------------PLVvCLsIsBUy7SGHTNiaaz8d";
protected-headers="v1"
From: Bernd Sieker <bernd.sieker@posteo.net>
To: gnats-bugs@netbsd.org
Message-ID: <903c7e9c-3ded-44c6-abb2-290c5470e07e@posteo.net>
Subject: Re: port-amd64/59756: NetBSD 10.1 UEFI bootloader does not work on
ASRock Rack B650D4U mainboard with EPYC 4005 series CPU
References: <pr-port-amd64-59756@gnats.netbsd.org>
<20251113132826.8C6799815A4@fluor.bersie.home>
<20251114065501.804051A923A@mollari.NetBSD.org>
In-Reply-To: <20251114065501.804051A923A@mollari.NetBSD.org>
--------------PLVvCLsIsBUy7SGHTNiaaz8d
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
T24gMTQuMTEuMjUgMDc6NTUsIFJWUCB2aWEgZ25hdHMgd3JvdGU6DQo+IFRoZSBmb2xsb3dp
bmcgcmVwbHkgd2FzIG1hZGUgdG8gUFIgcG9ydC1hbWQ2NC81OTc1NjsgaXQgaGFzIGJlZW4g
bm90ZWQgYnkgR05BVFMuDQo+IA0KPiBGcm9tOiBSVlAgPHJ2cEBTREYuT1JHPg0KPiBUbzog
Z25hdHMtYnVnc0BuZXRic2Qub3JnDQo+IENjOiBQYXVsIFJpcGtlIDxzdGl4QHN0aXguaWQu
YXU+DQo+IFN1YmplY3Q6IFJlOiBwb3J0LWFtZDY0LzU5NzU2OiBOZXRCU0QgMTAuMSBVRUZJ
IGJvb3Rsb2FkZXIgZG9lcyBub3Qgd29yayBvbg0KPiAgIEFTUm9jayBSYWNrIEI2NTBENFUg
bWFpbmJvYXJkIHdpdGggRVBZQyA0MDA1IHNlcmllcyBDUFUNCj4gRGF0ZTogRnJpLCAxNCBO
b3YgMjAyNSAwNjo1MTowOCArMDAwMCAoVVRDKQ0KPiANCj4gICBPbiBUaHUsIDEzIE5vdiAy
MDI1LCBiZXJuZC5zaWVrZXJAcG9zdGVvLm5ldCB3cm90ZToNCj4gICANCj4gICA+PiBEZXNj
cmlwdGlvbjoNCj4gICA+IFRoZSBzeXN0ZW0gaXMgYW4gQVNSb2NrIFJhY2sgQjY1MEQ0VSBz
ZXJ2ZXIgbWFpbmJvYXJkIHdpdGggYW4gQU1EDQo+ICAgPiBFUFlDIDQ0NjVQIENQVSBhbmQg
dHdvIE0uMiBudm1lIFNTRHMuDQo+ICAgPiBbLi4uXQ0KPiAgID4gV2hlbmV2ZXIgdGhlIHN5
c3RlbSBpcyBzZXQgdG8gVUVGSSBib290LCBvbmx5IGEgYmxhbmsgc2NyZWVuIHdpdGgNCj4g
ICA+IGEgY3Vyc29yIG9uIHRoZSB1cHBlciBsZWZ0IGlzIHNob3duLg0KPiAgID4NCj4gICAN
Cj4gICBNYXliZSB0aGUgc2FtZSBhczogUFIgbWlzYy81OTE1MTogZWZpYm9vdCBoYW5ncyBv
biBuZXcgbW90aGVyYm9hcmQuDQo+ICAgDQo+ICAgQ2FuIHlvdSBzZWUgaWYgUGF1bCdzIHBh
dGNoIHdvcmtzIGZvciB5b3U/DQo+ICAgDQo+ICAgLVJWUA0KPiAgIA0KDQpUaGFua3MuDQoN
Ckl0IHdvcmtzIGhhbGZ3YXkuIFRoZSBlZmkgYm9vdGxvYWRlciBub3cgbG9hZHMgYW5kIGRp
c3BsYXlzIHRoZSBOZXRCU0QgDQpib290IG1lbnUsIGJ1dCBhZnRlciBpdCBsb2FkcyB0aGUg
a2VybmVsLCB0aGUgc2NyZWVuIGdvZXMgYmxhbmsgYW5kIA0Kc3RheXMgdGhhdCB3YXkuDQoN
Cg==
--------------PLVvCLsIsBUy7SGHTNiaaz8d--
--------------qVPDo6mMd53o00YiVjux6sZ6
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"
-----BEGIN PGP SIGNATURE-----
wsF5BAABCAAjFiEEGdLSZYNxjRAmF1WIfcJc3LCL4uUFAmkXsY8FAwAAAAAACgkQfcJc3LCL4uUw
nxAAtMgpQ3z1auLQ7KKfqixVYtklRcepeatU8R2CA7ps523UFhqHrl7NWc17tHj1TjQU5y7sJ66m
8fKXAIbSuKYrGINJFEtQ06kdjFtzaL6C78xt66R/WoIr2YM4t0X0aCO59q9fTOnUy/2lI29i7YX0
4wcwtAL97BO3WJy6YX2vWLOdaoGGEVpTsYkBrnOqaE9Fl7qLkXCzL02UUw6jIJl9gQ8urYwH2Dws
8axd5sIxPboolgMM/X1AmkwwtnHchvsOMwGQ1e+N0RNNhJvEqr5PF4VNgOwFF5hf9sfWZPWKuJz8
pr+f2Xxuw6MlKTKtockEWujVigxvUXYylKl7ULDXOqfDEEMZS6vVn/ClOLFDvvhhqTxa+lfijJpy
sbRMXYxnjNzWQFg+6nvXGqjSW/4IHGXtoVSdhMM+RDaHhNiqICK2Fz/eIB//lCYSX8B7Nc+piyKL
t+EjpL0L1wAMm3izN4lHKiqOAVjwuKMqUM4d1A/4QWo826/EIdHS/0/HLHBrcj9OKUzk7QjTPL5h
B1BhdL7jMNw3b5fKMjv3AmeGAIHuwkLmzB3Uikr3ffXiktdBZaHwpyeSoTscKTTfp2VTWy0ubDrm
MHprjYow5v/79kG62/0QsO9FutW48JT207HBwzTrZLBAnF4HarH0TXaLjXQ31QOHCxQaBz+Y55H8
+jM=
=Pfxs
-----END PGP SIGNATURE-----
--------------qVPDo6mMd53o00YiVjux6sZ6--
From: Bernd Sieker <bernd.sieker@posteo.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-amd64/59756: NetBSD 10.1 UEFI bootloader does not work on
ASRock Rack B650D4U mainboard with EPYC 4005 series CPU
Date: Fri, 14 Nov 2025 23:27:41 +0000
On 14.11.25 07:55, RVP via gnats wrote:
> The following reply was made to PR port-amd64/59756; it has been noted by GNATS.
>
> From: RVP <rvp@SDF.ORG>
> To: gnats-bugs@netbsd.org
> Cc: Paul Ripke <stix@stix.id.au>
> Subject: Re: port-amd64/59756: NetBSD 10.1 UEFI bootloader does not work on
> ASRock Rack B650D4U mainboard with EPYC 4005 series CPU
> Date: Fri, 14 Nov 2025 06:51:08 +0000 (UTC)
>
> On Thu, 13 Nov 2025, bernd.sieker@posteo.net wrote:
>
> >> Description:
> > The system is an ASRock Rack B650D4U server mainboard with an AMD
> > EPYC 4465P CPU and two M.2 nvme SSDs.
> > [...]
> > Whenever the system is set to UEFI boot, only a blank screen with
> > a cursor on the upper left is shown.
> >
>
> Maybe the same as: PR misc/59151: efiboot hangs on new motherboard.
>
> Can you see if Paul's patch works for you?
>
> -RVP
>
Thanks.
It works halfway. The efi bootloader now loads and displays the NetBSD
boot menu, but after it loads the kernel, the screen goes blank and
stays that way. It does not appear to boot, e. g. no dhcp packets are seen.
Bernd
From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-amd64/59756: NetBSD 10.1 UEFI bootloader does not work on
ASRock Rack B650D4U mainboard with EPYC 4005 series CPU
Date: Fri, 14 Nov 2025 23:59:39 +0000 (UTC)
On Fri, 14 Nov 2025, Bernd Sieker via gnats wrote:
> It works halfway. The efi bootloader now loads and displays the NetBSD
> boot menu, but after it loads the kernel, the screen goes blank and
> stays that way. It does not appear to boot, e. g. no dhcp packets are seen.
>
Does booting in uniprocessor mode work?
boot -1
at the bootloader prompt. (https://man.netbsd.org/amd64/boot.8)
-RVP
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.