From nobody Sun Apr 21 13:18:15 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 4VMppz0ljcz5JBrS for ; Sun, 21 Apr 2024 13:18:19 +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 4VMppy5JyLz42hd; Sun, 21 Apr 2024 13:18:18 +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 394D51261F8; Sun, 21 Apr 2024 15:18:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ymmv.dk; s=ymmv-mail-dkim; t=1713705497; bh=O978SzdvVTCjJh1z8sojFWUNshINbH3pnOve0lduMmY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=OECJLHS/qbgO5ciDCSHjXLS9rXVvDzWkry37B8C/GAauq3KOdA9cKR43/9WgoMA7o 4u7bvGBxOlYHuNS70qZ2rBM2rCaIkuJT4yNwRwca3Ltx6C0RHhvm08faC/ZP9Rlzgb v02ZicyjjfP8rTf3EnYcBN2J5a4ucxz5Kf1Ku3GHsT0+c9mdjbMfaTNdfqofxxmJny QKNstWI1kZJlvbUfddcdgmNOhQL0cvsarp0WajleusIzkrrBF81mgopdLO0ffqIR7E vUJHKRLbg2QnNMENgM02En7/Oym3t1XnlWPIIxtqPpzfK7bKlZUZ201o4AMANBwdlm 8zQTmrhsUXBdg== Date: Sun, 21 Apr 2024 15:18:15 +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> <2e4dm4ow35zarex722okmj2wfcsck3pretodmuza63ccpywqov@qhbguzffdkxc> <868r16anpc.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <868r16anpc.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: 4VMppy5JyLz42hd On 2024-04-21 14:45:51 (+0200), Dag-Erling Smørgrav wrote: > Jon Clausen writes: > > So at this point, I should be ready to move on to attempting the setup that > > I actually want: > > > > jh05:cuau1 <-> jh06:ttyu0 > > > > > > This does not work out of the box. > > “This does not work” is not a very useful statement. True. There's not much to report though: root@jh05:~ # screen /dev/cuau1 115200 gets me a blank screen, and no response to keyboard input. root@jh05:~ # cu -l /dev/cuau1 -s 115200 Connected is functionally the same: nothing further happens, no response from either system to keyboard input > If you want to run the console on FreeBSD 13 or older at 115200 bps, you > will have to add `comconsole_speed="115200"` to /boot/loader.conf and > `-S115200` to /boot.config and reboot. These systems are already set up with 115200, right from the installation. I routinely connect to them with the USB-to-serial adapter from my laptop, so I'm sure there's no issue with ttyu0 as such. > On FreeBSD 14 and newer, it is > already the default and you shouldn't have to change anything. Nice. That's good to know, but 14 is "not right now" for this setup. > If it's > still not working, I would suggest hooking up an oscilloscope to the > level shifter to check that it's working properly. Well, the oscilloscope I have is old, and I'm not convinced it even works. But the level shifter has been working very recently, so I have high confidence that it still is. The thing is though, that up until now I've seen "silent non-success" every time the parameters on either of the involved devices weren't "just right". So I suppose I'll just have to go through everything with a fine tooth comb, to make sure that all (stty) settings match. br /jon -- YMMV