From nobody Mon Sep 26 06:28:35 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MbXrn5Xt4z4d4DK; Mon, 26 Sep 2022 06:28:41 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MbXrm3S3Gz4QC8; Mon, 26 Sep 2022 06:28:40 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id cR90oHX99Sp39chbbovZ79; Mon, 26 Sep 2022 06:28:39 +0000 Received: from spqr.komquats.com ([70.66.148.124]) by cmsmtp with ESMTPA id chbYoLASslQu6chbZoo1jv; Mon, 26 Sep 2022 06:28:38 +0000 X-Authority-Analysis: v=2.4 cv=YfOuWidf c=1 sm=1 tr=0 ts=63314696 a=Cwc3rblV8FOMdVN/wOAqyQ==:117 a=Cwc3rblV8FOMdVN/wOAqyQ==:17 a=8nJEP1OIZ-IA:10 a=xOM3xZuef0cA:10 a=VxmjJ2MpAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=RC8G0kb3CN_VBQSPC_8A:9 a=wPNLvfGTeEIA:10 a=Siwu2-VcbwUA:10 a=7gXAzLPJhVmCkEl4_tsf:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 306545FA; Sun, 25 Sep 2022 23:28:36 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 0312D163; Sun, 25 Sep 2022 23:28:35 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Cy Schubert cc: Warner Losh , John Baldwin , Warner Losh , src-committers , "" , dev-commits-src-main@freebsd.org Subject: Re: git: df065f699f1f - main - stand: More sensible defaults when ConOut is missing In-reply-to: <20220924012951.D46B7BE@slippy.cwsent.com> References: <202208270418.27R4IkeL078154@gitrepo.freebsd.org> <0fccddc3-126d-f7b6-3b69-5fc1cbdb2775@FreeBSD.org> <7e773164-4317-ba17-1f26-1f382cf46fb3@FreeBSD.org> <20220924004655.42D9418E@slippy.cwsent.com> <20220924012951.D46B7BE@slippy.cwsent.com> Comments: In-reply-to Cy Schubert message dated "Fri, 23 Sep 2022 18:29:51 -0700." List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Sun, 25 Sep 2022 23:28:35 -0700 Message-Id: <20220926062836.0312D163@slippy.cwsent.com> X-CMAE-Envelope: MS4xfB8M/4TxkgbRdGvWGq+0ZRGkYET+n/bBxvT9jqUwU36iOAVuGEJ9xH3JMaJ/wgeh6kAmA7Y49R3+PwKVbFdLZ6cWTMHNSfKhkjMtxSlThnGxjcATuUOM VwAxcp3Ks28MpgW+LjVZpFpspbC+0WFS8aSMdMu1YkeESxxtu2Af8EfO+jzicKNqv+OTXSvihWl4iuN+37drNMZDMg2b5gOZwGaVrhXV6eyCd1PcDUfGjj/m +Ic94hVXOfVS3IWrmPcQQyGHwa1bPTDrvVLRcfvEI+D0J7f+cXHYx6AUdi3GxQIzjrzFWKmCLeEA1/fC3mXtP1ok2QdhNSUNXlBqtRhUr8lxsTAvU5HRqSOW 8whYnixlJ963c6Qf7Ln41o94Me1jQg== X-Rspamd-Queue-Id: 4MbXrm3S3Gz4QC8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 3.97.99.33) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-1.80 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[3.97.99.33:from]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; RCPT_COUNT_SEVEN(0.00)[7]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org,dev-commits-src-all@freebsd.org]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US]; REPLYTO_EQ_FROM(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[cschubert.com: no valid DMARC record]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N In message <20220924012951.D46B7BE@slippy.cwsent.com>, Cy Schubert writes: > In message om> > , Warner Losh writes: > > --000000000000f036fc05e961e571 > > On Fri, Sep 23, 2022 at 6:47 PM Cy Schubert > > wrote: > > > > > In message <7e773164-4317-ba17-1f26-1f382cf46fb3@FreeBSD.org>, John > > > Baldwin > > > wri > > > tes: > > > > On 9/23/22 2:29 PM, John Baldwin wrote: > > > > > On 8/26/22 9:18 PM, Warner Losh wrote: > > > > >> The branch main has been updated by imp: > > > > >> > > > > >> URL: > > > https://cgit.FreeBSD.org/src/commit/?id=df065f699f1ff819bb9607c44a675 > > > > 4275ab335ed > > > > >> > > > > >> commit df065f699f1ff819bb9607c44a6754275ab335ed > > > > >> Author: Warner Losh > > > > >> AuthorDate: 2022-08-26 21:46:33 +0000 > > > > >> Commit: Warner Losh > > > > >> CommitDate: 2022-08-27 04:17:56 +0000 > > > > >> > > > > >> stand: More sensible defaults when ConOut is missing > > > > >> > > > > >> When ConOut is missing, we used to default to serial. Except w > e > > > did > > > > it > > > > >> in the worst way possible by just setting the howto bits and n > ot > > > > >> updating the console setting, which lead to weird behavior > > > where we' > > > > d > > > > >> get some things on the video port, others on serial. > > > > >> > > > > >> Instead, set console to "efi,comconsole" for this case. Also s > et > > > > >> RB_MULTIPLE always (so we get dual consoles from the kernel) > > > and or > > > > in > > > > >> RB_SERIAL when we can't find GOPs that suggest the precense of > > > a vid > > > > eo > > > > >> console. This will put output in the most places and have a > > > sensible > > > > >> default for 'primary' console. > > > > >> > > > > >> Sponsored by: Netflix > > > > >> Reviewed by: emaste, manu > > > > >> Differential Revision: https://reviews.freebsd.org/D36299 > > > > > > > > > > One possibly surprising result of this is that I did not get dual > > > console > > > > > output on my rpi after this. (Curiously this only affected my arm64 > > > image > > > > > but not my armv7 image.) Loader output goes to both, but kernel > > > output is > > > > > only on the video console (which I don't normally use for my pi). > > > (Also, > > > > > none of the ANSI escape sequences used by the loader work on the pi's > > > video > > > > > console, so once the menu starts it just looks like raw ANSI code > > > garbage > > > > > until the kernel starts booting.) > > > > > > > > > > Not sure if this warrants UPDATING as the effect is that the serial > > > console > > > > > seems to stop working? The lack of working dual console output is > > > perhaps > > > > > the only real bug. Not sure what is up there. > > > > > > > > FWIW, using 'console="comconsole,efi"' did not work as a workaround. > > > Same > > > > results (used the video console only for the kernel). Had to use > > > > 'console="comconsole"' in /boot/loader.conf. > > > > > > On one of my two machines with console="comconsole,vidconsole" failed to > > > get past loading the kernel. Booting a rescue USB disk and replacing > > > console with "comconsole" only resolved the hang. > > > > > > I'm not sure why it affected one and not the other as both are identical > > > hardware. > > > > > > > This is indeed weird. Both EFI or BIOS boot? > > BIOS. Turns out this was the motherboard. I replaced it with my spare of the same type. What clued me to suspect either the MB or CPU was a console message from Sept 22 containing: Sep 22 17:46:38 bob sshd[87768]: error: PAM: Authentication error for fgit fromslippy^M Sep 22 17:46:42 bob syslogd: last message repeated 2 times^M ^M kernel trap 1 with interrupts disabled^M kernel trap 1 with interrupts disabled^M kernel trap 1 with interrupts disabled^M kernel trap 1 with interrupts disabled^M kernel trap 1 with interrupts disabled^Mÿ^M <--- This was me hitting the reset switch 1 FreeBSD^M 2 FreeBSD^M 3 FreeBSD^M 4 FreeBSD^M 5 Drive 1^M F6 PXE^M Boot: 1 ^M Reviewing the console logs (serial console, logs saved for a considerable amount of time) I see this message printed five times. Following that is when the trouble started. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0