From nobody Fri Nov 29 07:20:40 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 4Y04N856FTz5fxJy for ; Fri, 29 Nov 2024 07:20:56 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y04N60SWpz4sRF for ; Fri, 29 Nov 2024 07:20:53 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=knK08qxf; dkim=none ("invalid DKIM record") header.d=cse.huji.ac.il header.s=57791128 header.b=ks8wOHJK; spf=none (mx1.freebsd.org: domain of danny@cs.huji.ac.il has no SPF policy when checking 132.65.116.210) smtp.mailfrom=danny@cs.huji.ac.il; dmarc=pass (policy=none) header.from=huji.ac.il DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=qEX4gIpO6E6igJiIyJwYvXJJnRiWR9CQ4bhEhfpqsVk=; b=knK08qxfDQpLzqTKnCgUMvwvZDJ1ThoWIR0/4rG9giBFRbzRdIUC1albf2M7d2rrHEaMzF9G2x+G7STNtQ4PPJLDQo74+s+vpzuSCIKfYwGMjlNZbnCmDE3vl0EaJ6f3sp2a7gX+8ESybZ6qDffz3nudWTk4rYcjqW4fSKuVGJqAropN1i2W9wBtR1dVgifF6CO1RVO+Z1qqLCm57dJ6ZX/7lcIUkDhDYBusWxhoRRrcJ+4tS4UtEBsf0ggymx9fhecs40lG4tdCq7a6kZSQlfjzY7eI5JpuwHYKrG4fz1ACJBlXlVdJvNU0xzVPxEKn1ilEnbOE3oq7GtzL9r5xgg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=qEX4gIpO6E6igJiIyJwYvXJJnRiWR9CQ4bhEhfpqsVk=; b=ks8wOHJKMVGu1pt5YRaaY1eibufJik1UpQc5sDDqY89SVwZWn6W8VePovLSda0e49DTXxe68cKxBrVfqwxnEX2ZJiQLJZWEV7tRXadqESCcLrlJi2OZlcXgD/UfjNxtUgqfVzAsQYWplctF99ULXZsLuAZ+LxKIauEAR70nu/G8f5v/KOOdOLBEUlh1m5YTMGYx4KvgYqAx4J1SwNBn3JrrTqVjS2PEOx6tXoVIzOlQNA25qF6ChcwlH8HUqq7v0HkFtU7eEJG6QZX724atfnYC45r9xgVN3mEvAfUGb30oAuEN29v/UUL+GTfgxY0OBln9FBJtnKchu7dePed8lRg==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1tGvIu-0003PZ-NP; Fri, 29 Nov 2024 09:20:40 +0200 From: Daniel Braniss Message-Id: <3B9CAA77-1272-4388-95D5-FBE0D78C6EC0@cs.huji.ac.il> Content-Type: multipart/alternative; boundary="Apple-Mail=_4FF191DA-24BD-4DF0-A370-CD2226D6646A" 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 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: not working /dev/console Date: Fri, 29 Nov 2024 09:20:40 +0200 In-Reply-To: Cc: Robert Schulze , stable@freebsd.org To: Warner Losh References: <27224122-3f36-4e88-87b4-c4cfc0a6b7d8@bytecamp.net> X-Mailer: Apple Mail (2.3696.120.41.1.10) X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[huji.ac.il,none]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_DKIM_PERMFAIL(0.00)[cse.huji.ac.il:s=57791128]; ASN(0.00)[asn:378, ipnet:132.64.0.0/15, country:IL]; FREEFALL_USER(0.00)[danny]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; R_SPF_NA(0.00)[no SPF record]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DKIM_MIXED(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+,cse.huji.ac.il:~] X-Rspamd-Queue-Id: 4Y04N60SWpz4sRF X-Spamd-Bar: --- --Apple-Mail=_4FF191DA-24BD-4DF0-A370-CD2226D6646A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 27 Nov 2024, at 18:44, Warner Losh wrote: >=20 >=20 >=20 > On Wed, Nov 27, 2024 at 3:59=E2=80=AFAM Robert Schulze = > wrote: > Hello, >=20 > Am 27.11.24 um 09:34 schrieb Daniel Braniss: > > Hi, > > when the console is not uart0, init=E2=80=99s output, which I assume = uses /dev/console > > is lost. Boot, kernel and login work ok, also debugger. >=20 > you can give the loader a hint, which uart is considered a console. > In my case, any IPMI-console on uart1 works with the following = settings=20 > in /boot/loader.conf: >=20 > -- > boot_multicons=3D"yes" > comconsole_port=3D"0x2f8" >=20 > hint.uart.0.flags=3D"0x0" > hint.uart.1.flags=3D"0x10" > hint.uart.1.baud=3D"115200" > -- >=20 > hint.uart.N.flags=3D"0x10" means: this is a potential system console. > See uart(4) manpage for this. >=20 > hw.uart.console is preferred over the flags. In fact, nobody should be = setting > the flags at all. I should remove them from the man page, or burry = them > in a footnote somewhere. >=20 > So boot_mulitcons w/o boot_serial=3Dyes will mean that video is the > primary console and serial the secondary, and /etc/rc only runs on > the primary console. >=20 > Warner hi Warner: first some facts: my problems are with old dell PowerEdge r720, r320 which have old bios 2020/2019 both have COM2 as boot/serial redirect - tried setting it to COM1 but = that was even worse running diskless FreeBSD 14.2 so after much trial and mostly errors, - the initial messages from boot (loader.efi) is garbled - each = character appears twice - once kernel takes over all is ok, including init(8) output at the moment this works with: hint.uart.1.flags=3D0x10 hw.uart.console=3D=E2=80=9Cio:760,br:115200=E2=80=9D boot_serial=3D=E2=80=9CYES=E2=80=9D console=3D=E2=80=9Cefi,comconsole=E2=80=9D comconsole_port=3D=E2=80=9C0xf8=E2=80=9D need more time (and patience) to check which combination of the above = does the trick thanks danny PS: hw.uart.console: I can=E2=80=99t pass it as argument via DHCP which = is a pity - most of others are ok >=20 > =20 > regards, > Robert Schulze --Apple-Mail=_4FF191DA-24BD-4DF0-A370-CD2226D6646A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 27 Nov 2024, at 18:44, Warner Losh <imp@bsdimp.com> = wrote:



