Date: Tue, 5 Jan 2021 02:58:02 +0100 From: Idwer Vollering <vidwer@gmail.com> To: Toomas Soome <tsoome@me.com> Cc: John Kennedy <warlock@phouka.net>, Current FreeBSD <freebsd-current@freebsd.org> Subject: Re: boot loader blank screen Message-ID: <CAPp9Or=tTzXoj-WRvX9LNJHKKeShW7oozNm3FiTQ2yTxodSmXA@mail.gmail.com> In-Reply-To: <66908803-BA6F-4538-9D93-6F85A95108C9@me.com> References: <X/NA4Jk/P%2Bih5WSD@phouka1.phouka.net> <83EB3B04-EAE8-4EC3-820B-2F5C3BADE948@me.com> <66908803-BA6F-4538-9D93-6F85A95108C9@me.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Toomas, I had more success with this patch, applied on top of 7beeacb27b27 (in other words: call vbe_is_vga() from cons_update_mode() instead of vidc_install_font() ): diff --git a/stand/i386/libi386/vbe.c b/stand/i386/libi386/vbe.c index 7681eb633b8..1fee4f040f4 100644 --- a/stand/i386/libi386/vbe.c +++ b/stand/i386/libi386/vbe.c @@ -1105,6 +1105,15 @@ vbe_default_mode(void) return (modenum); } +bool +vbe_is_vga(void) +{ + if (vbe =3D=3D NULL) + return (false); + + return ((vbe->Capabilities & VBE_CAP_NONVGA) =3D=3D 0); +} + COMMAND_SET(vbe, "vbe", "vesa framebuffer mode management", command_vesa); int diff --git a/stand/i386/libi386/vbe.h b/stand/i386/libi386/vbe.h index ff28b960df9..7d07d9ee518 100644 --- a/stand/i386/libi386/vbe.h +++ b/stand/i386/libi386/vbe.h @@ -161,3 +161,4 @@ int vbe_set_mode(int); int vbe_get_mode(void); int vbe_set_palette(const struct paletteentry *, size_t); void vbe_modelist(int); +bool vbe_is_vga(void); diff --git a/stand/i386/libi386/vidconsole.c b/stand/i386/libi386/vidconsol= e.c index b4829db1ea4..22708032a49 100644 --- a/stand/i386/libi386/vidconsole.c +++ b/stand/i386/libi386/vidconsole.c @@ -907,7 +907,8 @@ cons_update_mode(bool use_gfx_mode) unsetenv("screen.width"); unsetenv("screen.depth"); unsetenv("kern.vt.fb.default_mode"); - vidc_install_font(); + if (!vbe_is_vga()) + vidc_install_font(); } free(screen_buffer); Op ma 4 jan. 2021 om 23:59 schreef Toomas Soome <tsoome@me.com>: > > > > > On 4. Jan 2021, at 18:30, Toomas Soome <tsoome@me.com> wrote: > > > > > > > >> On 4. Jan 2021, at 18:22, John Kennedy <warlock@phouka.net> wrote: > >> > >> This is a little weird. > >> > >> Somewhere between 13.0-g2ff66a915526 (Dec 30th) and -gd03fd8ede2c4 (De= c 29th), > >> I've lost the screen in the boot loader. This is really weird because= I > >> didn't update the boot loader (in quite a while, actually), but I supp= ose it > >> might drag some stuff off of the disk and misbehave. > >> > >> But the system boots, presumably after the countdown that I can't see,= I just > >> have to SSH in from a different machine to tweak things. Just no scre= en at > >> all past the GELI encrypted disk password prompt (and some usual noise= as > >> it complains about some padding that I've seen forever). > >> > >> I used to just upgrade the boot loader around ZFS upgrades, and I have= n't > >> done that since OpenZFS got merged. I just got overly conservative th= ere > >> and may have missed the "all clear" for all combinations of ZFS and th= e > >> bootloader recognizing them. > >> > >> The git logs in /usr/src aren't time-sequential, so maybe I shouldn't = trust > >> those dates above (I pulled it ~Jan 3rd and let it compile overnight),= but > >> I'm going to repull all the sources and recompile, just in case. I mi= ght > >> have initiall pulled it during the git conversion and maybe it is conf= used. > >> > > > > hi! > > > > Yes, it is known defect, and I=E2=80=99m searching for cause; the issue= is with /boot/loader and BIOS text mode (unfortunately I have the usual = =E2=80=98but it is working for me=E2=80=99 case). For workaround, you can t= ry to either: 1 (blind) press esc to get out of boot menu, then enter: vbe = on; another option is to add hw.vga.textmode=3D=E2=80=9C0=E2=80=9D to loade= r.conf. > > > > Sorry for confusion, > > toomas > > > > the 58661b3ba9eb should hopefully fix the loader text mode issue, it woul= d be cool if you can verify:) > > thanks, > toomas > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= "
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPp9Or=tTzXoj-WRvX9LNJHKKeShW7oozNm3FiTQ2yTxodSmXA>