Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 2023 11:40:27 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        Steve Rikli <sr@genyosha.net>, Marcin Cieslak <saper@saper.info>,  "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Boot stops at loader after build/install cycle
Message-ID:  <CANCZdfo=cq7Axi3giqCuVz68_QHKRFF5M=wbknNn7RV8RbojcQ@mail.gmail.com>
In-Reply-To: <20230330152728.GA79440@www.zefox.net>
References:  <20230327164919.GA65182@www.zefox.net> <CANCZdfrwUXgL8K-ZXMS770oM7W8WyVEPSQt9acbUhFfk1D032A@mail.gmail.com> <ZCHV57OZuXxI5xu3@dragon.home.genyosha.net> <20230327183055.GB65182@www.zefox.net> <44509923-0218-5no7-42pp-90ss0sns9457@fncre.vasb> <20230329164845.GA75320@www.zefox.net> <or45n234-96pp-9sn7-2qpn-s2np14776oo3@fncre.vasb> <ZCThLNuAuBhSSH1h@dragon.home.genyosha.net> <20230330152728.GA79440@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000043ac8605f8219774
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 30, 2023 at 9:27=E2=80=AFAM bob prohaska <fbsd@www.zefox.net> w=
rote:

> 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:
> > >
> > > 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.
> >
> > 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?
> >
> > When I specified the rpi4 serial console speed in the config to match m=
y
> > serial terminal server, rather than let it "float" (default 9600), my
> > loader interruptions stopped, and no more stray characters on the seria=
l
> > console after boot either.
> >
> > > Also, uboot autoboot prompt never gets interrupted.
> > >
> > > 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.
> > >
> > > Looks like the bootloader tries to send/receives some terminal contro=
l
> > > 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?
>

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 els=
e
sending the Query Cursor Location and then not reading it.

https://www.cse.psu.edu/~kxc104/class/cmpen472/11f/hw/hw7/vt100ansi.htm

Warner

--00000000000043ac8605f8219774
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Thu, Mar 30, 2023 at 9:27=E2=80=AF=
AM bob prohaska &lt;<a href=3D"mailto:fbsd@www.zefox.net">fbsd@www.zefox.ne=
t</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"=
>On Wed, Mar 29, 2023 at 06:09:00PM -0700, Steve Rikli wrote:<br>
&gt; On Thu, Mar 30, 2023 at 12:24:13AM +0000, Marcin Cieslak wrote:<br>
&gt; &gt; <br>
&gt; &gt; The characters look too regular to me, just like a normal termina=
l<br>
&gt; &gt; codes, not a line noise. I test the device now powered from the<b=
r>
&gt; &gt; same USB hub as the USB-serial converter. Rockchip needs 1500000 =
bps<br>
&gt; &gt; console, pretty fest.<br>
&gt; <br>
&gt; OK, then let&#39;s assume your serial cables &amp; hoods etc. are OK f=
or the<br>
&gt; moment. What does serial console config on the rpi look like?<br>
&gt; <br>
&gt; When I specified the rpi4 serial console speed in the config to match =
my<br>
&gt; serial terminal server, rather than let it &quot;float&quot; (default =
9600), my<br>
&gt; loader interruptions stopped, and no more stray characters on the seri=
al<br>
&gt; console after boot either.<br>
&gt; <br>
&gt; &gt; Also, uboot autoboot prompt never gets interrupted.<br>
&gt; &gt; <br>
&gt; &gt; I also noticed that &quot;resizewin&quot; complains about not get=
ting<br>
&gt; &gt; information about the terminal upon login on the serial console<b=
r>
&gt; &gt; while being in the vt(4) text mode.<br>
&gt; &gt; <br>
&gt; &gt; Looks like the bootloader tries to send/receives some terminal co=
ntrol<br>
&gt; &gt; sequences and this fails, interupting the autoboot.<br>
&gt; <br>
&gt; It may be something along those lines. When I was getting loader stops=
<br>
&gt; during reboot on my rpi4, my guess was the default FreeBSD speed 9600<=
br>
&gt; vs. my serial terminal server setting of 115200 was causing stray<br>
&gt; characters on the line during boot, loader interpretted that as a<br>
&gt; keystroke, so it stopped.<br>
<br>
Where are you setting the serial console to 9600 baud? AIUI the<br>
Pi defaults to 115200, can it be set in config.txt?<br></blockquote><div><b=
r></div><div>The sequence ending in R is indeed &quot;report cursor locatio=
n&quot; so it&#39;s the result</div><div>of resizewin not reading it and le=
aving that around maybe? Or something else</div><div>sending the Query Curs=
or Location and then not reading it.</div><div><br></div><div><a href=3D"ht=
tps://www.cse.psu.edu/~kxc104/class/cmpen472/11f/hw/hw7/vt100ansi.htm">http=
s://www.cse.psu.edu/~kxc104/class/cmpen472/11f/hw/hw7/vt100ansi.htm</a><br>=
</div><div><br></div><div>Warner</div></div></div>

--00000000000043ac8605f8219774--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfo=cq7Axi3giqCuVz68_QHKRFF5M=wbknNn7RV8RbojcQ>