On Wed, Nov 27, 2024 at = 3:59=E2=80=AFAM Robert Schulze <rs@bytecamp.net> wrote:
Hello,

Am 27.11.24 um 09:34 schrieb Daniel Braniss:
>= Hi,
> when the console is not uart0, init=E2=80=99s = output, which I assume uses /dev/console
> is lost. = Boot, kernel and login work ok, also debugger.

you can give the loader a hint, which uart is considered a = console.
In my case, any IPMI-console on uart1 works with = the following settings 
in = /boot/loader.conf:

--
boot_multicons=3D"yes"
comconsole_port=3D"0x2f8"<= br class=3D"">
hint.uart.0.flags=3D"0x0"
hint.uart.1.flags=3D"0x10"
hint.uart.1.baud=3D"115200"
--

hint.uart.N.flags=3D"0x10" means: this is a potential system = console.
See uart(4) manpage for this.

hw.uart.console is preferred over the flags. In fact, nobody = should be setting
the flags at all. I should remove = them from the man page, or burry them
in a footnote = somewhere.

So = boot_mulitcons w/o boot_serial=3Dyes will mean that video is = the
primary console and serial the secondary, and = /etc/rc only runs on
the primary console.

Warner

hi Warner:
first some facts:
my = problems are with old dell PowerEdge r720, r320
which have old = bios 2020/2019
both have COM2 as boot/serial redirect - tried = setting it to COM1 but that was even worse
running diskless = FreeBSD 14.2

so after much trial and = mostly errors,
- the initial messages from boot = (loader.efi) is garbled - each character appears twice
- once = kernel takes over all is ok, including init(8) output
at the = moment this works with:
= hint.uart.1.flags=3D0x10
hw.uart.console=3D=E2=80=9Cio:760,br:115200=E2=80=9D
= boot_serial=3D=E2=80=9CYES=E2=80=9D
= console=3D=E2=80=9Cefi,comconsole=E2=80=9D
comconsole_port=3D=E2=80=9C0xf8=E2=80=9D

need more time (and patience) to check which combination of = the above does the trick
thanks
= danny
PS: hw.uart.console: I can=E2=80=99t pass it as argument = via DHCP which is a pity - most of others are ok


 
regards,
Robert = Schulze

= --Apple-Mail=_4FF191DA-24BD-4DF0-A370-CD2226D6646A--