From nobody Fri Sep 23 21:29:03 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 4MZ4z54sFlz4cyqR; Fri, 23 Sep 2022 21:29:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MZ4z54JBKz3Yhd; Fri, 23 Sep 2022 21:29:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663968545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pDgprb4gKZXpfjtULiHXHiGK/j7bL8SEdySo3JEH1HQ=; b=LIMAitNYj/BybIVw10hn2YFw6wJcwDJBn3tnZZVNg2EKcyoK/fxMmS9zp+Jqsov04//Ulq Q9aojTIgU39TWQb3rY1xyfbrgB3Zljhii/U5NWRy3l/DlcHqd0v7NmXuzt4jXAmNXv7cYA zJiZLosLtYp97udDHiV9TZ6ABksIsP1/Inp8MWFtdS3xqjyWkrMjwdkjUcOOJGO6WqChK+ 3H3iSNxlbnHy9hm83OLxP8Hra9b7Cty+NcXohzsP7gepFC9qIvorcHCn+K96E+fPu4F54u MzcJagrzslPh0/Tf/NVb2yoqq3HQdxUGY3IBpSGmldwATSe6yrQ7GmEVZORjrQ== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4MZ4z470XSz1S19; Fri, 23 Sep 2022 21:29:04 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <0fccddc3-126d-f7b6-3b69-5fc1cbdb2775@FreeBSD.org> Date: Fri, 23 Sep 2022 14:29:03 -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 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Content-Language: en-US To: Warner Losh , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202208270418.27R4IkeL078154@gitrepo.freebsd.org> From: John Baldwin Subject: Re: git: df065f699f1f - main - stand: More sensible defaults when ConOut is missing In-Reply-To: <202208270418.27R4IkeL078154@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663968545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pDgprb4gKZXpfjtULiHXHiGK/j7bL8SEdySo3JEH1HQ=; b=M1P70KG0kay0e43YEdUg24eJTbRIfzftn0Ce0aT+xI949PLRfBUFHSCdSKZ+Ey/1Ku+KdN k+eko9gkLuvWHENBbtbLAYwdHgVWtshdCfwrbQ7nRkN54dC/W7c3sKHO6o4cyjhzO1Qcdg l7V4YD3yCCBXyiOGMCTw/vsMSPNhLlM6l/r5sj/8aS5FiVQb5PqRvgpuYhZTJ+jcY89oVw FOth/U3wG7NJPIVN1jsHLlfjPnDJGeW5w4QujNN1+ZjtNXNTubh3iHrP8detsn1VYm0Td0 Jp27TJ1yJiP8+hPmRTFqqQUNFwSJkVOUN+5ID33o4GgGo+8H/QOgiuVWgLeBng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663968545; a=rsa-sha256; cv=none; b=Xa7TfhBUTu44Z+6skhdM1uDDj9wzU74n0KRituBMRAOFyWujLsMRpZ64GZig2AJibOSTar VsS9TNPoyL25gTuJ8AREWG1ZQ74awWNkBXLYxpIDD5YiX+QIk0YbayGelbl+N056VOpfEF WRIHzVVRcE3wS4deOMQiJDLahLD8q37mYvzF+QhNnHpVZBlngg6K/06iJMTFdFcVxbK6o+ nwUGczbtPeUfdWEF7545yfA7Dw3+HtgWGRCkcTHcpSfLWwNsBjhuRmj4k5VasCn52nWN7l VdTeojs8xnxv5m5FQ1UzWI11xBqZcSX8l+y27+lS1AjvtXTd2MXhJqaizBycXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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=df065f699f1ff819bb9607c44a6754275ab335ed > > 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 we did it > in the worst way possible by just setting the howto bits and not > 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 set > 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 video > 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. -- John Baldwin