Re: UEFI boot NetBSD?

2017-10-10 Thread Michael van Elst
mueller6...@twc.com ("Thomas Mueller") writes:

>So how would the load or boot code find the kernel?

The EFI-bootloader finds /boot.cfg in the EFI partitition and
can be directed to load the kernel from the root partitition,
i.e. something like "boot hd0b:netbsd".

-- 
-- 
Michael van Elst
Internet: mlel...@serpens.de
"A potential Snark may lurk in every tree."


Re: UEFI boot NetBSD?

2017-10-10 Thread Thomas Mueller

> On Tue, Oct 10, 2017 at 03:03:22AM +, Thomas Mueller wrote:
> > Is it currently possible to boot newer versions of NetBSD in UEFI mode?

> -8 and -current should work, but the installer has not yet been updated
> to reflect it.

> > How would the boot/load code know where to find the root partition to boot?

> FreeBSD and NetBSD use different GUIDs for the root partition type.
> AFAICT the bootloader itself does not offer manual selection for
> multiple root  partitions, but you could use boot.cfg statements or
> special kernels with hard wired root device to select between them.

> Martin

If I try to boot /usr/mdec/bootx64.efi or bootia32.efi, these files might be 
copied to EFI system partition, so I would not be at the NetBSD kernel yet.

So how would the load or boot code find the kernel?

I might not need the root partition hard-wired; I could boot (kernel) -a .

Tom


Re: UEFI boot NetBSD?

2017-10-09 Thread Martin Husemann
On Tue, Oct 10, 2017 at 03:03:22AM +, Thomas Mueller wrote:
> Is it currently possible to boot newer versions of NetBSD in UEFI mode?

-8 and -current should work, but the installer has not yet been updated
to reflect it.

> How would the boot/load code know where to find the root partition to boot?

FreeBSD and NetBSD use different GUIDs for the root partition type.
AFAICT the bootloader itself does not offer manual selection for
multiple root  partitions, but you could use boot.cfg statements or
special kernels with hard wired root device to select between them.

Martin