From nobody Mon Dec 16 08:23:21 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 4YBXyZ2mYDz5h6xS for ; Mon, 16 Dec 2024 08:23:34 +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 4YBXyX571Hz4hMY; Mon, 16 Dec 2024 08:23:32 +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=HAbtTevr; dkim=none ("invalid DKIM record") header.d=cse.huji.ac.il header.s=57791128 header.b=tYwyp6MO; 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=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=EpqciXf9+OR/9hIPGC6z+taxaxFqXT1Ppn94YZUqr8M=; b=HAbtTevrwt7OtaOO9FKJMrvFZtLkHP5QC06eU3RD3a9BJ9nG/5QUyWQZ7L9OrRdgYTFH/QU8DtHInulZ6mY6pFUVulJzK/BLN/sOlhyf1h85Z94cYXmarHwPI2F79QU2nll/xMSWd/OjfnWOaSzn+25TL7A7zyhmJmaJzGHfA7q1oJtT71qkhbTILRyY40KcxzV7Zn98UQHrhj0qOzPlYt/AXz6Yn7Eypc38RTXz4WivAAE0lwp0bZbmxE8kclFToEE9WO/FtC9zXayFha67WQFBWOtxY2DbIlGQZAXDN5kHK39LOWUpik91205sXCl+Q7zhYhuY1wWyfg9Or1wpmQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=EpqciXf9+OR/9hIPGC6z+taxaxFqXT1Ppn94YZUqr8M=; b=tYwyp6MOP9PWiqC77ETEFuqRPcMPV2exLP0q6vTO69MdfPjexsiiuUb4K5GnjlYwPLCWlTEgrPtLACoJybUQ1CDwoLzH9L7mdX7GuzhEn3DTBhTAKqL0pda16NDEw3Fi9CSswpWOc/BXWKWtttfng+lcNeTNhLC8zvlWhnmwTH+1cuQCQa0S+swtQr2RsNlV3t3q3cR6y162V663z0ZSjo1TaELMgMg5QcvMRqOGVNHNBOrGDPt+rPG+ubesY8cGqHEHS9F/UzX2lwAyLmTtILJz1ueNvubCzgAXIsbQQ65Jym5ICDAF2GdH93V60V1PoR8tGFZTeCdWofKuAjNxbw==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1tN6Nt-00016E-5d; Mon, 16 Dec 2024 10:23:21 +0200 Content-Type: text/plain; charset=us-ascii 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 From: Daniel Braniss In-Reply-To: <3F04B2DC-1AA9-4663-BCDE-3EFD0B01527E@cs.huji.ac.il> Date: Mon, 16 Dec 2024 10:23:21 +0200 Cc: Warner Losh , Freebsd-stable List Content-Transfer-Encoding: quoted-printable Message-Id: <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> To: Kurt Jaeger X-Mailer: Apple Mail (2.3696.120.41.1.10) X-Spamd-Result: default: False [-3.19 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.987]; DMARC_POLICY_ALLOW(-0.50)[huji.ac.il,none]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; R_DKIM_PERMFAIL(0.00)[cse.huji.ac.il:s=57791128]; ASN(0.00)[asn:378, ipnet:132.64.0.0/15, country:IL]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[danny]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[stable@freebsd.org]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_MIXED(0.00)[]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+,cse.huji.ac.il:~] X-Rspamd-Queue-Id: 4YBXyX571Hz4hMY X-Spamd-Bar: --- > On 9 Dec 2024, at 10:35, Daniel Braniss wrote: >=20 > 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=20 > 5. Cons: Serial > and only the kernel messages. >=20 > no /dev/console, no /dev/ttyu0, but can remote login. >=20 > btw, all works fine with a 13.1 kernel >=20 >> On 8 Dec 2024, at 20:27, Kurt Jaeger wrote: >>=20 >> Hi! >>=20 >>> So, there should be a line like >>>=20 >>> uart0: console (115200,n,8,1) >>>=20 >>> if not, then hw.uart.console isn't making it through. >>=20 >> So somehow the uarts are not found during initialization ? >>=20 >>> If you are using a custom kernel, >>=20 >> It's the generic kernel. >>=20 >>> 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). >>=20 >> 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 >>=20 >> --=20 >> pi@FreeBSD.org +49 171 3101372 Now what ? >=20