From nobody Wed Aug 16 22:14:36 2023 X-Original-To: freebsd-current@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 4RR2Vs6XgBz4Twtp for ; Wed, 16 Aug 2023 22:14:45 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mail.oetec.com (mail.oetec.com [108.160.241.186]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mail.oetec.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RR2Vr3qjzz4K1g for ; Wed, 16 Aug 2023 22:14:44 +0000 (UTC) (envelope-from dclarke@blastwave.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=blastwave.org header.s=default header.b=i2xxE6x7; spf=pass (mx1.freebsd.org: domain of dclarke@blastwave.org designates 108.160.241.186 as permitted sender) smtp.mailfrom=dclarke@blastwave.org; dmarc=pass (policy=quarantine) header.from=blastwave.org Received: from [172.16.35.9] (cpe8c6a8d4d360a-cm8c6a8d4d3608.cpe.net.cable.rogers.com [99.253.151.152]) (authenticated bits=0) by mail.oetec.com (8.17.1/8.16.1) with ESMTPSA id 37GMEb3i044629 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 16 Aug 2023 18:14:38 -0400 (EDT) (envelope-from dclarke@blastwave.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blastwave.org; s=default; t=1692224079; bh=BiN6Bk1n3iveABvGZtW1w9tLmsaa4zv6llqu+45fzrs=; h=Date:Subject:To:References:From:In-Reply-To; b=i2xxE6x76PoFIsgoHPyNBrk9FgPsKclEWAMYImDZLxnGL7wzLwEyOf+NAZyUT6hyd vQJq3L9R09RZ2xp68CMbJpN7RMkHj2csXFHnHY9VxFGsVoSxIj5wmX0r1AFsEVnks4 YDI4SmI0s0jV6ZOvxPUWzSchbDRJTFUkySQWqPBb5qkqmA7m+CSvMYHAmo6j8gfoaZ w3CWnD+/C0s6qL2qxytFPTAfQq1gRtezVj2BxaEjIhyKlJiogp0umH8dVSgARgrHK6 gsVO3XIzvduei8b6mDJIqmm9IMrutN7IVJ9kaCaprGK1LDIt+v836BJqDGGVIcX2xY Mb7YQWTfEel2w== Message-ID: <22dd3552-480b-05da-76d7-dfbe2cb03110@blastwave.org> Date: Wed, 16 Aug 2023 18:14:36 -0400 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Defaulting serial communication to 115200 bps for FreeBSD 14 Content-Language: en-CA To: freebsd-current@freebsd.org References: <20230816040257.A397366@slippy.cwsent.com> <20230816161057.f8c6a3b4ebe9c672d920811e@dec.sakura.ne.jp> From: Dennis Clarke Organization: GENUNIX In-Reply-To: <20230816161057.f8c6a3b4ebe9c672d920811e@dec.sakura.ne.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-oetec-MailScanner-Information: Please contact the ISP for more information X-oetec-MailScanner-ID: 37GMEb3i044629 X-oetec-MailScanner: Found to be clean X-oetec-MailScanner-From: dclarke@blastwave.org X-Spam-Status: No X-Spamd-Result: default: False [-4.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[blastwave.org,quarantine]; R_DKIM_ALLOW(-0.20)[blastwave.org:s=default]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_IN_DNSWL_MED(-0.20)[108.160.241.186:from]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:812, ipnet:108.160.240.0/20, country:CA]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[blastwave.org:+]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4RR2Vr3qjzz4K1g On 8/16/23 03:10, Tomoaki AOKI wrote: > On Tue, 15 Aug 2023 21:02:57 -0700 > Cy Schubert wrote: > >> Cheers, >> Cy Schubert >> FreeBSD UNIX: Web: https://FreeBSD.org >> NTP: Web: https://nwtime.org >> >> e^(i*pi)+1=0 >> >> message dated "Tue, 15 Aug 2023 17:18:37 -0400." >> Mime-Version: 1.0 >> Content-Type: text/plain; charset=us-ascii >> -------- >> In message > om> >> , Ed Maste writes: >>> FreeBSD currently uses 9600 bps as the default for serial >>> communication -- in the boot loader, kernel serial console, /etc/ttys, >>> and so on. This was consistent with most equipment in the 90s, when >>> these defaults were established. Today 115200 bps seems to be much >>> more common, and I'm proposing that we make it the default for FreeBSD >>> 14.0. >>> >>> I have a review open: https://reviews.freebsd.org/D36295. There are a >>> few minor nits in the review to be addressed still but assuming >>> there's general agreement I'll iterate on those and commit this in a >>> few logical chunks. >>> >> >> There should probably be an UPDATING entry for those who use boot0 to >> revert back to 9600 in that case. > > Not read the diff though, if the baud rate is re-initialized in boot1 > or later (including btx, loader, kernel and userland) and handshake > again, most of the boot process and later would run at 115200 bps. > The default serial communications config on most telecom equipment that I have seen ( in the last forty years ) defaults to 9600 8n1. If people want something faster from FreeBSD then do the trivial : set comconsole_speed="115200" set console="comconsole" Is that not trivial enough? Also, merely a funny observation, if one tries a baud rate lower than 9600 then FreeBSD will panic. Jut a funny thing I have seen over and over. -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional