From nobody Mon Mar 27 18:30:55 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 4PlhG51zYlz41ssx for ; Mon, 27 Mar 2023 18:30:53 +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 4PlhG474Kxz4b9w for ; Mon, 27 Mar 2023 18:30:52 +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 32RIUt70065431 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 27 Mar 2023 11:30:56 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 32RIUt4f065430; Mon, 27 Mar 2023 11:30:55 -0700 (PDT) (envelope-from fbsd) Date: Mon, 27 Mar 2023 11:30:55 -0700 From: bob prohaska To: Steve Rikli Cc: "freebsd-arm@freebsd.org" Subject: Re: Boot stops at loader after build/install cycle Message-ID: <20230327183055.GB65182@www.zefox.net> References: <20230327164919.GA65182@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: X-Rspamd-Queue-Id: 4PlhG474Kxz4b9w X-Spamd-Bar: ---- 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] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Mon, Mar 27, 2023 at 10:44:07AM -0700, Steve Rikli wrote: > On Mon, Mar 27, 2023 at 06:52:37PM +0200, Warner Losh wrote: > > On Mon, Mar 27, 2023, 6:49 PM bob prohaska wrote: > > > > > For some time (months, I think) a Pi4 running -current > > > has been stopping at the loader prompt on first reboot > > > following a buildworld/buildkernel/installeverything > > > cycle. The system uses a USB mechanical disk, no microSD > > > and has never had trouble finding the disk. > > > > > > It seems to happen only on the first reboot, though > > > I'm not absolutely certain since I haven't been > > > keeping notes. > > > > > > Is this intentional behavior? > > > > No. Should either always stop or never... > > Shot in the dark: Bob, are you perhaps using serial console? > Yes, but no extraneous characters show up on the console during boot. > My rpi4b had behavior similar to what you described for a while after I > first got it; it was mostly pilot error: I am using serial console and > had neglected to setup /boot.config with the proper serial parameters > (e.g. "-Dh -S115200"). > I'm not (knowingly) using any special configuration, but the arrangement is somewhat Byzantine: I'm sitting at a RasPiOS host, ssh'ed into a Pi3 connected via FT232 usb-serial adapter to the Pi4's serial console port using cu running on the Pi3. The idea of noise on the serial line causing loader to stop seems like the most plausible explanation, but I don't see how that could happen only on first boot after upgrade. Of course, the statistics are lousy and chance might account for it. Other Pi2/3 hosts (but I think not the Pi4) somtimes show strings of "@@@@@..." characters after the ssh-serial link drops and is brought back up. However, they don't pause at loader. Thanks for writing! bob prohaska > I think what was happening was a bit of leftover characters from my > serial console server was getting interpretted by loader, so it stopped. > I could always boot successfully from there, and a subsequent reboot > from the serial console consistently "just worked" also, presumably > because any stray characters and keystrokes on the line had cleared. > > The clue for me was occasionally seeing a little ascii junk around the > login: prompt on console -- I typically don't see that. > > Once I setup /boot.config the loader didn't get interrupted. This is all > with FreeBSD 13.1 from official arm64-aarch64-RPI image, fwiw, upgraded > from src buildworld ever since. > > Cheers, > sr.