Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Dec 2024 10:59:02 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Kurt Jaeger <pi@freebsd.org>
Cc:        Daniel Braniss <danny@cs.huji.ac.il>, Freebsd-stable List <stable@freebsd.org>
Subject:   Re: not working /dev/console
Message-ID:  <CANCZdfrrpdaR_4Zyj3WgZTj7EcXT-YzdaeD%2BM-0ucUTDs9Aucg@mail.gmail.com>
In-Reply-To: <Z1XbDqEzeI_Qvf8I@fc.opsec.eu>
References:  <DBE9ABDF-092F-4198-9E14-DF2E0AAB3638@cs.huji.ac.il> <Z0bcQvu36o-rqsJn@fc.opsec.eu> <CAA78225-E266-4CBE-807D-B72D9BCE58E8@cs.huji.ac.il> <CANCZdfoQtYLP62rWO6oTHg4ajbV7SK=ehq2jkv1o0ZX8_im0jw@mail.gmail.com> <365D866D-F7D2-4DB6-AFFB-B4C3829D8467@cs.huji.ac.il> <CANCZdfoiJE6-aKKFhafXPMY8FOg4nEBmhf2hN%2BcJXzMVrkyiqg@mail.gmail.com> <Z1Wb6vdZ8V6Pmf4J@fc.opsec.eu> <ED9E83DE-FA40-4685-B073-E5BF5A29B1CB@cs.huji.ac.il> <Z1XbDqEzeI_Qvf8I@fc.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000072be210628c6015b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 8, 2024 at 10:44=E2=80=AFAM Kurt Jaeger <pi@freebsd.org> wrote:

> Hi!
>
> > Does dmesg|grep uart
> > Show the console?
>
> No 8-(
>
> serial shows:
>
> Dual Console: Serial Primary, Video Secondary
> intsmb0: <AMD SB600/7xx/8xx/9xx SMBus Controller> at device 20.0 on pci0
> smbus0: <System Management Bus> on intsmb0
> re0: link state changed to UP
> re1: link state changed to UP
> re2: link state changed to UP
> lo0: link state changed to UP
> re0: link state changed to DOWN
> re2: link state changed to DOWN
>
> dmesg if logged into it via ssh shows:
>
> Dual Console: Serial Primary, Video Secondary
> intsmb0: <AMD SB600/7xx/8xx/9xx SMBus Controller> at device 20.0 on pci0
> smbus0: <System Management Bus> on intsmb0
> re0: link state changed to UP
> re1: link state changed to UP
> re2: link state changed to UP
> lo0: link state changed to UP
> re0: link state changed to DOWN
> re2: link state changed to DOWN
> re0: link state changed to UP
> re2: link state changed to UP
>
> I then tried to use net/realtek-re-kmod, and then both show:
>
> smbus0: <System Management Bus> on intsmb0
> lo0: link state changed to UP
> re0: link state changed to UP
> re2: link state changed to UP
>

So, there should be a line like

uart0: console (115200,n,8,1)

if not, then hw.uart.console isn't making it through. If you are using a
custom kernel, you can add that to a file and add 'env
/path/to/file/on/build/host' to the kernel config to wire that into the
kernel, should the boot path make it hard to set an initial environment
otherwise. Also, DHCP should still try to grab /boot/loader.conf from the
tftp/http server as well. That might also be something that needs debugging
(or hopefully just correct config).

Warner


> --
> pi@FreeBSD.org         +49 171 3101372                  Now what ?
>

--00000000000072be210628c6015b
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 Sun, Dec 8, =
2024 at 10:44=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; Does dmesg|grep uart<br>
&gt; Show the console?<br>
<br>
No 8-(<br>
<br>
serial shows:<br>
<br>
Dual Console: Serial Primary, Video Secondary<br>
intsmb0: &lt;AMD SB600/7xx/8xx/9xx SMBus Controller&gt; at device 20.0 on p=
ci0<br>
smbus0: &lt;System Management Bus&gt; on intsmb0<br>
re0: link state changed to UP<br>
re1: link state changed to UP<br>
re2: link state changed to UP<br>
lo0: link state changed to UP<br>
re0: link state changed to DOWN<br>
re2: link state changed to DOWN<br>
<br>
dmesg if logged into it via ssh shows:<br>
<br>
Dual Console: Serial Primary, Video Secondary<br>
intsmb0: &lt;AMD SB600/7xx/8xx/9xx SMBus Controller&gt; at device 20.0 on p=
ci0<br>
smbus0: &lt;System Management Bus&gt; on intsmb0<br>
re0: link state changed to UP<br>
re1: link state changed to UP<br>
re2: link state changed to UP<br>
lo0: link state changed to UP<br>
re0: link state changed to DOWN<br>
re2: link state changed to DOWN<br>
re0: link state changed to UP<br>
re2: link state changed to UP<br>
<br>
I then tried to use net/realtek-re-kmod, and then both show:<br>
<br>
smbus0: &lt;System Management Bus&gt; on intsmb0<br>
lo0: link state changed to UP<br>
re0: link state changed to UP<br>
re2: link state changed to UP<br></blockquote><div><br></div><div>So, there=
 should be a line like</div><div><br></div><div>uart0: console (115200,n,8,=
1)</div><div><br></div><div>if not, then hw.uart.console isn&#39;t making i=
t through. If you are using a custom kernel, you can add that to a file and=
 add &#39;env /path/to/file/on/build/host&#39; to the kernel=C2=A0config to=
 wire that into the kernel, should the boot path make it hard to set an ini=
tial environment otherwise. Also, DHCP should still try to grab /boot/loade=
r.conf from the tftp/http server as well. That might also be something that=
 needs debugging (or hopefully just correct config).</div><div><br></div><d=
iv>Warner</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex">
-- <br>
pi@FreeBSD.org=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+49 171 3101372=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Now what ?<br>
</blockquote></div></div>

--00000000000072be210628c6015b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrrpdaR_4Zyj3WgZTj7EcXT-YzdaeD%2BM-0ucUTDs9Aucg>