Re: NetBSD still fails to boot on a MacBook7,1
"Greg A. Woods" <[email protected]> Sat, 20 Dec 2025 11:47:12 -0800
| Newsgroups | gmane.os.netbsd.ports.x86-64,gmane.os.netbsd.current |
|---|---|
| Organization | Planix, Inc. |
| Message-ID | <[email protected]> |
--pgp-sign-Multipart_Sat_Dec_20_11:47:10_2025-1 Content-Type: text/plain; charset=US-ASCII At Sat, 20 Dec 2025 12:24:03 +0000 (UTC), RVP <[email protected]> wrote: Subject: Re: NetBSD still fails to boot on a MacBook7,1 > > Looking at that screenshot again however, it still looks very much like what > would happen if there was some mis-agreement between the bootloader and the > kernel. The bootloader seems to be running with the default mini vga emulation done by the EFI firmware. When the kernel starts it takes over the whole display and I would expect that's where it changes something in the hardware configuration. I see something similar when macos boots with full boot message verbosity enabled ("nvram boot-args="-v"). First you get the small-box/window VGA emulated EFI boot messages, then when the kernel starts it switches to full-screen and the kernel and startup messages appear at a higher resolution and with many more lines and columns. Something changed between NetBSD-7.0 and NetBSD-8.0 in the way the kernel resets the display hardware and it hasn't worked since 7.0. I still don't think anyone has pointed directly at the code which does this, and I haven't easily been able to find it, and so I still don't know where to bisect/blame it to find the bug. > Is the bootloader the one built along with the kernel, or a very old one? > (the kernel version it was built against should be printed in the banner.) It's all from the same "build.sh" invocation. I make an install image, copy it to the USB disk fob, and try to boot from it (using rEFInd). In this latest test case the boot "version" command reports: >> NetBSD/x86 EFI Boot (x64), Revision 1.2 (Sat Dec 6 08:56:07 UTC 2025) (from NetBSD 11.99.4) >> Memory: 572/2882560 K (BTW, the boot loader scrolls half the "help" response off the top of the screen, and before I drop to the boot prompt there appears to be some text displayed and quickly replaced with the boot menu (which has the options of (1) install, (2) drop to boot prompt). I truly hate screen-based firmware and bootloaders -- give me a serial port and plain line-by-line input and output!!! Maybe the recent ucom console will eventually be usable for better debugging of laptops, but perhaps not, depending on the built-in firmware -- in this case I would at least be able to read what the kernel prints before it hangs!) -- Greg A. Woods <[email protected]> Kelowna, BC +1 250 762-7675 RoboHack <[email protected]> Planix, Inc. <[email protected]> Avoncote Farms <[email protected]> --pgp-sign-Multipart_Sat_Dec_20_11:47:10_2025-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit Content-Description: OpenPGP Digital Signature -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCaUb9QAAKCRBmfXG3eL/0 f7QGAKCZu52tKokySv0TqajFT5M39iyTqwCg7FqsWxU59U5FjtWGJkTTM7uvCuc= =LyaY -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sat_Dec_20_11:47:10_2025-1--