📄 go-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>go</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="Executing Programs from RedBoot"HREF="executing-programs.html"><LINKREL="PREVIOUS"TITLE="Executing Programs from RedBoot"HREF="executing-programs.html"><LINKREL="NEXT"TITLE="exec"HREF="exec-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="executing-programs.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="exec-command.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="GO-COMMAND">go</H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN4515"></A><H2>Name</H2>go -- Execute a program</DIV><DIVCLASS="REFSYNOPSISDIV"><ANAME="AEN4518"><H2>Synopsis</H2><P><BCLASS="COMMAND">go</B> [-w <TTCLASS="REPLACEABLE"><I> timeout</I></TT>] [<TTCLASS="REPLACEABLE"><I> start_address</I></TT>]</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4525"></A><H2>Arguments</H2><DIVCLASS="INFORMALTABLE"><ANAME="AEN4527"><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">-w <TTCLASS="REPLACEABLE"><I>timeout</I></TT></TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">How long to wait before starting execution.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">0</TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"><TTCLASS="REPLACEABLE"><I>start_address</I></TT></TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Address in memory to begin execution.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Value set by last <BCLASS="COMMAND">load</B> or <BCLASS="COMMAND">fis load</B> command.</TD></TR></TBODY></TABLE><P></P></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4554"></A><H2>Description</H2><P>The <BCLASS="COMMAND">go</B> command causes RedBoot to give control of the target platform toanother program. This program must execute stand alone, e.g. an eCosapplication or a Linux kernel. </P><P>If the -w option is used, RedBoot will print a message and thenwait for a period of time before starting the execution. This ismost useful in a script, giving the user a chance to abort executinga program and move on in the script. </P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4559"></A><H2>Examples</H2><P>Execute a program - <SPANCLASS="emphasis"><ICLASS="EMPHASIS">no explicit output from RedBoot</I></SPAN>.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot> <TTCLASS="USERINPUT"><B>go 0x40040</B></TT></PRE></TD></TR></TABLE> </P><P>Execute a program with a timeout.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot> <TTCLASS="USERINPUT"><B>go -w 10</B></TT>About to start execution at 0x00000000 - abort with ^C within 10 seconds^CRedBoot></PRE></TD></TR></TABLE> Note that the starting address was implied (0x00000000 in this example).The user is prompted that execution will commence in 10 seconds. Atanytime within that 10 seconds the user may type <SPANCLASS="GUIBUTTON">Ctrl+C</SPAN>on the console and RedBoot will abort execution and return for the nextcommand, either from a script or the console. </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="executing-programs.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="exec-command.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Executing Programs from RedBoot</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="executing-programs.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">exec</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -