- Turn screens into programlisting
- use <keycap> - use macos makro Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D26601
This commit is contained in:
parent
7080ac9337
commit
62919b4f2a
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=54550
1 changed files with 8 additions and 8 deletions
|
@ -127,19 +127,19 @@
|
|||
<para>To enable USB device mode serial ports, add those lines
|
||||
to <filename>/etc/ttys</filename>:</para>
|
||||
|
||||
<screen>ttyU0 "/usr/libexec/getty 3wire" vt100 onifconsole secure
|
||||
ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure</screen>
|
||||
<programlisting>ttyU0 "/usr/libexec/getty 3wire" vt100 onifconsole secure
|
||||
ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure</programlisting>
|
||||
|
||||
<para>Then add these lines to
|
||||
<filename>/etc/devd.conf</filename>:</para>
|
||||
|
||||
<screen>notify 100 {
|
||||
<programlisting>notify 100 {
|
||||
match "system" "DEVFS";
|
||||
match "subsystem" "CDEV";
|
||||
match "type" "CREATE";
|
||||
match "cdev" "ttyU[0-9]+";
|
||||
action "/sbin/init q";
|
||||
};</screen>
|
||||
};</programlisting>
|
||||
|
||||
<para>Reload the configuration if
|
||||
&man.devd.8; is already running:</para>
|
||||
|
@ -175,13 +175,13 @@ hw.usb.template=3</screen>
|
|||
|
||||
<screen>&prompt.root; <userinput>cu -l /dev/ttyU0</userinput></screen>
|
||||
|
||||
<para>After pressing the Enter key a few times you will see
|
||||
<para>After pressing the <keycap>Enter</keycap> key a few times you will see
|
||||
a login prompt.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Connecting to USB Device Mode Serial Ports from
|
||||
macOS</title>
|
||||
&macos;</title>
|
||||
|
||||
<para>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</screen>
|
|||
those lines to <filename>/boot/loader.conf</filename>, creating
|
||||
it if it does not already exist:</para>
|
||||
|
||||
<screen>if_cdce_load="YES"
|
||||
hw.usb.template=1</screen>
|
||||
<programlisting>if_cdce_load="YES"
|
||||
hw.usb.template=1</programlisting>
|
||||
|
||||
<para>To load the module and set the template without rebooting
|
||||
use:</para>
|
||||
|
|
Loading…
Reference in a new issue