From nobody Sat Jan 6 03:26:16 2024 X-Original-To: freebsd-arm@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 4T6Qj54llWz5720N for ; Sat, 6 Jan 2024 03:26:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.84]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T6Qj52P8Rz49M2 for ; Sat, 6 Jan 2024 03:26:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1704511591; bh=pHuMHYjrrInRNBsy27TCggSfPSN6k/w2DubZipiLTbg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=jsAlu5whwzwCs3UYAS1gZfJaYKUxDm/A0ZUjVL880+t3M0CRKZRciHEXCNUqIP3JSqujKTOvAMpfAzyOytl6NRua6GlOdzC7NQppWE/2jPs1SgDEFdwtMzp24qM5usHcUnKgjoMAhyKkXQimPFD1vsdnZCZxnLFLHrx20+Xw//nXKg9DrSxx/PiXhDIx4qdt9ZJpzyHv0CWfRheRUJnZBaJPk/Y5PftH9tNa/pLKvYkYfviCp3xNgHREwah9IROaLEoJTQvg0kASwZOPDzcjsWplY1MQx2Fg1ad9hcOneE3yMBen10Xz+9yVEwr7rnbu18kt5QzivBs5GBsmMXXIkQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1704511591; bh=f07KPsJVl3xXydJi/VI8M/8aBDzvq5bbxybm2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sG.4XlyW8GIM4D4qf0038VQ07ib3XRl2OrhOYpO2vy0m NQ2BopdAVEP0YlHVTQqEGrcc.HhBmid6KSEcd9EfgXKq7OR2QPIBXeHJMFSnvOVIJFTP4EnWWdve 2gx26W0F9vOzBWSULVBIk0DlPxRV6vZu5QAyICLsSrUNNrOWVVW2O0BcejogfeZ3jQhgg9dKEbYa Szk4QKxlJxGqSA6qh92EtQJI7sc4Gl.s8m4OhbUfvpG1OijnswiPujfla6jE54mKo42W_G.nggah QULU4y4DRSNpGzq_n7ppAhw3v05bGJLDn2e8EL4Bevr25q4LuK7tmvl8sM4QI.zH31_XbC9kw2Eq uvR8QsVCUf5CT.Zvy5qoezVU.g5JxoTUtX6qzyF0qittR9SrqUfbF1e9tsLNt9RBhUdJ2fwcEQnF VgeRcjAiRbihVvu_qnR__3YgTsFloPeNLLeiywR2ntKIKxDYVMfVRG0qIqTHzyO.BTqrNBWXDyGi E50TpON9v7X0m4wj11hN0sLuRqTnT1fSHKA1lnxs9R6qyro_9TP2CrYvDBzn8RHJO6CB3FT0- X-Sonic-MF: X-Sonic-ID: 0b136b0b-b389-4f63-bc28-355ed1f77476 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Sat, 6 Jan 2024 03:26:31 +0000 Received: by hermes--production-gq1-6949d6d8f9-k52jv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 33c707138bce803d8281c2dc0104f44d; Sat, 06 Jan 2024 03:26:27 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: USB-serial adapter suggestions needed From: Mark Millard In-Reply-To: Date: Fri, 5 Jan 2024 19:26:16 -0800 Cc: Marcin Cieslak , John F Carr , ticso@cicely.de, freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <849BD5E3-4C09-46CB-932D-ADC1B45F3C73@yahoo.com> References: <9o7q7p36-o7pn-27o9-62no-8p1r6o127123@fncre.vasb> To: bob prohaska X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Rspamd-Queue-Id: 4T6Qj52P8Rz49M2 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] [I have a little internet access for a bit again --but not for even the rest of my night time.] On Jan 5, 2024, at 08:15, bob prohaska wrote: > On Sun, Dec 31, 2023 at 09:41:06AM +0000, Marcin Cieslak wrote: >> On Sat, 30 Dec 2023, bob prohaska wrote: >>=20 >>> On Sat, Dec 30, 2023 at 07:05:32PM +0000, Marcin Cieslak wrote: >>>> are you running with the default /etc/ttys ? >>>>=20 >>> Yes, I am. >>>=20 >>>> If yes, >>>>=20 >>>> can you please edit /etc/ttys on the serial port >>>> side as follows (as root) >>>>=20 >>>> # ed /etc/ttys 2216 >>>> /ttyu0 >>>> ttyu0 "/usr/libexec/getty 3wire" vt100 onifconsole secure >>>> .s/3wire/3wire.9600/ >>>> . >>>> ttyu0 "/usr/libexec/getty 3wire.9600" vt100 onifconsole secure >>>> w >>>> q >>>=20 >>> Couple of questions: >>>=20 >>> Is it necessary to use ed? I'm less bad with vi 8-) >>>=20 >>> Should I plan to change tip settings once FreeBSD boots? >>=20 >> /ttyu0 >> .s/3wire/3wire.9600/ >> . >> w >> q >>=20 >> are the commands you need to enter. >>=20 >> Please also adjust tip(1) line speed to 9600. >=20 > It's been discovered that turning off powerd on both the terminal > server host and the console host seems to eliminate the disconnect=20 > problem entirely. The necessity of eliminating powerd on the terminal > server is uncertain, I did it in the spirit of thoroughness. I'd next try having powerd disabled only on the terminal server pelorus and then checking for getting a failure. Last I would try instead having www.zefox.org be = the only one of the two with powerd disabled. I expect that having powerd disabled just on pelorus will prove sufficient and that having powerd disabled just on www.zefox.org = will not prove sufficient. I also request to again list the exact content of the two config.txt files --and again every time they are changed during this investigation. > With powerd off, the host www.zefox.org ran a complete buildworld,=20 > buildkernel, installworld, installkernel and poudriere jail update > over about five days without a single loss of communication from > workstation to serial console via the terminal server pelorus and=20 > usb-serial adapter. The serial connection was initiated at 115200 > baud and remained clean the entire time. =20 >=20 > On www.zefox.org /etc/ttys still contains > ttyu0 "/usr/libexec/getty 3wire" vt100 onifconsole secure > ttyu1 "/usr/libexec/getty 3wire" vt100 onifconsole secure > ttyu2 "/usr/libexec/getty 3wire" vt100 onifconsole secure > ttyu3 "/usr/libexec/getty 3wire" vt100 onifconsole secure > Config.txt contains dtoverlay=3Ddisable-bt and uname -a now reports > FreeBSD www.zefox.org 15.0-CURRENT FreeBSD 15.0-CURRENT #104 = main-n267335-499e84e16f56: Thu Jan 4 16:42:10 PST 2024 = bob@www.zefox.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 >=20 > On the terminal server pelorus /etc/remote contains > ucom:dv=3D/dev/cuaU0:br#115200:pa=3Dnone: > and the command > tip ucom=20 > was used to initiate the connection. Uname -a reports > FreeBSD pelorus 14.0-RELEASE-p4 FreeBSD 14.0-RELEASE-p4 #0 = releng/14.0-n265400-4edf3b80733e: Wed Dec 27 20:21:26 PST 2023 = bob@pelorus:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 >=20 > To all appearances, the troublemaker is powerd. I'd word it that powerd activity is involved --but is unlikely to be the only activity involved in the bad interaction(s). Lack of powerd activity (fixed rate context) likely avoids having the interactions at issue. > The question is=20 > what to try next. A very simple experiment is to start powerd on > www.zefox.org and repeat the build/install cycle. Alternatively, > I could try the experiment you suggested, setting ttyu0 to 9600 > baud. Or, I could do both at the same time. Or, something else. I do not expect the 9600 test to prove useful: systematic garbage text would result for the text that was good with 115200 . Also the powerd test you did tends to suggest that it is not a basic baudrate setting issue. > Please let me know what would be most informative. It would be=20 > very desirable to use powerd, as it substantially improves=20 > performance. You also have the option of fixed-rate clocking that is faster than FreeBSD default. This can be controlled from config.txt . =3D=3D=3D Mark Millard marklmi at yahoo.com