Date: Mon, 16 Dec 2024 18:16:02 +0200 From: Daniel Braniss <danny@cs.huji.ac.il> To: Warner Losh <imp@bsdimp.com> 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: <8837CC40-3CEC-4674-9CF5-CE2E625FA277@cs.huji.ac.il> In-Reply-To: <CANCZdfr0Ab14arotE0VOKqWZSuV8yT_=3nGeadVU08k1i1w%2BpA@mail.gmail.com> 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> <CANCZdfr0Ab14arotE0VOKqWZSuV8yT_=3nGeadVU08k1i1w%2BpA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_D66ABE17-F90D-42D2-9C8F-695661FA7CCD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 16 Dec 2024, at 17:22, Warner Losh <imp@bsdimp.com> wrote: >=20 >=20 >=20 > On Mon, Dec 16, 2024, 7:32=E2=80=AFAM Daniel Braniss = <danny@cs.huji.ac.il <mailto:danny@cs.huji.ac.il>> wrote: >>=20 >>=20 >>> On 16 Dec 2024, at 16:15, Ronald Klop <ronald-lists@klop.ws = <mailto:ronald-lists@klop.ws>> wrote: >>>=20 >>>=20 >>> Van: Kurt Jaeger <pi@freebsd.org <mailto:pi@freebsd.org>> >>> Datum: maandag, 16 december 2024 14:34 >>> Aan: Warner Losh <imp@bsdimp.com <mailto:imp@bsdimp.com>> >>> CC: John Baldwin <jhb@freebsd.org <mailto:jhb@freebsd.org>>, Daniel = Braniss <danny@cs.huji.ac.il <mailto:danny@cs.huji.ac.il>>, = Freebsd-stable List <stable@freebsd.org <mailto:stable@freebsd.org>> >>> Onderwerp: Re: not working /dev/console >>>=20 >>> Hi! >>>=20 >>> > > > can you tell more on how to fix this ? >>>=20 >>> > > > APU version apu1 lost their ability to have a serial console >>> > > > in 14.2. >>>=20 >>> > > 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. >>>=20 >>> 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: >>>=20 >>> How can I tell the kernel that the serials are still there ? >>>=20 >>> The system boots via serial, and then stops displaying any >>> kernel output. >>>=20 >>> --=20 >>> pi@FreeBSD.org +49 171 3101372 Now what ? >>> =20 >>>=20 >>>=20 >>> Does this note from /usr/src/UPDATING help? >>>=20 >>> 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 = wiring >>> instead of device enumeration. Hints for parallel port, = floppy, etc >>> 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. >>=20 >> The problem is also on APU2, and fixing the hint.uart.0=3D=E2=80=9Cisa=E2= =80=9D >> got my serial console back! >=20 >=20 > 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. >=20 IMHO, it might me an issue with the bios/efi firmware, I have PCengins = APU2 with a resent firmware from=20 Dasharo.com? Danny > Warner >=20 >> So thanks to all of you! >>=20 >> Danny >>=20 >>>=20 >>> I don't know if this note was MFC'ed to stable. >>> = https://github.com/freebsd/freebsd-src/commit/63e282288ed84387d2ec75ba8df7= d7d004536781 >>>=20 >>> You might try to put something like this in /boot/device.hints (or = /boot/loader.conf?): >>> hint.uart.0.at <http://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 <http://hint.uart.1.at/>=3D"isa" >>> hint.uart.1.port=3D"0x2F8" >>> hint.uart.1.irq=3D"3" >>> =20 >>>=20 >>> Regards, >>> Ronald. >>> =20 >>=20 --Apple-Mail=_D66ABE17-F90D-42D2-9C8F-695661FA7CCD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"content-type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;"><br = id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote = type=3D"cite"><div>On 16 Dec 2024, at 17:22, Warner Losh = <imp@bsdimp.com> wrote:</div><br = class=3D"Apple-interchange-newline"><div><div = dir=3D"auto"><div><br><br><div class=3D"gmail_quote = gmail_quote_container"><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.huji.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_-8078838206118191223lineBreakAtBeginningOfMessage"><div><br><block= quote type=3D"cite"><div>On 16 Dec 2024, 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:pi@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" = target=3D"_blank" rel=3D"noreferrer">imp@bsdimp.com</a>><br> <strong>CC:</strong> John Baldwin <<a href=3D"mailto:jhb@freebsd.org" = target=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"noreferrer">danny@cs.huji.ac.il</a>>, Freebsd-stable List = <<a href=3D"mailto:stable@freebsd.org" target=3D"_blank" = rel=3D"noreferrer">stable@freebsd.org</a>><br> <strong>Onderwerp:</strong> Re: not working /dev/console</p> <blockquote = style=3D"padding-right:0px;padding-left:5px;margin-left:5px;border-left:#0= 00000 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 lost.<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> -- <br> pi@FreeBSD.org +49 171 = 3101372 = &n= bsp; Now what ?<br> </div> <hr></div> </blockquote> <br> <br> Does this note from /usr/src/UPDATING help?<br> <br> 20240715:<br> We now lean more heavily on = ACPI enumeration for some traditional<br> devices. uart has moved from = isa to acpi so the hints act as wiring<br> instead of device = enumeration. Hints for parallel port, floppy, etc<br> have been removed. = Before upgrading, grep your dmesg for lines like:<br> = &n= bsp; uart1: non-PNP ISA device will be removed from GENERIC = in FreeBSD 15.<br> to see if you need to start = including hints for the device on isa<br> in your loader.conf or = device.hints file. APU1 (but not APU2) boards<br> are known to be affected, but = there may be others.<br></div></div></blockquote><div><br></div>The = problem is also on APU2, and fixing the = hint.uart.0=3D=E2=80=9Cisa=E2=80=9D</div><div>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 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.</div><div = dir=3D"auto"><br></div></div></div></blockquote><div><br></div>IMHO, it = might me an issue with the bios/efi firmware, I have PCengins APU2 with = a resent firmware = from </div><div>Dasharo.com?</div><div><br></div><div>Danny</div><div= ><br></div><div><br><blockquote type=3D"cite"><div><div dir=3D"auto"><div = dir=3D"auto">Warner</div><div dir=3D"auto"><br></div><div = dir=3D"auto"><div class=3D"gmail_quote = gmail_quote_container"><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"><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/63e282288ed84387d2ec= 75ba8df7d7d004536781" target=3D"_blank" = rel=3D"noreferrer">https://github.com/freebsd/freebsd-src/commit/63e282288= ed84387d2ec75ba8df7d7d004536781</a><br> <br> You might try to put something like this in /boot/device.hints (or = /boot/loader.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> </div> <br> Regards,<br> Ronald.<br> = </div></div></blockquote></div><br></div></blockquote></div></div></= div> </div></blockquote></div><br></body></html>= --Apple-Mail=_D66ABE17-F90D-42D2-9C8F-695661FA7CCD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8837CC40-3CEC-4674-9CF5-CE2E625FA277>