fis-create-command.html

来自「有关ecos2。0介绍了实时嵌入式的结构以及线程调度的实现和内存的管理等」· HTML 代码 · 共 576 行

HTML
576
字号
<!-- 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>fis create</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="Flash Image System (FIS)"HREF="flash-image-system.html"><LINKREL="PREVIOUS"TITLE="fis free"HREF="fis-free-command.html"><LINKREL="NEXT"TITLE="fis load"HREF="fis-load-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="fis-free-command.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="fis-load-command.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="FIS-CREATE-COMMAND">fis create</H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN4008"></A><H2>Name</H2>fis create&nbsp;--&nbsp;Create flash image</DIV><DIVCLASS="REFSYNOPSISDIV"><ANAME="AEN4011"><H2>Synopsis</H2><P><BCLASS="COMMAND">fis create</B>  {-b <TTCLASS="REPLACEABLE"><I> data address</I></TT>} {-l <TTCLASS="REPLACEABLE"><I> length</I></TT>} [-f <TTCLASS="REPLACEABLE"><I> flash address</I></TT>] [-e <TTCLASS="REPLACEABLE"><I> entry</I></TT>] [-r <TTCLASS="REPLACEABLE"><I> relocation address</I></TT>] [-s <TTCLASS="REPLACEABLE"><I> data length</I></TT>] [-n ] [<TTCLASS="REPLACEABLE"><I>name</I></TT>]</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4029"></A><H2>Arguments</H2><DIVCLASS="INFORMALTABLE"><ANAME="AEN4031"><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">-b</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Address of data to be written to the flash.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Address of last loaded file. If not set in a load	      operation, it must be specified.</TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">-l</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Length of flash area to occopy. If specified, and	      the named image already exists, the length must match	      the value in the FIS directory.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Length of area reserved in FIS directory if the	      image already exists, or the length of the last loaded	      file. If neither are set, it must be specified.</TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">-f</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Address of flash area to occopy.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">The address of an area reserved in the FIS	      directory for extant images. Otherwise the first free block	      which is large enough will be used.</TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">-e</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Entry address for an executable image, used by	      the <BCLASS="COMMAND">fis load</B> command.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">The entry address of last loaded file.</TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">-r</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Address where the image should be relocated to by	      the <BCLASS="COMMAND">fis load</B> command. This is only	      relevant for images that will be loaded with the	      <BCLASS="COMMAND">fis load</B> command.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">The load address of the last loaded file.</TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">-s</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Number</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Actual length of data written to image. This is	      used to control the range over which the checksum is	      made.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">It defaults to the length of the last loaded	      file.</TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">-n</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">&nbsp;</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">When set, no image data will be written to the	      flash. Only the FIS directory will be updated.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">&nbsp;</TD></TR><TR><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP"><TTCLASS="REPLACEABLE"><I>name</I></TT></TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">String</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">Name of flash image.</TD><TDWIDTH="25%"ALIGN="LEFT"VALIGN="TOP">&nbsp;</TD></TR></TBODY></TABLE><P></P></DIV></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4088"></A><H2>Description</H2><P>This command creates an image in the FIS directory. The data for theimage must exist in RAM memory before the copy. Typically, you would use theRedBoot <BCLASS="COMMAND">load</B> command to load file intoRAM and then the <BCLASS="COMMAND">fis create</B> command to writeit to a flash image.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN4093"></A><H2>Examples</H2><P>Trying to create an extant image, will require the action      to be verified.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot&#62; <TTCLASS="USERINPUT"><B>fis create RedBoot -f 0xa0000000 -b 0x8c400000 -l 0x20000</B></TT>An image named &#8216;RedBoot&#8217; exists - continue (y/n)? <TTCLASS="USERINPUT"><B>n</B></TT></PRE></TD></TR></TABLE></P><P>Create a new test image, let the command find a suitable place.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot&#62; <TTCLASS="USERINPUT"><B>fis create junk -b 0x8c400000 -l 0x20000</B></TT>... Erase from 0xa0040000-0xa0060000: .... Program from 0x8c400000-0x8c420000 at 0xa0040000: .... Erase from 0xa0fe0000-0xa1000000: .... Program from 0x8c7d0000-0x8c7f0000 at 0xa0fe0000: .</PRE></TD></TR></TABLE></P><P>Update the RedBoot[RAM] image.<TABLEBORDER="5"BGCOLOR="#E0E0F0"WIDTH="70%"><TR><TD><PRECLASS="SCREEN">RedBoot&#62; <TTCLASS="USERINPUT"><B>load redboot_RAM.img</B></TT>Entry point: 0x060213c0, address range: 0x06020000-0x06036cc0                   RedBoot&#62; <TTCLASS="USERINPUT"><B>fis create RedBoot[RAM]</B></TT>No memory address set.An image named 'RedBoot[RAM]' exists - continue (y/n)? <TTCLASS="USERINPUT"><B>y</B></TT>* CAUTION * about to program 'RedBoot[RAM]'            at 0x00020000..0x00036cbf from 0x06020000 - continue (y/n)? <TTCLASS="USERINPUT"><B>y</B></TT>... Erase from 0x00020000-0x00040000: ..... Program from 0x06020000-0x06036cc0 at 0x00020000: ..... Erase from 0x00070000-0x00080000: .... Program from 0x0606f000-0x0607f000 at 0x00070000: .</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="fis-free-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="fis-load-command.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">fis free</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="flash-image-system.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">fis load</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?