330 lines
5.2 KiB
HTML
330 lines
5.2 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Linux kernel version 2.5</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Remote Serial Console HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Configuring a kernel to support serial console"
|
|
HREF="kernelcompile.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Configuring a kernel to support serial console"
|
|
HREF="kernelcompile.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Linux kernel version 2.4"
|
|
HREF="kernelcompile-24.html"></HEAD
|
|
><BODY
|
|
CLASS="SECTION"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Remote Serial Console HOWTO</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="kernelcompile.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 10. Configuring a kernel to support serial console</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="kernelcompile-24.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECTION"
|
|
><H1
|
|
CLASS="SECTION"
|
|
><A
|
|
NAME="KERNELCOMPILE-25"
|
|
></A
|
|
>10.1. Linux kernel version 2.5</H1
|
|
><P
|
|
>Kernel version 2.5 is under active development, so this
|
|
section may be out of date. Version 2.5 includes support for the
|
|
console to a serial port attached to a USB dongle. The
|
|
<TT
|
|
CLASS="LITERAL"
|
|
>-dj</TT
|
|
> patch to the version 2.5 kernel has a
|
|
rewritten console layer; it is not known if the rewritten layer
|
|
effects the user-space use of the serial console.</P
|
|
><P
|
|
>When configuring the kernel set the following configuration
|
|
parameters:</P
|
|
><DIV
|
|
CLASS="FIGURE"
|
|
><A
|
|
NAME="KERNELCOMPILE-25-MENUCONFIG"
|
|
></A
|
|
><P
|
|
><B
|
|
>Figure 10-1. Kernel configuration for serial console using <B
|
|
CLASS="COMMAND"
|
|
>make
|
|
menuconfig</B
|
|
></B
|
|
></P
|
|
><TABLE
|
|
BORDER="1"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>Character devices --->
|
|
[*] Virtual terminal
|
|
[*] Support for console on virtual terminal
|
|
<*> Standard/generic (8250/16550 and compatible UARTs) serial support
|
|
[*] Support for console on serial port</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
><P
|
|
>This should set the following configuration parameters in
|
|
<TT
|
|
CLASS="FILENAME"
|
|
>/usr/src/linux/.config</TT
|
|
>.</P
|
|
><DIV
|
|
CLASS="FIGURE"
|
|
><A
|
|
NAME="KERNELCOMPILE-25-DOTCONFIG"
|
|
></A
|
|
><P
|
|
><B
|
|
>Figure 10-2. Kernel configuration for serial console using
|
|
<TT
|
|
CLASS="FILENAME"
|
|
>.config</TT
|
|
></B
|
|
></P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>CONFIG_VT=y
|
|
CONFIG_VT_CONSOLE=y
|
|
CONFIG_SERIAL=y
|
|
CONFIG_SERIAL_CONSOLE=y</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
><P
|
|
>If you also want to use a serial port attached to a
|
|
<SPAN
|
|
CLASS="ACRONYM"
|
|
>USB</SPAN
|
|
> bus, then in addition to the usual
|
|
<SPAN
|
|
CLASS="ACRONYM"
|
|
>USB</SPAN
|
|
> configuration, configure the kernel to load
|
|
the <SPAN
|
|
CLASS="ACRONYM"
|
|
>USB</SPAN
|
|
> console driver and one of the
|
|
<SPAN
|
|
CLASS="ACRONYM"
|
|
>USB</SPAN
|
|
> serial dongles (our example uses the generic
|
|
serial dongle).</P
|
|
><DIV
|
|
CLASS="FIGURE"
|
|
><A
|
|
NAME="KERNELCOMPILE-25-USB-MENUCONFIG"
|
|
></A
|
|
><P
|
|
><B
|
|
>Figure 10-3. Kernel configuration for <SPAN
|
|
CLASS="ACRONYM"
|
|
>USB</SPAN
|
|
> dongle
|
|
serial console using <B
|
|
CLASS="COMMAND"
|
|
>make menuconfig</B
|
|
></B
|
|
></P
|
|
><TABLE
|
|
BORDER="1"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>USB Serial Converter support --->
|
|
<M> USB Serial Converter support
|
|
[M] USB Serial Console device support
|
|
[M] USB Generic Serial Driver</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
><P
|
|
>This should set the following configuration parameters in
|
|
<TT
|
|
CLASS="FILENAME"
|
|
>/usr/src/linux/.config</TT
|
|
></P
|
|
><DIV
|
|
CLASS="FIGURE"
|
|
><A
|
|
NAME="KERNELCOMPILE-25-USB-DOTCONFIG"
|
|
></A
|
|
><P
|
|
><B
|
|
>Figure 10-4. Kernel configuration for <SPAN
|
|
CLASS="ACRONYM"
|
|
>USB</SPAN
|
|
> dongle
|
|
serial console using <TT
|
|
CLASS="FILENAME"
|
|
>.config</TT
|
|
></B
|
|
></P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>CONFIG_USB_SERIAL=m
|
|
CONFIG_USB_SERIAL_CONSOLE=m
|
|
CONFIG_USB_SERIAL_GENERIC=m</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
><P
|
|
>You should also configure the kernel without the magic
|
|
<B
|
|
CLASS="KEYCAP"
|
|
>SysRq</B
|
|
> key, as described in <A
|
|
HREF="security-sysrq.html"
|
|
>Section 9.9</A
|
|
>.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="kernelcompile.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="kernelcompile-24.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Configuring a kernel to support serial console</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="kernelcompile.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Linux kernel version 2.4</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |