Date: Mon, 16 Dec 2024 15:15:50 +0100 (CET) From: Ronald Klop <ronald-lists@klop.ws> To: Kurt Jaeger <pi@freebsd.org> Cc: Freebsd-stable List <stable@freebsd.org>, Warner Losh <imp@bsdimp.com>, Daniel Braniss <danny@cs.huji.ac.il>, John Baldwin <jhb@freebsd.org> Subject: Re: not working /dev/console Message-ID: <770149226.7914.1734358550887@localhost> In-Reply-To: <Z2AsSIAKlBvgHQ2t@fc.opsec.eu> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_7913_1424241562.1734358550883 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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=1 > > > > > > 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 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. I don't know if this note was MFC'ed to stable. https://github.com/freebsd/freebsd-src/commit/63e282288ed84387d2ec75ba8df7d7d004536781 You might try to put something like this in /boot/device.hints (or /boot/loader.conf?): hint.uart.0.at="isa" hint.uart.0.port="0x3F8" hint.uart.0.flags="0x10" hint.uart.0.irq="4" hint.uart.1.at="isa" hint.uart.1.port="0x2F8" hint.uart.1.irq="3" Regards, Ronald. ------=_Part_7913_1424241562.1734358550883 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html><head></head><body><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="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px"> <div class="MessageRFC822Viewer" id="P"> <div class="TextPlainViewer" id="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=1<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 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> 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> <br> I don't know if this note was MFC'ed to stable.<br> <a href="https://github.com/freebsd/freebsd-src/commit/63e282288ed84387d2ec75ba8df7d7d004536781">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/loader.conf?): <div class="del">hint.uart.0.at="isa"</div> <div class="ctx">hint.uart.0.port="0x3F8"</div> <div class="ctx">hint.uart.0.flags="0x10"</div> <div class="del">hint.uart.0.irq="4"</div> <div class="del">hint.uart.1.at="isa"</div> <div class="ctx">hint.uart.1.port="0x2F8"</div> <div class="del">hint.uart.1.irq="3"</div> <div class="ctx"> </div> <br> Regards,<br> Ronald.<br> </body></html> ------=_Part_7913_1424241562.1734358550883--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?770149226.7914.1734358550887>