From 62919b4f2acffc89c74ef6823931732885d4bf6f Mon Sep 17 00:00:00 2001 From: Bjoern Heidotting Date: Wed, 30 Sep 2020 11:29:07 +0000 Subject: [PATCH] - Turn screens into programlisting - use - use macos makro Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D26601 --- .../books/handbook/usb-device-mode/chapter.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml b/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml index de7643ed49..492dcb6ac7 100644 --- a/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/usb-device-mode/chapter.xml @@ -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: