From nobody Thu Mar 30 18:42:29 2023 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 4PnXNF3xrGz429nq for ; Thu, 30 Mar 2023 18:42:37 +0000 (UTC) (envelope-from sr@genyosha.net) Received: from ns4.genyosha.net (ns4.genyosha.net [50.53.250.75]) (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 "float.home.genyosha.net", Issuer "float.home.genyosha.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PnXNF0HsRz3GwW for ; Thu, 30 Mar 2023 18:42:36 +0000 (UTC) (envelope-from sr@genyosha.net) Authentication-Results: mx1.freebsd.org; none Received: from dragon.home.genyosha.net (ops.genyosha.net [50.53.250.77]) by ns4.genyosha.net (8.17.1/8.16.1) with ESMTPS id 32UIgZXf006687 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 30 Mar 2023 11:42:35 -0700 (PDT) (envelope-from sr@genyosha.net) Received: from dragon.home.genyosha.net (localhost [127.0.0.1]) by dragon.home.genyosha.net (8.14.7/8.14.7) with ESMTP id 32UIgUU2006593; Thu, 30 Mar 2023 11:42:30 -0700 Received: (from sr@localhost) by dragon.home.genyosha.net (8.14.7/8.14.7/Submit) id 32UIgT0Q006592; Thu, 30 Mar 2023 11:42:29 -0700 Date: Thu, 30 Mar 2023 11:42:29 -0700 From: Steve Rikli To: bob prohaska Cc: Marcin Cieslak , "freebsd-arm@freebsd.org" Subject: Re: Boot stops at loader after build/install cycle Message-ID: References: <20230327164919.GA65182@www.zefox.net> <20230327183055.GB65182@www.zefox.net> <44509923-0218-5no7-42pp-90ss0sns9457@fncre.vasb> <20230329164845.GA75320@www.zefox.net> <20230330152728.GA79440@www.zefox.net> 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: <20230330152728.GA79440@www.zefox.net> X-Greylist: inspected by milter-greylist-4.6.4 (ns4.genyosha.net [50.53.250.75]); Thu, 30 Mar 2023 11:42:35 -0700 (PDT) for IP:'50.53.250.77' DOMAIN:'ops.genyosha.net' HELO:'dragon.home.genyosha.net' FROM:'sr@genyosha.net' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (ns4.genyosha.net [50.53.250.75]); Thu, 30 Mar 2023 11:42:35 -0700 (PDT) X-Rspamd-Queue-Id: 4PnXNF0HsRz3GwW X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20055, ipnet:50.53.0.0/16, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Mar 30, 2023 at 08:27:28AM -0700, bob prohaska wrote: > On Wed, Mar 29, 2023 at 06:09:00PM -0700, Steve Rikli wrote: > > On Thu, Mar 30, 2023 at 12:24:13AM +0000, Marcin Cieslak wrote: > > > > > > Looks like the bootloader tries to send/receives some terminal control > > > sequences and this fails, interupting the autoboot. > > > > It may be something along those lines. When I was getting loader stops > > during reboot on my rpi4, my guess was the default FreeBSD speed 9600 > > vs. my serial terminal server setting of 115200 was causing stray > > characters on the line during boot, loader interpretted that as a > > keystroke, so it stopped. > > Where are you setting the serial console to 9600 baud? AIUI the > Pi defaults to 115200, can it be set in config.txt? I think you're right -- FreeBSD amd64 defaults to 9600 according to boot(8), but arm64 has 115200 compiled, in device tree? Fwiw I typically set "-Dh -S" in /boot.config on PC's, but now I'm realizing that may be ignored by arm platforms? In theory serial speed can be set in config.txt (e.g. init_uart_baud) but that may be a linux-ism, I don't know if FreeBSD will use it. I was admittedly focusing on FreeBSD loader config rather than Pi settings, though; maybe it can be set in /boot/loader.conf if needed, e.g. comconsole_speed? Cheers, sr.