From owner-freebsd-current@freebsd.org Tue Jan 5 01:58:15 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D97374D44EF for ; Tue, 5 Jan 2021 01:58:15 +0000 (UTC) (envelope-from vidwer@gmail.com) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D8wd25bV4z4pVX for ; Tue, 5 Jan 2021 01:58:14 +0000 (UTC) (envelope-from vidwer@gmail.com) Received: by mail-ot1-x334.google.com with SMTP id r9so27912796otk.11 for ; Mon, 04 Jan 2021 17:58:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=j5o+oEeU5bEjqtnD0zpQlboP2sRMThElANjJFMrZa6Y=; b=b1GevzPjw5srrd0Noxb0+8PwQkJxTLVDjM5qDwVK2dlqV+VkrAEBe+0ageGvAUJj3H FTEFsLZsBxH2/kD+PuVBx5qm38z6u1WAjfMaNKsJZrjeir2tRflCWviuj7EYoOBsA+Yo gYcU4UecFeUE+915uLaXsST57VFUa6TrkHvOgSjl+h+8LByptsXIrdPG8kMVXQPMcjYd 00Q5PsO5eVBsxMI9BvGj2bpE7hQgfBLGHrtzEEbsxBbfjNba0PpmJqespiqo9r0F7ng/ U7XuqnD+dMzv65V0lekTSqJ+A73Knyk4SFhu1TFccNsfcJClDbiTjFwOzHLeep/C42Fo MIJQ== X-Gm-Message-State: AOAM5314jsXkU4+yDYRQKwTQuzAfTmE+x6kuhbbEASZ1NtvDR550w5eD MdUUX9SLkdnOneCZoVh9a5kHBMUxT2XqSn+Hp6n7Qxc56Y1TkA== X-Google-Smtp-Source: ABdhPJwaSD3YfPTYE4UsifVhbGC2uz/5HVRiYZyILpwBIupN+dfNFilARjGrwjJ4SDCg1Pm0afkc1VwnUD/zopQDwso= X-Received: by 2002:a05:6830:20c2:: with SMTP id z2mr31017809otq.322.1609811893745; Mon, 04 Jan 2021 17:58:13 -0800 (PST) MIME-Version: 1.0 References: <83EB3B04-EAE8-4EC3-820B-2F5C3BADE948@me.com> <66908803-BA6F-4538-9D93-6F85A95108C9@me.com> In-Reply-To: <66908803-BA6F-4538-9D93-6F85A95108C9@me.com> From: Idwer Vollering Date: Tue, 5 Jan 2021 02:58:02 +0100 Message-ID: Subject: Re: boot loader blank screen To: Toomas Soome Cc: John Kennedy , Current FreeBSD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4D8wd25bV4z4pVX X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[me.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::334:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::334:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::334:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2021 01:58:15 -0000 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 : > > > > > On 4. Jan 2021, at 18:30, Toomas Soome wrote: > > > > > > > >> On 4. Jan 2021, at 18:22, John Kennedy 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= "