<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- Copyright (C) 2003 Red Hat, Inc. -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- This material may be distributed only subject to the terms -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- and conditions set forth in the Open Publication License, v1.0 -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- or later (the latest version is presently available at -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- http://www.opencontent.org/openpub/). -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- Distribution of the work or derivative of the work in any -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- standard (paper) book form is prohibited unless prior -->
|
<!-- permission is obtained from the copyright holder. -->
|
<!-- permission is obtained from the copyright holder. -->
|
<HTML
|
<HTML
|
><HEAD
|
><HEAD
|
><TITLE
|
><TITLE
|
>baudrate</TITLE
|
>baudrate</TITLE
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
><meta name="MSSmartTagsPreventParsing" content="TRUE">
|
<META
|
<META
|
NAME="GENERATOR"
|
NAME="GENERATOR"
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
"><LINK
|
"><LINK
|
REL="HOME"
|
REL="HOME"
|
TITLE="eCos Reference Manual"
|
TITLE="eCos Reference Manual"
|
HREF="ecos-ref.html"><LINK
|
HREF="ecos-ref.html"><LINK
|
REL="UP"
|
REL="UP"
|
TITLE="Common Commands"
|
TITLE="Common Commands"
|
HREF="common-commands.html"><LINK
|
HREF="common-commands.html"><LINK
|
REL="PREVIOUS"
|
REL="PREVIOUS"
|
TITLE="alias"
|
TITLE="alias"
|
HREF="alias-command.html"><LINK
|
HREF="alias-command.html"><LINK
|
REL="NEXT"
|
REL="NEXT"
|
TITLE="cache"
|
TITLE="cache"
|
HREF="cache-command.html"></HEAD
|
HREF="cache-command.html"></HEAD
|
><BODY
|
><BODY
|
CLASS="REFENTRY"
|
CLASS="REFENTRY"
|
BGCOLOR="#FFFFFF"
|
BGCOLOR="#FFFFFF"
|
TEXT="#000000"
|
TEXT="#000000"
|
LINK="#0000FF"
|
LINK="#0000FF"
|
VLINK="#840084"
|
VLINK="#840084"
|
ALINK="#0000FF"
|
ALINK="#0000FF"
|
><DIV
|
><DIV
|
CLASS="NAVHEADER"
|
CLASS="NAVHEADER"
|
><TABLE
|
><TABLE
|
SUMMARY="Header navigation table"
|
SUMMARY="Header navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TH
|
><TH
|
COLSPAN="3"
|
COLSPAN="3"
|
ALIGN="center"
|
ALIGN="center"
|
>eCos Reference Manual</TH
|
>eCos Reference Manual</TH
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="alias-command.html"
|
HREF="alias-command.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="80%"
|
WIDTH="80%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="10%"
|
WIDTH="10%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="bottom"
|
VALIGN="bottom"
|
><A
|
><A
|
HREF="cache-command.html"
|
HREF="cache-command.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"></DIV
|
WIDTH="100%"></DIV
|
><H1
|
><H1
|
><A
|
><A
|
NAME="BAUDRATE-COMMAND">baudrate</H1
|
NAME="BAUDRATE-COMMAND">baudrate</H1
|
><DIV
|
><DIV
|
CLASS="REFNAMEDIV"
|
CLASS="REFNAMEDIV"
|
><A
|
><A
|
NAME="AEN2995"
|
NAME="AEN2995"
|
></A
|
></A
|
><H2
|
><H2
|
>Name</H2
|
>Name</H2
|
>baudrate -- Set the baud rate for the system serial console</DIV
|
>baudrate -- Set the baud rate for the system serial console</DIV
|
><DIV
|
><DIV
|
CLASS="REFSYNOPSISDIV"
|
CLASS="REFSYNOPSISDIV"
|
><A
|
><A
|
NAME="AEN2998"><H2
|
NAME="AEN2998"><H2
|
>Synopsis</H2
|
>Synopsis</H2
|
><P
|
><P
|
><B
|
><B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>baudrate</B
|
>baudrate</B
|
> [-b<TT
|
> [-b<TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
> rate</I
|
> rate</I
|
></TT
|
></TT
|
>]</P
|
>]</P
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="REFSECT1"
|
CLASS="REFSECT1"
|
><A
|
><A
|
NAME="AEN3003"
|
NAME="AEN3003"
|
></A
|
></A
|
><H2
|
><H2
|
>Arguments</H2
|
>Arguments</H2
|
><DIV
|
><DIV
|
CLASS="INFORMALTABLE"
|
CLASS="INFORMALTABLE"
|
><A
|
><A
|
NAME="AEN3005"><P
|
NAME="AEN3005"><P
|
></P
|
></P
|
><TABLE
|
><TABLE
|
BORDER="1"
|
BORDER="1"
|
CLASS="CALSTABLE"
|
CLASS="CALSTABLE"
|
><THEAD
|
><THEAD
|
><TR
|
><TR
|
><TH
|
><TH
|
WIDTH="25%"
|
WIDTH="25%"
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>Name</TH
|
>Name</TH
|
><TH
|
><TH
|
WIDTH="25%"
|
WIDTH="25%"
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>Type</TH
|
>Type</TH
|
><TH
|
><TH
|
WIDTH="25%"
|
WIDTH="25%"
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>Description</TH
|
>Description</TH
|
><TH
|
><TH
|
WIDTH="25%"
|
WIDTH="25%"
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>Default</TH
|
>Default</TH
|
></TR
|
></TR
|
></THEAD
|
></THEAD
|
><TBODY
|
><TBODY
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="25%"
|
WIDTH="25%"
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>-b <TT
|
>-b <TT
|
CLASS="REPLACEABLE"
|
CLASS="REPLACEABLE"
|
><I
|
><I
|
>rate</I
|
>rate</I
|
></TT
|
></TT
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="25%"
|
WIDTH="25%"
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>Number</TD
|
>Number</TD
|
><TD
|
><TD
|
WIDTH="25%"
|
WIDTH="25%"
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
>The baud rate to use for the serial console.</TD
|
>The baud rate to use for the serial console.</TD
|
><TD
|
><TD
|
WIDTH="25%"
|
WIDTH="25%"
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
VALIGN="TOP"
|
VALIGN="TOP"
|
><SPAN
|
><SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>none</I
|
>none</I
|
></SPAN
|
></SPAN
|
></TD
|
></TD
|
></TR
|
></TR
|
></TBODY
|
></TBODY
|
></TABLE
|
></TABLE
|
><P
|
><P
|
></P
|
></P
|
></DIV
|
></DIV
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="REFSECT1"
|
CLASS="REFSECT1"
|
><A
|
><A
|
NAME="AEN3025"
|
NAME="AEN3025"
|
></A
|
></A
|
><H2
|
><H2
|
>Description</H2
|
>Description</H2
|
><P
|
><P
|
>The <B
|
>The <B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>baudrate</B
|
>baudrate</B
|
> command sets the baud rate for the system serial console.
|
> command sets the baud rate for the system serial console.
|
</P
|
</P
|
><P
|
><P
|
>If no value is provided, then the current value of the console baud rate is displayed.
|
>If no value is provided, then the current value of the console baud rate is displayed.
|
</P
|
</P
|
><P
|
><P
|
>If the system supports non-volatile configuration data via the
|
>If the system supports non-volatile configuration data via the
|
<B
|
<B
|
CLASS="COMMAND"
|
CLASS="COMMAND"
|
>fconfig</B
|
>fconfig</B
|
> command (see <A
|
> command (see <A
|
HREF="persistent-state-flash.html"
|
HREF="persistent-state-flash.html"
|
>the Section called <I
|
>the Section called <I
|
>Persistent State Flash-based Configuration and Control</I
|
>Persistent State Flash-based Configuration and Control</I
|
> in Chapter 2</A
|
> in Chapter 2</A
|
>),
|
>),
|
then the value will be saved and used when the system is reset.
|
then the value will be saved and used when the system is reset.
|
</P
|
</P
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="REFSECT1"
|
CLASS="REFSECT1"
|
><A
|
><A
|
NAME="AEN3033"
|
NAME="AEN3033"
|
></A
|
></A
|
><H2
|
><H2
|
>Examples</H2
|
>Examples</H2
|
><P
|
><P
|
>Show the current baud rate.
|
>Show the current baud rate.
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>
|
>
|
RedBoot> <TT
|
RedBoot> <TT
|
CLASS="USERINPUT"
|
CLASS="USERINPUT"
|
><B
|
><B
|
>baudrate</B
|
>baudrate</B
|
></TT
|
></TT
|
>
|
>
|
Baud rate = 38400</PRE
|
Baud rate = 38400</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
> </P
|
> </P
|
><P
|
><P
|
>Change the console baud rate. In order to make this operation safer,
|
>Change the console baud rate. In order to make this operation safer,
|
there will be a slight pause after the
|
there will be a slight pause after the
|
first message to give you time to change to the new baud rate.
|
first message to give you time to change to the new baud rate.
|
If it doesn't work, or a less than affirmative answer is given to the
|
If it doesn't work, or a less than affirmative answer is given to the
|
"continue" prompt, then the baud rate will revert to the current value.
|
"continue" prompt, then the baud rate will revert to the current value.
|
Only after the baud rate has been firmly established will <SPAN
|
Only after the baud rate has been firmly established will <SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>RedBoot</I
|
>RedBoot</I
|
></SPAN
|
></SPAN
|
>
|
>
|
give you an opportunity to save the value in persistent storage.
|
give you an opportunity to save the value in persistent storage.
|
<TABLE
|
<TABLE
|
BORDER="5"
|
BORDER="5"
|
BGCOLOR="#E0E0F0"
|
BGCOLOR="#E0E0F0"
|
WIDTH="70%"
|
WIDTH="70%"
|
><TR
|
><TR
|
><TD
|
><TD
|
><PRE
|
><PRE
|
CLASS="SCREEN"
|
CLASS="SCREEN"
|
>
|
>
|
RedBoot> <TT
|
RedBoot> <TT
|
CLASS="USERINPUT"
|
CLASS="USERINPUT"
|
><B
|
><B
|
>baudrate -b 57600</B
|
>baudrate -b 57600</B
|
></TT
|
></TT
|
>
|
>
|
Baud rate will be changed to 57600 - update your settings
|
Baud rate will be changed to 57600 - update your settings
|
<SPAN
|
<SPAN
|
CLASS="emphasis"
|
CLASS="emphasis"
|
><I
|
><I
|
CLASS="EMPHASIS"
|
CLASS="EMPHASIS"
|
>Device baud rate changed at this point</I
|
>Device baud rate changed at this point</I
|
></SPAN
|
></SPAN
|
>
|
>
|
Baud rate changed to 57600 - continue (y/n)? y
|
Baud rate changed to 57600 - continue (y/n)? y
|
Update RedBoot non-volatile configuration - continue (y/n)? n</PRE
|
Update RedBoot non-volatile configuration - continue (y/n)? n</PRE
|
></TD
|
></TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
>
|
>
|
</P
|
</P
|
></DIV
|
></DIV
|
><DIV
|
><DIV
|
CLASS="NAVFOOTER"
|
CLASS="NAVFOOTER"
|
><HR
|
><HR
|
ALIGN="LEFT"
|
ALIGN="LEFT"
|
WIDTH="100%"><TABLE
|
WIDTH="100%"><TABLE
|
SUMMARY="Footer navigation table"
|
SUMMARY="Footer navigation table"
|
WIDTH="100%"
|
WIDTH="100%"
|
BORDER="0"
|
BORDER="0"
|
CELLPADDING="0"
|
CELLPADDING="0"
|
CELLSPACING="0"
|
CELLSPACING="0"
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="alias-command.html"
|
HREF="alias-command.html"
|
ACCESSKEY="P"
|
ACCESSKEY="P"
|
>Prev</A
|
>Prev</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="ecos-ref.html"
|
HREF="ecos-ref.html"
|
ACCESSKEY="H"
|
ACCESSKEY="H"
|
>Home</A
|
>Home</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="cache-command.html"
|
HREF="cache-command.html"
|
ACCESSKEY="N"
|
ACCESSKEY="N"
|
>Next</A
|
>Next</A
|
></TD
|
></TD
|
></TR
|
></TR
|
><TR
|
><TR
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="left"
|
ALIGN="left"
|
VALIGN="top"
|
VALIGN="top"
|
>alias</TD
|
>alias</TD
|
><TD
|
><TD
|
WIDTH="34%"
|
WIDTH="34%"
|
ALIGN="center"
|
ALIGN="center"
|
VALIGN="top"
|
VALIGN="top"
|
><A
|
><A
|
HREF="common-commands.html"
|
HREF="common-commands.html"
|
ACCESSKEY="U"
|
ACCESSKEY="U"
|
>Up</A
|
>Up</A
|
></TD
|
></TD
|
><TD
|
><TD
|
WIDTH="33%"
|
WIDTH="33%"
|
ALIGN="right"
|
ALIGN="right"
|
VALIGN="top"
|
VALIGN="top"
|
>cache</TD
|
>cache</TD
|
></TR
|
></TR
|
></TABLE
|
></TABLE
|
></DIV
|
></DIV
|
></BODY
|
></BODY
|
></HTML
|
></HTML
|
|
|