Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2024 06:48:53 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Kurt Jaeger <pi@freebsd.org>
Cc:        John Baldwin <jhb@freebsd.org>, Daniel Braniss <danny@cs.huji.ac.il>,  Freebsd-stable List <stable@freebsd.org>
Subject:   Re: not working /dev/console
Message-ID:  <CANCZdfoHGs=KSz92sm_1RxSEpG7QNtzkA1EwTa=96Yuz-xXyYQ@mail.gmail.com>
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
--00000000000090c59e062963710a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 16, 2024 at 6:34=E2=80=AFAM Kurt Jaeger <pi@freebsd.org> wrote:

> 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.
>

APU is one of the latest machines that don't quite enumerate the
serial ports right via ACPI, so you'll need to add the following to
loader.conf

hint.uart.0.at=3D"isa"
hint.uart.0.port=3D"0x3F8"
hint.uart.0.irq=3D"4"
hint.uart.1.at=3D"isa"
hint.uart.1.port=3D"0x2F8"
hint.uart.1.irq=3D"3"

Warner

--00000000000090c59e062963710a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g=
mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Dec 16,=
 2024 at 6:34=E2=80=AFAM Kurt Jaeger &lt;<a href=3D"mailto:pi@freebsd.org">=
pi@freebsd.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex">Hi!<br>
<br>
&gt; &gt; &gt; can you tell more on how to fix this ?<br>
<br>
&gt; &gt; &gt; APU version apu1 lost their ability to have a serial console=
<br>
&gt; &gt; &gt; in 14.2.<br>
<br>
&gt; &gt; hw.acpi.override_isa_irq_polarity=3D1<br>
&gt; &gt;<br>
&gt; &gt; in /boot/loader.conf<br>
&gt; &gt;<br>
&gt; &gt; changed the value after reboot, but the serial console is still l=
ost.<br>
&gt; <br>
&gt; 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&#39;s what I&#39;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></blockquote><div><br></div><div>APU is one of the latest=
 machines that don&#39;t quite enumerate the</div><div>serial ports right v=
ia ACPI, so you&#39;ll need to add the following to</div><div>loader.conf</=
div><div><br></div><div><a href=3D"http://hint.uart.0.at">hint.uart.0.at</a=
>=3D&quot;isa&quot;<br>hint.uart.0.port=3D&quot;0x3F8&quot;</div><div>hint.=
uart.0.irq=3D&quot;4&quot;<br><a href=3D"http://hint.uart.1.at">hint.uart.1=
.at</a>=3D&quot;isa&quot;<br>hint.uart.1.port=3D&quot;0x2F8&quot;<br>hint.u=
art.1.irq=3D&quot;3&quot;</div><div><br></div><div>Warner</div></div></div>

--00000000000090c59e062963710a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoHGs=KSz92sm_1RxSEpG7QNtzkA1EwTa=96Yuz-xXyYQ>