From nobody Sat Jan 06 16:33:52 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 4T6m9p5Jwnz56gdR for ; Sat, 6 Jan 2024 16:34:06 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (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 (2048 bits) client-digest SHA256) (Client CN "www.zefox.com", Issuer "www.zefox.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T6m9p1fL1z4YvC for ; Sat, 6 Jan 2024 16:34:05 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Authentication-Results: mx1.freebsd.org; none Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.17.1/8.15.2) with ESMTPS id 406GXrN8084423 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 6 Jan 2024 08:33:54 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 406GXqsD084420; Sat, 6 Jan 2024 08:33:52 -0800 (PST) (envelope-from fbsd) Date: Sat, 6 Jan 2024 08:33:52 -0800 From: bob prohaska To: Mark Millard Cc: Marcin Cieslak , John F Carr , ticso@cicely.de, freebsd-arm , bob prohaska Subject: Re: USB-serial adapter suggestions needed Message-ID: References: <9o7q7p36-o7pn-27o9-62no-8p1r6o127123@fncre.vasb> <849BD5E3-4C09-46CB-932D-ADC1B45F3C73@yahoo.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <849BD5E3-4C09-46CB-932D-ADC1B45F3C73@yahoo.com> X-Rspamd-Queue-Id: 4T6m9p1fL1z4YvC 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:7065, ipnet:50.1.16.0/20, country:US] On Fri, Jan 05, 2024 at 07:26:16PM -0800, Mark Millard wrote: > > I'd next try having powerd disabled only on the terminal server > pelorus and then checking for getting a failure. > I started powerd manually on www.zefox.org using powerd -a adp (which I think is the default) last night. The machine's console connection lasted all night. Previously powerd was started via /etc/rc.conf. Might that be somewhat different? However, early in the evening I accidentally crashed the RPiOS workstation, forcing me to re-establish all the console sessions. When the connection to www.zefox.org came back up it was prefaced by the usual non-printable gibberish. That session is still up as I write this. Could the gibberish be the result of getty activity on www.zefox.org as it establishes the connection from pelorus (the terminal server)? Part of baudrate negotiations, maybe? The overnight test was unloaded. Now www.zefox.org has been updated: Updating 499e84e16f56..aa1223ac3afc with a -j4 build/install cycle running with 3.5 GB swap divided between two USB mechanical hard disks. > Last I would try instead having www.zefox.org be the only one > of the two with powerd disabled. > That test will come next, in a couple of days. > 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. > So the difficulty is on the ethernet-usb-serial side? I was thinking it's on the serial-console side, maybe an inadvertent escape sequence from baud mismatch. > 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. > On pelorus, the terminal server, config.txt contains: bob@pelorus:~ % more /boot/efi/config.txt [all] arm_64bit=1 dtparam=audio=on,i2c_arm=on,spi=on dtoverlay=mmc dtoverlay=disable-bt device_tree_address=0x4000 kernel=u-boot.bin [pi4] hdmi_safe=1 armstub=armstub8-gic.bin On www.zefox.org, the console client, config.txt contains bob@www:~ % more /boot/msdos/config.txt arm_64bit=1 dtoverlay=disable-bt init_uart_clock=3000000 enable_uart=1 kernel=u-boot.bin kernel7=u-boot.bin dtoverlay=mmc force_mac_address=b8:27:eb:71:46:4f I'll admit to some uncertainty where init_uart_clock=3000000 and kernel7=u-boot.bin came from. The latter seems harmless, but I'm not so sure about the former. > > You also have the option of fixed-rate clocking that is faster > than FreeBSD default. This can be controlled from config.txt . As a last resort, yes. Still, I'd like to minimize power use to the extent possible. Powerd seems optimized for laptops. Maybe it isn't the right tool for mains-powered, lightly loaded servers which occasionally see saturation loads. Thanks for writing! bob prohaska