From nobody Fri Apr 14 04:49:50 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 4PyPBp1lj0z45Nq2 for ; Fri, 14 Apr 2023 04:50:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (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 4PyPBl62hKz3p54 for ; Fri, 14 Apr 2023 04:50:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=jrRzHzTK; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1681447806; bh=wqIyYLZtKikyv2EjzgVnH1IKjc/dOJWVW1HZmFxLaWQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=jrRzHzTKzInNi/2M7BZpUdbuIHxTF6t4pxY1qoifBux0cp4vXVcLFKfawOWcGUNTSoZ1DLzIarDsbkjodcOJ7lwfxXYEbKbyDd7VSKBrkKBSrjL6Uebv81ebdHQJLPqnAh3ToBt3ZPc3XEVOkB3RowqOaCv7aJKuCneIQZjsbvhkVQBCKp7iJkWoQoxw2ROgNE3lwYbryozCZgwxKweyxSprAQ1xAzbG9tZk8buhcLrSXeJ7omdvXQo6jkn8hyWQmsSI/jXeFcg3apvaq+9iI7GGVVc3xumUrTWPuL476CaU+vWndSqwMTohabwAEEw4b9tZEUrX5qpG2RxquTVMWg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1681447806; bh=b5SZ0Y2wCTraJjgk9wHe92pkHgsekmjtecoXjU/Tenx=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=Eh2isXoibqnk+lFXJbQ0xv2LMLV1NRPoFEy3TXddHB9cJ1AqBFCFc9lf6qhqXibqvtalQxM9TZ15lk12bSUzy/3W4V+Bi92JACs36dpcCkBLjyMT62O5X6NswEz2Awe4OJ8f1nS4GXt/gKfmuAgNZ8ygvJXT7UnP0aMqRhCSw6G03xVpqrZqAnuervgyxxMU8BONzdm2Jlw4OIAkR57KfMVpWx1POyJ6XGpduIcKQJKjO+4LKRQayabSWy5VQ3kXSf1DIoW4I1ftRy+uTEsjcL8uTSFgWK/yGyNICftHXFYYewnemUrhN7iNw1YoRQ40C5XA68eGWBkeKXcRyVivyA== X-YMail-OSG: mxFRO1UVM1nF.Hwr5KkXqrEEiYIWDfDfi2ivAzU_KvgG3VOTZ0v9cFrjmQzvfRz 8gZKCSaPenCLi7oTo6BEGBUg8zGB9NRojeJKN1IUNV0HXV8GBycjiL_0bUEsGfgg.Xv9fl_5X4NE pyXYBZ6dPbxRMI87s3oTAXapLlQD9ynorhxEYJ2OcP6NswhGYDbsuUePhtrIiVovDdg6YqN89bJ_ UcNcvbFKjBebOyS7ycqu5_Q74f5jZr3L.npTud5Ufz580F5A7OYGvbfzq5Uo7JhZ2T_AVUgWOgns qkXsYnc7UPfMeYyhb24hxmQeytY3mwFidiCoMA.FOnvcWYoGkGN93JDmuAH896m86uqjUoGMlGPa Snu0F7iAXamgDyx2gKM.Fqs3__.Z6TabyIjPOPtr57PzTwRX4pXhrIIuTR7PVMsxZjrd4AFhksC7 9Ln3j4083JmLncV._moYIgzWYMAIiJLW_zRncLD9XXh4ysDmwpGvGU_AMDEeMVCO.7T_j8cFHASs iIBK09uIFwK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UKhfAEUDtCHso8unkrxcuZMiVyAt1ChCf_2_7sNZSFM.LvKoznW3U9uS1U 0lCh9vJuGF8BYD_YHidsI1VmR2xsRT9TjmvKR4S.mO4gbFGr0j_eclxmqMlD5EVyUdO.xVLMCF.n _X2OKkoEC4itLS7KXKlhPnqVxGruidLJyWSCrRyI2mQ18ZSla7KlIaLcfCuRBiDFa5cmZUm72j9j pGS1TjJUrMoKiC4pg2e0rcL.z7pthNLaCeuz.Soo_u0VeOo.p5LE5pGCj7xfUtAcZ0IafC3CacNS 05zVzgx.gTy68p12eW.aqIMQt1HdiwiOkcxGPEZMnG6wLaDcf3yoI7hgAchIszpThn8pQzmaCFBV 8qjQ0bksYyOnKzRqy.4ZNx.zeLMH4LxXcMrI.CP2zxiigMlryNYYNSh7.PiqRi1RJiauU.5r1i2p C9yuetxHLV9_TeA_.Xp9htNTmcS0vJswlPymDjYSNlO2C9pL07r521DEbvO3kYrdpdjTsioxuN1h tD0cxwuQpcimi6BwwGKgIHKYBg7DeKHEtJX4SWxBwSlc5jBQYlagCY3W5oKnf7XH7DazVToAl.Yb wRyv9NvLC3o8.3gKwK410Vs_GQaJytJkA_zl43K_nYGYAZUQlRf66KXsrEcrc0mzgK2agd1hB0Ve XUdSbnYC6VAvwFQOuSKHyShEIwMKSuoUZ_PAjlXtXaAjdXIwwA2JAMScriYB.LJyDMq1kZWa8eg- - X-Sonic-MF: X-Sonic-ID: c52af33d-5010-446d-9d14-f6d0021f72ef Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Fri, 14 Apr 2023 04:50:06 +0000 Received: by hermes--production-bf1-5f9df5c5c4-wvm2h (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f846b67b51d187a8aa900a71ddc0e8fb; Fri, 14 Apr 2023 04:50:03 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 \(3731.400.51.1.1\)) Subject: Re: Boot stops at loader after build/install cycle From: Mark Millard In-Reply-To: Date: Thu, 13 Apr 2023 21:49:50 -0700 Cc: bob prohaska , Steve Rikli , Marcin Cieslak , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <7D3F4842-CC76-4A9A-8488-50B4E6AB440E@yahoo.com> 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> To: Warner Losh X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spamd-Result: default: False [-3.31 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.81)[-0.808]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.147:from]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-Rspamd-Queue-Id: 4PyPBl62hKz3p54 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Mar 30, 2023, at 10:40, Warner Losh wrote: > On Thu, Mar 30, 2023 at 9:27=E2=80=AFAM 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: > > >=20 > > > The characters look too regular to me, just like a normal terminal > > > codes, not a line noise. I test the device now powered from the > > > same USB hub as the USB-serial converter. Rockchip needs 1500000 = bps > > > console, pretty fest. > >=20 > > OK, then let's assume your serial cables & hoods etc. are OK for the > > moment. What does serial console config on the rpi look like? > >=20 > > When I specified the rpi4 serial console speed in the config to = match my > > serial terminal server, rather than let it "float" (default 9600), = my > > loader interruptions stopped, and no more stray characters on the = serial > > console after boot either. > >=20 > > > Also, uboot autoboot prompt never gets interrupted. > > >=20 > > > I also noticed that "resizewin" complains about not getting > > > information about the terminal upon login on the serial console > > > while being in the vt(4) text mode. > > >=20 > > > Looks like the bootloader tries to send/receives some terminal = control > > > sequences and this fails, interupting the autoboot. > >=20 > > 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. >=20 > Where are you setting the serial console to 9600 baud? AIUI the > Pi defaults to 115200, can it be set in config.txt? [FYI: my context is 115200 based throughout.] > The sequence ending in R is indeed "report cursor location" so it's = the result > of resizewin not reading it and leaving that around maybe? Or = something else > sending the Query Cursor Location and then not reading it. >=20 > = https://www.cse.psu.edu/~kxc104/class/cmpen472/11f/hw/hw7/vt100ansi.htm FYI: I just booted a 2023-Apr-13 snapshot and saw the behavior for the first time: "0;200R" at the boot prompt (the window being 60 lines by 200 columns). I had not seen this with the Apr-06 snapshot or before, although normally my snapshot updates have been very rare, not two weeks in a row. I deleted the 0;200R text and typed boot to manually continue the boot. (Yes: the "6" was not present.) A "shutdown -r now" sequence did not get the problem. It leaves me wondering about varaibility in the u-boot to FreeBSD-loader transition's handling of things or other sources of variability in the handling in the loader. I'll see if I can get a capture of the byte stream with an example of the extra text (apparently via power-on). =3D=3D=3D Mark Millard marklmi at yahoo.com