Date: Mon, 16 Dec 2024 16:31:54 +0200 From: Daniel Braniss <danny@cs.huji.ac.il> To: Ronald Klop <ronald-lists@klop.ws> Cc: Kurt Jaeger <pi@freebsd.org>, Freebsd-stable List <stable@freebsd.org>, Warner Losh <imp@bsdimp.com>, John Baldwin <jhb@freebsd.org> Subject: Re: not working /dev/console Message-ID: <0F8F02E9-4FBD-491E-A4AD-81A86E0A8967@cs.huji.ac.il> In-Reply-To: <770149226.7914.1734358550887@localhost> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_C0248C1E-C995-4659-9DCC-302725198507 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 16 Dec 2024, at 16:15, Ronald Klop <ronald-lists@klop.ws> wrote: >=20 >=20 > 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 >=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. The problem is also on APU2, and fixing the hint.uart.0=3D=E2=80=9Cisa=E2=80= =9D got my serial console back! So thanks to all of you! Danny >=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=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" > =20 >=20 > Regards, > Ronald. > =20 --Apple-Mail=_C0248C1E-C995-4659-9DCC-302725198507 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 16:15, Ronald Klop = <ronald-lists@klop.ws> wrote:</div><br = class=3D"Apple-interchange-newline"><div><div><br><p><strong>Van:</strong>= Kurt Jaeger <pi@freebsd.org><br> <strong>Datum:</strong> maandag, 16 december 2024 14:34<br> <strong>Aan:</strong> Warner Losh <imp@bsdimp.com><br> <strong>CC:</strong> John Baldwin <jhb@freebsd.org>, Daniel = Braniss <danny@cs.huji.ac.il>, Freebsd-stable List = <stable@freebsd.org><br> <strong>Onderwerp:</strong> Re: not working /dev/console</p> <blockquote style=3D"padding-right: 0px; padding-left: 5px; margin-left: = 5px; border-left: #000000 2px solid; margin-right: 0px"> <div class=3D"MessageRFC822Viewer" id=3D"P"> <div class=3D"TextPlainViewer" id=3D"P.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><br></div><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">https://github.com/freebsd/freebsd-src/commit/63e282= 288ed84387d2ec75ba8df7d7d004536781</a><br> <br> You might try to put something like this in /boot/device.hints (or = /boot/loader.conf?): <div class=3D"del">hint.uart.0.at=3D"isa"</div> <div class=3D"ctx">hint.uart.0.port=3D"0x3F8"</div> <div class=3D"ctx">hint.uart.0.flags=3D"0x10"</div> <div class=3D"del">hint.uart.0.irq=3D"4"</div> <div class=3D"del">hint.uart.1.at=3D"isa"</div> <div class=3D"ctx">hint.uart.1.port=3D"0x2F8"</div> <div class=3D"del">hint.uart.1.irq=3D"3"</div> <div class=3D"ctx"> </div> <br> Regards,<br> Ronald.<br> </div></div></blockquote></div><br></body></html>= --Apple-Mail=_C0248C1E-C995-4659-9DCC-302725198507--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0F8F02E9-4FBD-491E-A4AD-81A86E0A8967>