From owner-freebsd-stable@freebsd.org Tue Aug 14 13:57:57 2018 Return-Path: Delivered-To: freebsd-stable@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 A3C7D1078D67 for ; Tue, 14 Aug 2018 13:57:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com [IPv6:2607:f8b0:4001:c0b::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35EFC8FF42 for ; Tue, 14 Aug 2018 13:57:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22f.google.com with SMTP id h20-v6so19655225itf.2 for ; Tue, 14 Aug 2018 06:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=4+Z16LvZEzHHzQNFVMwwtj1wmUlrKnG5Rr422q3hUC0=; b=JLLnACyW+Ao4tG0yFnHBC5L/KqXf4ZlX0rsAUyMrIVxrcT8OrTbzlTFevscmV8pT0o 6RYUHWbNb7KJGqOQCT5x2N3SXAJj8LrwMbFFEeEFf1rv90iRqHiPy9qI1EoT2P49oTLe CK6hvaU0yKrV111gbSondVazUSFvcab6tjZf1pb2icC5mx80XE+HD2YRHcLBkgKUMBNO V1aiYevQM4tCWrii/bkgFd1NJDIeTsopXTl4ezTS9dOjLSLzYzoHxWjmWDV7MGZci3j0 RsDZh3sf/rwLV31EH0tV8XSQU1pcrT/gnQ1FxLaZMFG+vcKQKGP09OJZM3i+oiEd5oa2 HZBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=4+Z16LvZEzHHzQNFVMwwtj1wmUlrKnG5Rr422q3hUC0=; b=ODnRKfZAaH47HdMhmDTKtgvoU2hMgUWQ2f8cwddtgqTCwgwinRD3KdoACf7aCFMAq6 7oIJWWj4E/pcn3UX1ohXl6XGM8+6Log100sinE1aMQm2SL+pof+Nx92vHq+i8wpJMQOw JXCwONpAiF8iLDstxomFMQ2qLJioQfQh71yLv+l/wLPgRKr+FOxZ72tdJ3ZXfp2YcCJn XstlUr+G900yWd0zeYnMzozOFW2qX1NjnwXWWfJPS7PeGTZQNUO/B8whvnBcMSQ5DE83 TDpfOTEcq0AbvxUMueybGxVgeB1YeiS/yguxcH2WvN7k+QRomiJ2Xb7QLn1bs+Q+x0RS 4fVA== X-Gm-Message-State: AOUpUlF2z2PhYe+JDatyBccbDeClCAcFp4J49nVC9/f7efrvuMZi/Tv8 crUUQQ8VqYbw5iin2kMKHtcmvw5pY8I/JAWXSwAVxfrbUSo= X-Google-Smtp-Source: AA+uWPymbtAV/lILW2DH88v/2lenqbmkEHY/re8qSZ9xbNh+kzMN5FhLgUlqMOjb8VOSGcu2vWE854YDY7ZjYB71NTc= X-Received: by 2002:a24:3ec3:: with SMTP id s186-v6mr14515832its.73.1534255076390; Tue, 14 Aug 2018 06:57:56 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:381a:0:0:0:0:0 with HTTP; Tue, 14 Aug 2018 06:57:55 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: References: <661e5d36-6684-fae5-b325-f02ad570f2b4@tu-dortmund.de> <28c22017-7b01-63b0-946a-d0d255af16b2@grosbein.net> <20180814024729.GM2118@home.opsec.eu> From: Warner Losh Date: Tue, 14 Aug 2018 07:57:55 -0600 X-Google-Sender-Auth: svOB_U9EuYt1obaIBXDV_a6lhXs Message-ID: Subject: Re: FreeBSD blocks on BOCHS serial port To: Eugene Grosbein Cc: Kurt Jaeger , FreeBSD-STABLE Mailing List Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2018 13:57:57 -0000 On Tue, Aug 14, 2018 at 2:17 AM, Eugene Grosbein wrote: > 14.08.2018 9:47, Kurt Jaeger wrote: > > >> 14.08.2018 3:15, Alexander Lochmann wrote: > >> > >>>> You should not rely on defaults and make sure you disable modem > control/CD > >>>> either explicitly (using stty(1) etc.) or implicitly by switching to > /dev/cuau0 > >>>> instead of /dev/ttyu0. Flow control settings should match too, for > both sides > >>>> of virtual port. > >>> Thx. I cannot even run 'stty < /dev/ttyu1' to see the current settings. > >>> It simply blocks... > >> > >> Use /dev/ttyu1.init to see defaults and /dev/ttyu1.lock to set/show > >> locked defaults that cannot be changed without disabling a lock first. > > > > Thanks for this pointer! Is that behaviour written down/explained > > somewhere in the man pages ? > > Sort of. Default serial driver for modern FreeBSD is uart(4) that documents > these file names extremely concisely but does not explain their meaning. > Legacy serial driver sio(4) has manual page describing them in detail. I've copied the sio.4 text into uart.4 since it was good at explaining. Warner