tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sysutils/grub2: multiboot is still working?





Le 2018-08-01 19:02, Robert Swindells a écrit :
Frédéric Fauberteau <triaxx%NetBSD.org@localhost> wrote:
grub-mkconfig generates (in a submenu) lines for both boot methods:
- knetbsd
- multiboot
but when I select the multiboot choice, I get the following errors:
--- grub error ---
error: no multiboot header found.
error: kernel must be loaded first.

Press key to continue... (approximate translation since messages are
i18ned)
--- /grub error ---

The line from grub.cfg is:
    multiboot /netbsd /netbsd root=dk3  -z
but
    multiboot /netbsd
does not work either

I plan to investigate, but if multiboot is broken, the reason becomes
obvious...

Have you got MULTIBOOT defined in your kernel config ?

$ uname -v
NetBSD 8.0 (HYDRALISK) #1: Tue Jul 31 18:43:06 CEST 2018 root@hydralisk:/usr/obj/sys/arch/amd64/compile/HYDRALISK
$ grep MULTIBOOT /usr/src/sys/arch/amd64/conf/HYDRALISK
options         MULTIBOOT

Is there a reason why you don't want to use the NetBSD bootloader ?

I don't want to not use /boot. I use it on other boxes. On hydralisk, I use GRUB to maintain sysutils/grub2.

Home | Main Index | Thread Index | Old Index