From nobody Wed Mar 29 16:48:45 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 4PmsvP3kwZz42nLK for ; Wed, 29 Mar 2023 16:48:49 +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 4PmsvN6tJsz4bfd for ; Wed, 29 Mar 2023 16:48:48 +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 32TGmkVJ075398 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 29 Mar 2023 09:48:46 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.17.1/8.15.2/Submit) id 32TGmjfn075397; Wed, 29 Mar 2023 09:48:45 -0700 (PDT) (envelope-from fbsd) Date: Wed, 29 Mar 2023 09:48:45 -0700 From: bob prohaska To: Marcin Cieslak Cc: Steve Rikli , "freebsd-arm@freebsd.org" Subject: Re: Boot stops at loader after build/install cycle Message-ID: <20230329164845.GA75320@www.zefox.net> References: <20230327164919.GA65182@www.zefox.net> <20230327183055.GB65182@www.zefox.net> <44509923-0218-5no7-42pp-90ss0sns9457@fncre.vasb> 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: <44509923-0218-5no7-42pp-90ss0sns9457@fncre.vasb> X-Rspamd-Queue-Id: 4PmsvN6tJsz4bfd 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 Wed, Mar 29, 2023 at 08:47:20AM +0000, Marcin Cieslak wrote: > > Type '?' for a list of commands, 'help' for more detailed help. > OK 6;176R > > sometimes the extra characters are different, like > > OK 9;106R > > Is this some device status report sequence of the terminal or something? I've never seen any extraneous characters at the loader prompt on the serial end. I do sometimes see extraneous characters on the usb end after establishing a connection to a booted host and getting a login prompt. Those have always been "^@^@^@^@^@....." > > It seems to boot fine with three wires connected to the CH341, but > "tip" session must be disconnected. tip is running in rxvt-unicode > (TERM=rxvt-unicode-256color), running in x11-wm/dwm under Xorg. > > With three wires disconnected (nothing plugged in, only USB power and > the Ethernet), it works pretty unreliably. Sometimes it simply stops > working and simple power cycle does not bring FreeBSD back (unless > I connect the console and observe things). But maybe this is something > different. Of course now at my desk as I write this it boots every time :) > but not so in the field. (But that is probably something unrelated). > Does anything change if you use cu? cu -l cuaU0 -s 115200 for example. If not maybe try different hardware (cables, usb-serial adapters, power supplies and so on) with an eye to any changes of behavior. At this stage making the problem worse might be more useful than making it better. Disconnecting the serial-end ground might be worth a try. If the connection still works it suggests you have multiple grounds, which can cause trouble. I ended up lifting the ground on one of my serial connections. AFAIK both Ethernet and USB power supplies are floating, so multiple grounds are very unlikely. But something might be faulty. I've put some "notes to self" at http://www.zefox.net/~fbsd/pi_serial_console and http://www.zefox.net/~fbsd/console_wiring hth, bob prohaska