Re: EFI Boot problem

Peter Skvarka <[email protected]> Tue, 18 Feb 2025 19:05:36 +0100
Newsgroups gmane.os.netbsd.devel.installation
Message-ID <[email protected]>
I rebuild bootx64.efi with several printf() messages and found where in 
the code is problem.

code enters into:
perform_bootcfg(const char *conf, bootcfg_command command, const off_t 
maxsz)

and inside this funtion it enters into
fd = open(conf, 0);
(bootcfg.c#119)

and hangs inside of open().

open() uses config path from:
#define EFIBOOTCFG_FILENAME     "esp:/EFI/NetBSD/boot.cfg"
it is seen on my printf messages.

I have present valid boot.cfg there.
When I remove boot.cfg the result is the same, it hangs inside of open()

Why open() is not work on that older machine ?
Any ideas ?


On 2/16/25 20:37, Peter Skvarka wrote:
> Hello,
> I am trying to boot installed NetBSD 10.1 on older HP machine HP Compaq 
> Elite 8300. System disk is GPT and contains Window Server OS and above 
> fresh NetBSD installation.
> I am using rEFInd for dual-boot.
> 
> Problem is that after selecting NetBSD boot entry there does not appear 
> text-mode icon with:
> ...NetBSD/x86 EFI Boot (x64)...
> 
> There only appears some address ranges quickly scrolling up and then it 
> stops.
> 
> But
> when I boot from USB key and use manual boot parameters to boot OS from 
> disk:
> boot NAME=NetBSD:netbsd then OS on the disk successfully starts up.
> 
> I tried to rewrite bootx64.efi on EFI partition with /usr/mdec/bootx64.efi
> or with bootx64.efi present on USB key, it does not help.
> I don't know to explain myself this behavior.
> 
> Dmesg is in attachment. My NetBSD installation is on wd0 dk4.
> Any ideas ?