From owner-freebsd-arm@freebsd.org Sat Jun 1 17:58:12 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C21B15C2508 for ; Sat, 1 Jun 2019 17:58:12 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from forward106j.mail.yandex.net (forward106j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A330A71144 for ; Sat, 1 Jun 2019 17:58:09 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from mxback12o.mail.yandex.net (mxback12o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::63]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 9BE9011A1874 for ; Sat, 1 Jun 2019 20:57:57 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback12o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id qZQD8v2lUE-vvZab4k8; Sat, 01 Jun 2019 20:57:57 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ara-ler.com; s=mail; t=1559411877; bh=dvSX5hoA/LwOpq2k/kcrpeA1hvDKu9l0Q1nmIRsNqFA=; h=Subject:To:From:Date:Message-ID; b=vPveZzRJtftbNWJpxTlpVxVK+zyyJiqaL7ta9mOX7ZB0SMwarb6GCmnwT/J7lkzr+ r9ON5dGoCF0VOibNytcAXpb+03owNnvZLQE6pwUvW9WgovQTI41qXiXRuDjA6lqmih PR05mVFYf2CeTKk0lOyxhH7wqaeTjO5qA69t8rlM= Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 0LhBbhztmE-vt0uR1g7; Sat, 01 Jun 2019 20:57:56 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Date: Sat, 1 Jun 2019 11:57:53 -0600 From: Sergey Manucharian To: FreeBSD-ARM Subject: Default serial console Message-ID: <20190601175753.GN33704@dendrobates> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.11.3 (2019-02-01) X-Rspamd-Queue-Id: A330A71144 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ara-ler.com header.s=mail header.b=vPveZzRJ; spf=pass (mx1.freebsd.org: domain of sm@ara-ler.com designates 2a02:6b8:0:801:2::109 as permitted sender) smtp.mailfrom=sm@ara-ler.com X-Spamd-Result: default: False [-4.80 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[ara-ler.com:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0::/52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[ara-ler.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[ara-ler.com:+]; MX_GOOD(-0.01)[mx.yandex.net,mx.yandex.net,mx.yandex.net,mx.yandex.net,mx.yandex.net]; NEURAL_HAM_SHORT(-0.98)[-0.983,0]; IP_SCORE(-1.71)[ipnet: 2a02:6b8::/32(-4.74), asn: 13238(-3.80), country: RU(0.01)]; RCVD_IN_DNSWL_LOW(-0.10)[9.0.1.0.0.0.0.0.0.0.0.0.2.0.0.0.1.0.8.0.0.0.0.0.8.b.6.0.2.0.a.2.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MIME_TRACE(0.00)[0:+] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jun 2019 17:58:12 -0000 How to change the default serial console? I couldn't find any reference. In my BeagleBone Black the boot messages and login prompt go to /dev/ttyu0. With the peripherals I use, that port is not physically accessible, and I'd like to use /dev/ttyu1 instead. I'm able to get login prompt on ttyu1 by editing /etc/ttys, which is good and perfectly works as main console, but the boot messages obviously go to ttyu0: % grep '^uart' /var/run/dmesg.boot uart0: mem 0x44e09000-0x44e0afff irq 11 on simplebus0 uart0: console (115384,n,8,1) uart1: mem 0x48024000-0x48025fff irq 13 on simplebus0 I tried setting flags by adding "hint.uart.*" to /boot/device.hints, but it doesn't help. I recompiled the FDT (am335x-boneblack.dtb) with disabled uart0 hoping that the only enabled uart2 will be used as the default console. Now the former /dev/ttyu1 becomes /dev/ttyu0, but the kernel still doesn't consider it the default console: % grep '^uart' /var/run/dmesg.boot uart0: mem 0x48024000-0x48025fff irq 13 on simplebus0 Thanks for ideas and directions! Ϟϻ