Date: Mon, 16 Dec 2024 08:22:34 -0700 From: Warner Losh <imp@bsdimp.com> To: Daniel Braniss <danny@cs.huji.ac.il> Cc: Ronald Klop <ronald-lists@klop.ws>, Kurt Jaeger <pi@freebsd.org>, Freebsd-stable List <stable@freebsd.org>, John Baldwin <jhb@freebsd.org> Subject: Re: not working /dev/console Message-ID: <CANCZdfr0Ab14arotE0VOKqWZSuV8yT_=3nGeadVU08k1i1w%2BpA@mail.gmail.com> In-Reply-To: <0F8F02E9-4FBD-491E-A4AD-81A86E0A8967@cs.huji.ac.il> References: <ED9E83DE-FA40-4685-B073-E5BF5A29B1CB@cs.huji.ac.il> <Z1XbDqEzeI_Qvf8I@fc.opsec.eu> <CANCZdfrrpdaR_4Zyj3WgZTj7EcXT-YzdaeD%2BM-0ucUTDs9Aucg@mail.gmail.com> <Z1Xk_SpEZL4XVm2S@fc.opsec.eu> <3F04B2DC-1AA9-4663-BCDE-3EFD0B01527E@cs.huji.ac.il> <044EAFE1-DCB8-439C-A422-4B5F8CD4C37C@cs.huji.ac.il> <501640865.7444.1734350498438@localhost> <Z2AYoahDvVt52Wt2@fc.opsec.eu> <Z2AZzTOWgSNPsmZF@fc.opsec.eu> <CANCZdfqEfKHRoppUb8pLpveST61S_SbkjmCW2dDC=Pd5Yz=DTw@mail.gmail.com> <Z2AsSIAKlBvgHQ2t@fc.opsec.eu> <770149226.7914.1734358550887@localhost> <0F8F02E9-4FBD-491E-A4AD-81A86E0A8967@cs.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a8921f062964c0a8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 16, 2024, 7:32=E2=80=AFAM Daniel Braniss <danny@cs.huji.ac.il> = wrote: > > > On 16 Dec 2024, at 16:15, Ronald Klop <ronald-lists@klop.ws> wrote: > > > *Van:* Kurt Jaeger <pi@freebsd.org> > *Datum:* maandag, 16 december 2024 14:34 > *Aan:* Warner Losh <imp@bsdimp.com> > *CC:* John Baldwin <jhb@freebsd.org>, Daniel Braniss <danny@cs.huji.ac.il= >, > Freebsd-stable List <stable@freebsd.org> > *Onderwerp:* Re: not working /dev/console > > Hi! > > > > > can you tell more on how to fix this ? > > > > > APU version apu1 lost their ability to have a serial console > > > > in 14.2. > > > > hw.acpi.override_isa_irq_polarity=3D1 > > > > > > in /boot/loader.conf > > > > > > changed the value after reboot, but the serial console is still lost. > > > > Are the serial ports there at all? APU needs hints now for that. > > They are not. As the hardware did not change (I did not unsolder > some chips from the board 8-), I guess that's what I'm asking: > > How can I tell the kernel that the serials are still there ? > > The system boots via serial, and then stops displaying any > kernel output. > > -- > pi@FreeBSD.org +49 171 3101372 Now what ? > > ------------------------------ > > > > Does this note from /usr/src/UPDATING help? > > 20240715: > We now lean more heavily on ACPI enumeration for some traditional > devices. uart has moved from isa to acpi so the hints act as wiri= ng > instead of device enumeration. Hints for parallel port, floppy, e= tc > have been removed. Before upgrading, grep your dmesg for lines > like: > uart1: non-PNP ISA device will be removed from GENERIC in > FreeBSD 15. > to see if you need to start including hints for the device on isa > in your loader.conf or device.hints file. APU1 (but not APU2) > boards > are known to be affected, but there may be others. > > > The problem is also on APU2, and fixing the hint.uart.0=3D=E2=80=9Cisa=E2= =80=9D > got my serial console back! > FWIW, I've had several reports that APU2 with up of date firmware diesnot have this issue. APU was the only system to come up more than once, and the only one made after maybe 2010 or so. Warner So thanks to all of you! > > Danny > > > I don't know if this note was MFC'ed to stable. > > https://github.com/freebsd/freebsd-src/commit/63e282288ed84387d2ec75ba8df= 7d7d004536781 > > You might try to put something like this in /boot/device.hints (or > /boot/loader.conf?): > hint.uart.0.at=3D"isa" > hint.uart.0.port=3D"0x3F8" > hint.uart.0.flags=3D"0x10" > hint.uart.0.irq=3D"4" > hint.uart.1.at=3D"isa" > hint.uart.1.port=3D"0x2F8" > hint.uart.1.irq=3D"3" > > > Regards, > Ronald. > > > > --000000000000a8921f062964c0a8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote gmail_quote_contai= ner"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Dec 16, 2024, 7:32=E2=80= =AFAM Daniel Braniss <<a href=3D"mailto:danny@cs.huji.ac.il">danny@cs.hu= ji.ac.il</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D= "margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style= =3D"line-break:after-white-space"><br id=3D"m_-8078838206118191223lineBreak= AtBeginningOfMessage"><div><br><blockquote type=3D"cite"><div>On 16 Dec 202= 4, at 16:15, Ronald Klop <<a href=3D"mailto:ronald-lists@klop.ws" target= =3D"_blank" rel=3D"noreferrer">ronald-lists@klop.ws</a>> wrote:</div><br= ><div><div><br><p><strong>Van:</strong> Kurt Jaeger <<a href=3D"mailto:p= i@freebsd.org" target=3D"_blank" rel=3D"noreferrer">pi@freebsd.org</a>><= br> <strong>Datum:</strong> maandag, 16 december 2024 14:34<br> <strong>Aan:</strong> Warner Losh <<a href=3D"mailto:imp@bsdimp.com" tar= get=3D"_blank" rel=3D"noreferrer">imp@bsdimp.com</a>><br> <strong>CC:</strong> John Baldwin <<a href=3D"mailto:jhb@freebsd.org" ta= rget=3D"_blank" rel=3D"noreferrer">jhb@freebsd.org</a>>, Daniel Braniss = <<a href=3D"mailto:danny@cs.huji.ac.il" target=3D"_blank" rel=3D"norefer= rer">danny@cs.huji.ac.il</a>>, Freebsd-stable List <<a href=3D"mailto= :stable@freebsd.org" target=3D"_blank" rel=3D"noreferrer">stable@freebsd.or= g</a>><br> <strong>Onderwerp:</strong> Re: not working /dev/console</p> <blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5px;bor= der-left:#000000 2px solid;margin-right:0px"> <div id=3D"m_-8078838206118191223P"> <div id=3D"m_-8078838206118191223P.P">Hi!<br> <br> > > > can you tell more on how to fix this ?<br> <br> > > > APU version apu1 lost their ability to have a serial console= <br> > > > in 14.2.<br> <br> > > hw.acpi.override_isa_irq_polarity=3D1<br> > ><br> > > in /boot/loader.conf<br> > ><br> > > changed the value after reboot, but the serial console is still l= ost.<br> ><br> > Are the serial ports there at all? APU needs hints now for that.<br> <br> They are not. As the hardware did not change (I did not unsolder<br> some chips from the board 8-), I guess that's what I'm asking:<br> <br> How can I tell the kernel that the serials are still there ?<br> <br> The system boots via serial, and then stops displaying any<br> kernel output.<br> <br> --=C2=A0<br> pi@FreeBSD.org =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0+49 171 3101= 372 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Now what ?<br> =C2=A0</div> <hr></div> </blockquote> <br> <br> Does this note from /usr/src/UPDATING help?<br> <br> 20240715:<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 We now lean more heavily on ACPI= enumeration for some traditional<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 devices. uart has moved from isa= to acpi so the hints act as wiring<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 instead of device enumeration. H= ints for parallel port, floppy, etc<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 have been removed.=C2=A0 Before = upgrading, grep your dmesg for lines like:<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 uart1: non-PNP ISA device will be removed from GENERIC in F= reeBSD 15.<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 to see if you need to start incl= uding hints for the device on isa<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 in your loader.conf or device.hi= nts file. APU1 (but not APU2) boards<br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 are known to be affected, but th= ere may be others.<br></div></div></blockquote><div><br></div>The problem i= s also on APU2, and fixing the hint.uart.0=3D=E2=80=9Cisa=E2=80=9D</div><di= v>got my serial console back!</div></div></blockquote></div></div><div dir= =3D"auto"><br></div><div dir=3D"auto">FWIW, I've had several reports th= at APU2 with up of date firmware diesnot have this issue. APU was the only = system to come up more than once, and the only one made after maybe 2010 or= so.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warner</div><div di= r=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quote gmail_quot= e_container"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b= order-left:1px #ccc solid;padding-left:1ex"><div style=3D"line-break:after-= white-space"><div>So thanks to all of you!</div><div><br></div><div>Danny</= div><div><br><blockquote type=3D"cite"><div><div> <br> I don't know if this note was MFC'ed to stable.<br> <a href=3D"https://github.com/freebsd/freebsd-src/commit/63e282288ed84387d2= ec75ba8df7d7d004536781" target=3D"_blank" rel=3D"noreferrer">https://github= .com/freebsd/freebsd-src/commit/63e282288ed84387d2ec75ba8df7d7d004536781</a= ><br> <br> You might try to put something like this in /boot/device.hints (or /boot/lo= ader.conf?): <div><a href=3D"http://hint.uart.0.at" target=3D"_blank" rel=3D"noreferrer"= >hint.uart.0.at</a>=3D"isa"</div> <div>hint.uart.0.port=3D"0x3F8"</div> <div>hint.uart.0.flags=3D"0x10"</div> <div>hint.uart.0.irq=3D"4"</div> <div><a href=3D"http://hint.uart.1.at" target=3D"_blank" rel=3D"noreferrer"= >hint.uart.1.at</a>=3D"isa"</div> <div>hint.uart.1.port=3D"0x2F8"</div> <div>hint.uart.1.irq=3D"3"</div> <div>=C2=A0</div> <br> Regards,<br> Ronald.<br> =C2=A0</div></div></blockquote></div><br></div></blockquote></div></div></d= iv> --000000000000a8921f062964c0a8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfr0Ab14arotE0VOKqWZSuV8yT_=3nGeadVU08k1i1w%2BpA>