Date: Wed, 29 Mar 2023 21:05:08 -0600 From: Warner Losh <imp@bsdimp.com> To: Steve Rikli <sr@genyosha.net> Cc: 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: <CANCZdfrBiP5nyPEQ8qR_vaVaobu35OLozf76-VfRFMupuqER9A@mail.gmail.com> In-Reply-To: <CANCZdforJ_1Eerg9o%2B8PHXV5M=3Xxs1kOEwg4NV-yZP-LZ_SLQ@mail.gmail.com> 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> <CANCZdforJ_1Eerg9o%2B8PHXV5M=3Xxs1kOEwg4NV-yZP-LZ_SLQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000ceb8aa05f8155c56 Content-Type: text/plain; charset="UTF-8" On Wed, Mar 29, 2023, 9:03 PM Warner Losh <imp@bsdimp.com> wrote: > Also, the sequence looks like the terminal is reporting something, maybe > focus?. That's why it's regular. Though I can't find a sequence that ends > in R. > Do the numbers correspond to the terminal size? Warner > > Warner > > On Wed, Mar 29, 2023, 7:09 PM Steve Rikli <sr@genyosha.net> wrote: > >> On Thu, Mar 30, 2023 at 12:24:13AM +0000, Marcin Cieslak wrote: >> > On Wed, 29 Mar 2023, bob prohaska wrote: >> > >> > > 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. >> > >> > 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 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. >> >> > 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 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. >> >> Cheers, >> sr. >> >> --000000000000ceb8aa05f8155c56 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Wed, Mar 29, 2023, 9:03 PM Warner Losh <<a href= =3D"mailto:imp@bsdimp.com">imp@bsdimp.com</a>> wrote:<br></div><blockquo= te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so= lid;padding-left:1ex"><div dir=3D"auto">Also, the sequence looks like the t= erminal is reporting something, maybe focus?. That's why it's regul= ar. Though I can't find a sequence that ends in R.</div></blockquote></= div></div><div dir=3D"auto"><br></div><div dir=3D"auto">Do the numbers corr= espond to the terminal size?</div><div dir=3D"auto"><br></div><div dir=3D"a= uto">Warner</div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote c= lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;= padding-left:1ex"><div dir=3D"auto"><div dir=3D"auto"><br></div><div dir=3D= "auto">Warner=C2=A0</div></div><br><div class=3D"gmail_quote"><div dir=3D"l= tr" class=3D"gmail_attr">On Wed, Mar 29, 2023, 7:09 PM Steve Rikli <<a h= ref=3D"mailto:sr@genyosha.net" target=3D"_blank" rel=3D"noreferrer">sr@geny= osha.net</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D= "margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Mar= 30, 2023 at 12:24:13AM +0000, Marcin Cieslak wrote:<br> > On Wed, 29 Mar 2023, bob prohaska wrote:<br> > <br> > > If not maybe try=C2=A0 different hardware (cables, usb-serial ada= pters,<br> > > power supplies and so on) with an eye to any changes of behavior.= <br> > > At this stage making the problem worse might be more useful than<= br> > > making it better. Disconnecting the serial-end ground might be<br= > > > worth a try. If the connection still works it suggests you have<b= r> > > multiple grounds, which can cause trouble. I ended up lifting<br> > > the ground on one of my serial connections. AFAIK both Ethernet<b= r> > > and USB power supplies are floating, so multiple grounds are very= <br> > > unlikely. But something might be faulty.<br> > <br> > The characters look too regular to me, just like a normal terminal<br> > codes, not a line noise. I test the device now powered from the<br> > same USB hub as the USB-serial converter. Rockchip needs 1500000 bps<b= r> > console, pretty fest.<br> <br> OK, then let's assume your serial cables & hoods etc. are OK for th= e<br> moment. What does serial console config on the rpi look like?<br> <br> When I specified the rpi4 serial console speed in the config to match my<br= > serial terminal server, rather than let it "float" (default 9600)= , my<br> loader interruptions stopped, and no more stray characters on the serial<br= > console after boot either.<br> <br> > Also, uboot autoboot prompt never gets interrupted.<br> > <br> > I also noticed that "resizewin" complains about not getting<= br> > information about the terminal upon login on the serial console<br> > while being in the vt(4) text mode.<br> > <br> > Looks like the bootloader tries to send/receives some terminal control= <br> > sequences and this fails, interupting the autoboot.<br> <br> It may be something along those lines. When I was getting loader stops<br> during reboot on my rpi4, my guess was the default FreeBSD speed 9600<br> vs. my serial terminal server setting of 115200 was causing stray<br> characters on the line during boot, loader interpretted that as a<br> keystroke, so it stopped.<br> <br> Cheers,<br> sr.<br> <br> </blockquote></div> </blockquote></div></div></div> --000000000000ceb8aa05f8155c56--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrBiP5nyPEQ8qR_vaVaobu35OLozf76-VfRFMupuqER9A>