From nobody Mon Dec 16 12:01:38 2024 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YBdpF67kxz5hLSR for ; Mon, 16 Dec 2024 12:01:41 +0000 (UTC) (envelope-from SRS0=NOSW=TJ=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBdpF3x5Kz41f3; Mon, 16 Dec 2024 12:01:41 +0000 (UTC) (envelope-from SRS0=NOSW=TJ=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Mon, 16 Dec 2024 13:01:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1734350499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Mqs2rDIVkotLEplKw3vmfmErWfqsVIEFA30xz3Y0iRI=; b=ptgFdrgaRnrHDs/Y1TtswULgY4cMKuyK/QPO6gSTPb8q2E3WdQqK4T8BFczCPywC+kbeX9 0BMVHkUJIQoSwErYqc4xDRw1aWge1+1H968m5rXK9bMWNwhP1hqFuBkhZUm6F0t4iLW1bf 4EEANHPd/zayFvfrBJ6LWMtEgs4JF/X/NDooQRf0ZoastZ5KmA2nVbqCzYm3qqGZLyIiAu 8JAvnw+1yWOC7VMK1GObir70N7mN2M4rXFw7e0xXRRojNMH4RPvgM4kngMSUZliRy2qPaR xjwvhS0VoAM2QpkzKCQ3Vj6PMzKH8sbjP2/U7yR0kV5FBXlXvRO9SSaTTa0GAw== From: Ronald Klop To: Daniel Braniss Cc: Freebsd-stable List , Warner Losh , Kurt Jaeger Message-ID: <501640865.7444.1734350498438@localhost> In-Reply-To: <044EAFE1-DCB8-439C-A422-4B5F8CD4C37C@cs.huji.ac.il> References: <365D866D-F7D2-4DB6-AFFB-B4C3829D8467@cs.huji.ac.il> <3F04B2DC-1AA9-4663-BCDE-3EFD0B01527E@cs.huji.ac.il> <044EAFE1-DCB8-439C-A422-4B5F8CD4C37C@cs.huji.ac.il> Subject: Re: not working /dev/console List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7443_110460761.1734350498418" X-Mailer: Realworks (732.103) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4YBdpF3x5Kz41f3 X-Spamd-Bar: ---- ------=_Part_7443_110460761.1734350498418 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Daniel Braniss Datum: maandag, 16 december 2024 09:23 Aan: Kurt Jaeger CC: Warner Losh , Freebsd-stable List Onderwerp: Re: not working /dev/console > > > > On 9 Dec 2024, at 10:35, Daniel Braniss wrote: > > > > hi Kurt & Warner: > > im trying on a PCengines apu2 fbsd 14.2, but have the same symptoms, no console. > > dmesg|grep uart -> nothing. > > after some trials the best i have is: > > the bsd-menu showing > > 5. Cons: Serial > > and only the kernel messages. > > > > no /dev/console, no /dev/ttyu0, but can remote login. > > > > btw, all works fine with a 13.1 kernel > > > >> On 8 Dec 2024, at 20:27, Kurt Jaeger wrote: > >> > >> Hi! > >> > >>> So, there should be a line like > >>> > >>> uart0: console (115200,n,8,1) > >>> > >>> if not, then hw.uart.console isn't making it through. > >> > >> So somehow the uarts are not found during initialization ? > >> > >>> If you are using a custom kernel, > >> > >> It's the generic 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). > >> > >> I'll investigate further. > > > I made a diff from booting 13.1 and 14.2 with boot_verbose, and this stands out: > (only in the 13.1) > > -pcib0: allocated type 4 (0x3f8-0x3f8) for rid 0 of uart0 > -pcib0: allocated type 4 (0x3f8-0x3f8) for rid 0 of uart0 > -uart0: <16550 or compatible> at port 0x3f8 irq 4 flags 0x10 on isa0 > -pcib0: allocated type 4 (0x3f8-0x3f8) for rid 0 of uart0 > -uart0: console (115200,n,8,1) > -ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 2 vector 53 > -uart0: fast interrupt > -uart0: PPS capture mode: DCD > -pcib0: allocated type 4 (0x2f8-0x2f8) for rid 0 of uart1 > -pcib0: allocated type 4 (0x2f8-0x2f8) for rid 0 of uart1 > -uart1: <16550 or compatible> at port 0x2f8 irq 3 on isa0 > -pcib0: allocated type 4 (0x2f8-0x2f8) for rid 0 of uart1 > -ioapic0: routing intpin 3 (ISA IRQ 3) to lapic 3 vector 53 > -uart1: fast interrupt > -uart1: PPS capture mode: DCD > > does this help? > cheers, > danny > > > >> > >> -- > >> pi@FreeBSD.org +49 171 3101372 Now what ? > > > > > > > Hi, A change was made that uart does not attach on isa anymore. I think this was the commit about it: https://cgit.freebsd.org/src/commit/?h=releng/14.2&id=74b9fc7adcf4afb1c3039267e338c3cfdf022957 I don't know much about the details. Somebody else can tell more. Regards, Ronald. ------=_Part_7443_110460761.1734350498418 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Van: Daniel Braniss <danny@cs.huji.ac.il>
Datum: maandag, 16 december 2024 09:23
Aan: Kurt Jaeger <pi@freebsd.org>
CC: Warner Losh <imp@bsdimp.com>, Freebsd-stable List <stable@freebsd.org>
Onderwerp: Re: not working /dev/console



> On 9 Dec 2024, at 10:35, Daniel Braniss <danny@cs.huji.ac.il> wrote:
>
> hi Kurt & Warner:
> im trying on a PCengines apu2 fbsd 14.2, but have the same symptoms, no console.
> dmesg|grep uart -> nothing.
> after some trials the best i have is:
>   the bsd-menu showing
>       5. Cons: Serial
> and only the kernel messages.
>
> no /dev/console, no /dev/ttyu0, but can remote login.
>
> btw, all works fine with a 13.1 kernel
>
>> On 8 Dec 2024, at 20:27, Kurt Jaeger <pi@freebsd.org> wrote:
>>
>> Hi!
>>
>>> So, there should be a line like
>>>
>>> uart0: console (115200,n,8,1)
>>>
>>> if not, then hw.uart.console isn't making it through.
>>
>> So somehow the uarts are not found during initialization ?
>>
>>> If you are using a custom kernel,
>>
>> It's the generic 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).
>>
>> I'll investigate further.


I made a diff from booting 13.1 and 14.2 with boot_verbose, and this stands out:
(only in the 13.1)

-pcib0: allocated type 4 (0x3f8-0x3f8) for rid 0 of uart0
-pcib0: allocated type 4 (0x3f8-0x3f8) for rid 0 of uart0
-uart0: <16550 or compatible> at port 0x3f8 irq 4 flags 0x10 on isa0
-pcib0: allocated type 4 (0x3f8-0x3f8) for rid 0 of uart0
-uart0: console (115200,n,8,1)
-ioapic0: routing intpin 4 (ISA IRQ 4) to lapic 2 vector 53
-uart0: fast interrupt
-uart0: PPS capture mode: DCD
-pcib0: allocated type 4 (0x2f8-0x2f8) for rid 0 of uart1
-pcib0: allocated type 4 (0x2f8-0x2f8) for rid 0 of uart1
-uart1: <16550 or compatible> at port 0x2f8 irq 3 on isa0
-pcib0: allocated type 4 (0x2f8-0x2f8) for rid 0 of uart1
-ioapic0: routing intpin 3 (ISA IRQ 3) to lapic 3 vector 53
-uart1: fast interrupt
-uart1: PPS capture mode: DCD

does this help?
cheers,
    danny


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

 



Hi,

A change was made that uart does not attach on isa anymore.
I think this was the commit about it:
https://cgit.freebsd.org/src/commit/?h=releng/14.2&id=74b9fc7adcf4afb1c3039267e338c3cfdf022957

I don't know much about the details. Somebody else can tell more.

Regards,
Ronald.
  ------=_Part_7443_110460761.1734350498418--