📄 channel-command.html
字号:
<!-- Copyright (C) 2003 Red Hat, Inc. --><!-- This material may be distributed only subject to the terms --><!-- and conditions set forth in the Open Publication License, v1.0 --><!-- or later (the latest version is presently available at --><!-- http://www.opencontent.org/openpub/). --><!-- Distribution of the work or derivative of the work in any --><!-- standard (paper) book form is prohibited unless prior --><!-- permission is obtained from the copyright holder. --><HTML><HEAD><TITLE>channel</TITLE><meta name="MSSmartTagsPreventParsing" content="TRUE"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+"><LINKREL="HOME"TITLE="eCos Reference Manual"HREF="ecos-ref.html"><LINKREL="UP"TITLE="Common Commands"HREF="common-commands.html"><LINKREL="PREVIOUS"TITLE="cache"HREF="cache-command.html"><LINKREL="NEXT"TITLE="cksum"HREF="cksum-command.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">eCos Reference Manual</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="cache-command.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="cksum-command.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="CHANNEL-COMMAND">channel</H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN3100"></A><H2>Name</H2>channel -- Select the system console channel</DIV><DIVCLASS="REFSYNOPSISDIV"><ANAME="AEN3103"><H2>Synopsis</H2><P><BCLASS="COMMAND">channel</B> [-1 | <TTCLASS="REPLACEABLE"><I>channel_number</I></TT>]</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN3110"></A><H2>Arguments</H2><DIVCLASS="INFORMALTABLE"><ANAME="AEN3112"><P></P><TABLEBORDER="1"CLASS="CALSTABLE"><THEAD><TR><THWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Name</TH><THWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Type</TH><THWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Description</TH><THWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Default</TH></TR></THEAD><TBODY><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">-1</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"> </TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Reset the console channel</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"><SPANCLASS="emphasis"><ICLASS="EMPHASIS">none</I></SPAN></TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">channel_number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Select a channel</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"><SPANCLASS="emphasis"><ICLASS="EMPHASIS">none</I></SPAN></TD></TR></TBODY></TABLE><P></P></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="AEN3137"></A><H2>Description</H2><P>With no arguments, the <BCLASS="COMMAND">channel</B> command displays the current console channel number.</P><P>When passed an argument of 0 upward, this command switches the consolechannel to that channel number. The mapping between channel numbers andphysical channels is platform specific but will typically be something likechannel 0 is the first serial port, channel 1 is the second, etc.</P><P>When passed an argument of -1, this command reverts RedBoot to respondingto whatever channel receives input first, as happens when RedBoot initiallystarts execution.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN3143"></A><H2>Examples</H2><P>Show the current channel.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN"> RedBoot> <TTCLASS="USERINPUT"><B>channel</B></TT>Current console channel id: 0</PRE></TD></TR></TABLE> </P><P>Change to an invalid channel.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN"> RedBoot> <TTCLASS="USERINPUT"><B>channel 99</B></TT>**Error: bad channel number '99'</PRE></TD></TR></TABLE> </P><P>Revert to the default channel setting (any console mode).<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN"> RedBoot> <TTCLASS="USERINPUT"><B>channel -1</B></TT></PRE></TD></TR></TABLE> </P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="cache-command.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="ecos-ref.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="cksum-command.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">cache</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="common-commands.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">cksum</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -