From nobody Sun Apr 21 10:06:39 2024 X-Original-To: freebsd-questions@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 4VMkYz44Ywz5HwRS for ; Sun, 21 Apr 2024 10:06:47 +0000 (UTC) (envelope-from freebsd-questions@ymmv.dk) Received: from mail01.ymmv.dk (193-106-164-141.ip4.fiberby.net [193.106.164.141]) by mx1.freebsd.org (Postfix) with ESMTP id 4VMkYz1kBDz4tlr; Sun, 21 Apr 2024 10:06:47 +0000 (UTC) (envelope-from freebsd-questions@ymmv.dk) Authentication-Results: mx1.freebsd.org; none Received: from c02qx0.local (193-106-164-140.ip4.fiberby.net [193.106.164.140]) by mail01.ymmv.dk (Postfix) with ESMTPSA id A6C0D1261AF; Sun, 21 Apr 2024 12:06:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ymmv.dk; s=ymmv-mail-dkim; t=1713694000; bh=3KMpumtXmHBKuk34YvZ3p7ZeHBAvXD8rMI5EfUzqMgo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=LcBNOdUU4paHM1Rw3AGGSquCWs2qFe76vwkSa7bqnNl98PhMkkE7QcfInz53jrU1f vXq51DIFu8xZYKIMX793HTPvt5lBYx2yNSTlhplpj9p9G6YZ2Mf0x4F40QwIIIWBbT AisFPqi5+3OiJboGiDqVZs31EFxUphUA7z7nhWRu6wccukSMnCa70XSjmfMVE1AyY4 Dvz6Dt+2nZ/wNGZ3LyVaz3ognCDmpr10uiIprN2njKraLnnAXWOjBebH72+I++lTXV /GqyU9Miw2Qkjh2YcRbH8YXz42Cm/k/CTqR46yKwCdfI2Onx9gd6n/yXPUA5kmbaJZ vasCHCqbXfWug== Date: Sun, 21 Apr 2024 12:06:39 +0200 From: Jon Clausen To: Dag-Erling =?utf-8?B?U23DuHJncmF2?= Cc: freebsd-questions@freebsd.org Subject: Re: serial, basic stuff Message-ID: References: <86le57ajwa.fsf@ltc.des.dev> <86cyqj9i3z.fsf@ltc.des.dev> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86cyqj9i3z.fsf@ltc.des.dev> X-Spamd-Bar: ---- 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:42541, ipnet:193.106.164.0/22, country:DK] X-Rspamd-Queue-Id: 4VMkYz1kBDz4tlr On 2024-04-21 11:32:00 (+0200), Dag-Erling Smørgrav wrote: > Jon Clausen writes: > > In the meantime I realised that there is at least one complication with my > > idea of "the simple setup" (where jh05:port0 <-> jh06:port0) > > > > On both systems getty is already 'listening' on ttyu0. > > Yes, because both systems have a serial console enabled on port 0, indeed > so you need to use port 1 to dial out (to port 0 on the other end), well that's what I'm aiming for once I get everything sorted. The reason I wanted to use "like" port to begin with, is that the two ports are different, both in terms of which lines exist, but also (especially) they are different power levels. So this complicates things, because I need to insert a RS232/TTL adapter, which then introduces more "unknowns" to the equation. > or > disable the serial console on either or both (add `console="vidconsole"` > to /etc/loader.conf, make sure you don't have `-D`, `-P`, or `-h` in > /boot.config or /boot/config) and make sure getty is running on port 1 > instead (change `onifconsole` to `on` on the ttyu1 line in /etc/ttys). I think I'd rather leave the port0 setup as is, and just use port1 (on both systems) for now. This means I'll need to get getty set up on one side, and make the connection from the other side. Once I have a working setup like that, I can then start working towards the port1(client) to port0(server) setup br /jon -- YMMV