From owner-svn-doc-all@freebsd.org Wed Sep 30 11:29:07 2020 Return-Path: Delivered-To: svn-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AD2FF424F58; Wed, 30 Sep 2020 11:29:07 +0000 (UTC) (envelope-from bhd@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C1YtW47bfz47nF; Wed, 30 Sep 2020 11:29:07 +0000 (UTC) (envelope-from bhd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7133D1F0A9; Wed, 30 Sep 2020 11:29:07 +0000 (UTC) (envelope-from bhd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08UBT7pU037759; Wed, 30 Sep 2020 11:29:07 GMT (envelope-from bhd@FreeBSD.org) Received: (from bhd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08UBT7FX037758; Wed, 30 Sep 2020 11:29:07 GMT (envelope-from bhd@FreeBSD.org) Message-Id: <202009301129.08UBT7FX037758@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bhd set sender to bhd@FreeBSD.org using -f From: Bjoern Heidotting Date: Wed, 30 Sep 2020 11:29:07 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r54550 - head/en_US.ISO8859-1/books/handbook/usb-device-mode X-SVN-Group: doc-head X-SVN-Commit-Author: bhd X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/handbook/usb-device-mode X-SVN-Commit-Revision: 54550 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2020 11:29:07 -0000 Author: bhd Date: Wed Sep 30 11:29:07 2020 New Revision: 54550 URL: https://svnweb.freebsd.org/changeset/doc/54550 Log: - Turn screens into programlisting - use - use macos makro Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D26601 Modified: head/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml Tue Sep 29 17:31:03 2020 (r54549) +++ head/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml Wed Sep 30 11:29:07 2020 (r54550) @@ -127,19 +127,19 @@ To enable USB device mode serial ports, add those lines to /etc/ttys: - ttyU0 "/usr/libexec/getty 3wire" vt100 onifconsole secure -ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure + ttyU0 "/usr/libexec/getty 3wire" vt100 onifconsole secure +ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure Then add these lines to /etc/devd.conf: - notify 100 { + notify 100 { match "system" "DEVFS"; match "subsystem" "CDEV"; match "type" "CREATE"; match "cdev" "ttyU[0-9]+"; action "/sbin/init q"; -}; +}; Reload the configuration if &man.devd.8; is already running: @@ -175,13 +175,13 @@ hw.usb.template=3 &prompt.root; cu -l /dev/ttyU0 - After pressing the Enter key a few times you will see + After pressing the Enter key a few times you will see a login prompt. Connecting to USB Device Mode Serial Ports from - macOS + &macos; To connect to a board configured to provide USB device mode serial ports, connect the USB host, such as a laptop, @@ -238,8 +238,8 @@ hw.usb.template=3 those lines to /boot/loader.conf, creating it if it does not already exist: - if_cdce_load="YES" -hw.usb.template=1 + if_cdce_load="YES" +hw.usb.template=1 To load the module and set the template without rebooting use: