Fix the kernel configuration lines for serial ports: the 2.X syntax was

used.  Use of 4.X and 5.X syntax and point 5.X user to
/boot/device.hints file.

PR:		docs/45375
Submitted by:	Valentin Nechayev <netch@netch.kiev.ua>
This commit is contained in:
Marc Fonvieille 2002-11-23 12:24:17 +00:00
parent 4bc49ecb20
commit d74b8872d3
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=14997

View file

@ -336,23 +336,31 @@ sio3: type 16550A</screen>
linkend="kernelconfig">.</para>
<para>The relevant device lines for your kernel configuration
file would look like this:</para>
file would look like this, for FreeBSD&nbsp;4.X:</para>
<programlisting>device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr
device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr
device sio2 at isa? port "IO_COM3" tty irq 5 vector siointr
device sio3 at isa? port "IO_COM4" tty irq 9 vector siointr</programlisting>
<programlisting>device sio0 at isa? port IO_COM1 irq 4
device sio1 at isa? port IO_COM2 irq 3
device sio2 at isa? port IO_COM3 irq 5
device sio3 at isa? port IO_COM4 irq 9</programlisting>
<para>and like this, for FreeBSD&nbsp;5.X:</para>
<programlisting>device sio</programlisting>
<para>You can comment-out or completely remove lines for devices
you do not have. Please see the &man.sio.4; manual page for
complete information on how to write configuration lines for
multiport boards. Be careful if you are using a configuration
you do not have in the case of FreeBSD&nbsp;4.X, for
FreeBSD&nbsp;5.X you have to edit your
<filename>/boot/device.hints</filename> file to configure your
serial ports. Please refer to the &man.sio.4; manual page for
more information on serial ports and multiport boards configuration.
Be careful if you are using a configuration
file that was previously used for a different version of
FreeBSD because the device flags have changed between
FreeBSD because the device flags and the syntax have changed between
versions.</para>
<note>
<para><literal>port "IO_COM1"</literal> is a substitution for
<para><literal>port IO_COM1</literal> is a substitution for
<literal>port 0x3f8</literal>, <literal>IO_COM2</literal> is
<literal>0x2f8</literal>, <literal>IO_COM3</literal> is
<literal>0x3e8</literal>, and <literal>IO_COM4</literal> is