From nobody Mon Dec 16 13:48:53 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 4YBhB944gcz5hSJT for ; Mon, 16 Dec 2024 13:49:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBhB93Zpgz4MXS for ; Mon, 16 Dec 2024 13:49:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-7fd581c2bf4so2344506a12.3 for ; Mon, 16 Dec 2024 05:49:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1734356944; x=1734961744; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=znkt43psgkW9jOq/JRx4ifaGuFeSfx1GLhYFNNC9DOs=; b=qNkiRlUysKZjlnoqrxY913IB7IG39nSN5zu1jjqfC1qNsJL4I0sVQ08wolQXSe0YT5 UW+ngcgUQkuvGAYbgCDwEPh3TxkfKpaHyAme0aB85/j3ftewJpS+7EOs7ES5bLL3qq1E DrNEIUmO91JpzvnxPA+jHbsJPxQq8Y8tEALbPR0Bt8MSA8I1VaN05mdXERjy6Xran+O3 PFYoGuGbzeleCEIrLG8orhgTJ9ccJHPoEzdiQ3gEyBq+rjtlcrho6tOA8MlV2pYaOk+Z sCst+LTvJ78cWvrO6xp0AsjxCEVLRNpEgqjXDjy0dSQxr3XR/jLEi8WKuMQ/zauGHUgo A/gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734356944; x=1734961744; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=znkt43psgkW9jOq/JRx4ifaGuFeSfx1GLhYFNNC9DOs=; b=FZoWWvNnshvYY23n5Q22bluYs8OHVHqezTwBeiDy4zxopY8Va13yl/zTZqiElXcVvL FAldH9qDw4wOmYu6icx1Xy0DjPClNQuQvoESmDJ+3uuxqub5KyIkYiifVWNBFbV+z1zw q5UeeMDQN6V/qtn9SNtehTpiT6nmjq9Sw+VQbHSp+SpHZZQuJ1bLK2LnsWNNCFYs/WJ1 yDCmL12YMhrNkjQ2+YrT/bM+EhrA6eINCQsxqM3j0uYNNLMsc/lEy8w1CtDsMKthX3eg TMZNCGUkW2+g1r1GZpTi/rWuNzkFBTAPBhpx5YCzAa0efYixTIFMR+l2fIDr+wgCyS7V SF0A== X-Forwarded-Encrypted: i=1; AJvYcCWr2SILXw/hHfv0vcYa028vDssAkb36y780rotYRu3i5kIQfKlXZSb/WPSCy2wlHaVddOd+epM=@freebsd.org X-Gm-Message-State: AOJu0YyGTf6gqsZqWfoKcnikqrnixVjcOp9TcsbYWisVr4KRI4NTxisk puTlOBXP/ygfesE5NngD5LC/YQKH5SYo8B8/2T6VLkOqPqLGyRm66/Jdjqd28NnKDf79BKQBDuA dB356oWqdPeP0Oasjf6ID9I51Nie3d9Fb+M+vDg== X-Gm-Gg: ASbGncuiCda+22qfJ9DbLgdP4BNOSl1wXjHCDCuHlZtQY59HI81tsrSXOZh2P93fLeh TR5htWJw4l92k1QcMiqe9iHjucUHYFTUr29QI6w== X-Google-Smtp-Source: AGHT+IFCSRGMlomv3a/m15DJq1qWRjtDyrb3YWJn4y7aet6R6e19cfqx4wff5W1rLgbVh+hiMI5jHO8MWLf4GCxu2SQ= X-Received: by 2002:a17:90b:2548:b0:2ee:8aa7:94a0 with SMTP id 98e67ed59e1d1-2f2901b7cf7mr16627185a91.32.1734356944070; Mon, 16 Dec 2024 05:49:04 -0800 (PST) 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 References: <3F04B2DC-1AA9-4663-BCDE-3EFD0B01527E@cs.huji.ac.il> <044EAFE1-DCB8-439C-A422-4B5F8CD4C37C@cs.huji.ac.il> <501640865.7444.1734350498438@localhost> In-Reply-To: From: Warner Losh Date: Mon, 16 Dec 2024 06:48:53 -0700 Message-ID: Subject: Re: not working /dev/console To: Kurt Jaeger Cc: John Baldwin , Daniel Braniss , Freebsd-stable List Content-Type: multipart/alternative; boundary="00000000000090c59e062963710a" 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4YBhB93Zpgz4MXS X-Spamd-Bar: ---- --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 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


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 l= ost.
>
> 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 v= ia ACPI, so you'll need to add the following to
loader.conf

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

Warner
--00000000000090c59e062963710a--