OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [fis-lock-command.html] - Diff between revs 28 and 174

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- 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
>fis lock</TITLE
>fis lock</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="Flash Image System (FIS)"
TITLE="Flash Image System (FIS)"
HREF="flash-image-system.html"><LINK
HREF="flash-image-system.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="fis delete"
TITLE="fis delete"
HREF="fis-delete-command.html"><LINK
HREF="fis-delete-command.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="fis unlock"
TITLE="fis unlock"
HREF="fis-unlock-command.html"></HEAD
HREF="fis-unlock-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="fis-delete-command.html"
HREF="fis-delete-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="fis-unlock-command.html"
HREF="fis-unlock-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="FIS-LOCK-COMMAND">fis lock</H1
NAME="FIS-LOCK-COMMAND">fis lock</H1
><DIV
><DIV
CLASS="REFNAMEDIV"
CLASS="REFNAMEDIV"
><A
><A
NAME="AEN4208"
NAME="AEN4208"
></A
></A
><H2
><H2
>Name</H2
>Name</H2
>fis lock&nbsp;--&nbsp;Lock flash area</DIV
>fis lock&nbsp;--&nbsp;Lock flash area</DIV
><DIV
><DIV
CLASS="REFSYNOPSISDIV"
CLASS="REFSYNOPSISDIV"
><A
><A
NAME="AEN4211"><H2
NAME="AEN4211"><H2
>Synopsis</H2
>Synopsis</H2
><P
><P
><B
><B
CLASS="COMMAND"
CLASS="COMMAND"
>fis lock</B
>fis lock</B
>  {-f <TT
>  {-f <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>flash_address</I
>flash_address</I
></TT
></TT
>} {-l <TT
>} {-l <TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>length</I
>length</I
></TT
></TT
>}</P
>}</P
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN4218"
NAME="AEN4218"
></A
></A
><H2
><H2
>Arguments</H2
>Arguments</H2
><DIV
><DIV
CLASS="INFORMALTABLE"
CLASS="INFORMALTABLE"
><A
><A
NAME="AEN4220"><P
NAME="AEN4220"><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"
><TT
><TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>flash_address</I
>flash_address</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"
>Address of area to be locked.</TD
>Address of area to be locked.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>&nbsp;</TD
>&nbsp;</TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
><TT
><TT
CLASS="REPLACEABLE"
CLASS="REPLACEABLE"
><I
><I
>length</I
>length</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"
>Length of area to be locked.</TD
>Length of area to be locked.</TD
><TD
><TD
WIDTH="25%"
WIDTH="25%"
ALIGN="LEFT"
ALIGN="LEFT"
VALIGN="TOP"
VALIGN="TOP"
>&nbsp;</TD
>&nbsp;</TD
></TR
></TR
></TBODY
></TBODY
></TABLE
></TABLE
><P
><P
></P
></P
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN4245"
NAME="AEN4245"
></A
></A
><H2
><H2
>Description</H2
>Description</H2
><P
><P
>This command is used to write-protect (lock) a portion of flash memory,
>This command is used to write-protect (lock) a portion of flash memory,
to prevent accidental overwriting of images. In order to make make any modifications
to prevent accidental overwriting of images. In order to make make any modifications
to the flash, a matching <B
to the flash, a matching <B
CLASS="COMMAND"
CLASS="COMMAND"
>fis unlock</B
>fis unlock</B
> command must be
> command must be
issued. This command is optional and will only be provided on hardware
issued. This command is optional and will only be provided on hardware
which can support write-protection of the flash space.</P
which can support write-protection of the flash space.</P
><DIV
><DIV
CLASS="NOTE"
CLASS="NOTE"
><BLOCKQUOTE
><BLOCKQUOTE
CLASS="NOTE"
CLASS="NOTE"
><P
><P
><B
><B
>Note: </B
>Note: </B
>Depending on the system, attempting to write to write-protected flash
>Depending on the system, attempting to write to write-protected flash
may generate errors or warnings, or be benignly quiet.  </P
may generate errors or warnings, or be benignly quiet.  </P
></BLOCKQUOTE
></BLOCKQUOTE
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="REFSECT1"
CLASS="REFSECT1"
><A
><A
NAME="AEN4251"
NAME="AEN4251"
></A
></A
><H2
><H2
>Examples</H2
>Examples</H2
><P
><P
>Lock an area of the flash
>Lock an area of the flash
<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&#62; <TT
>RedBoot&#62; <TT
CLASS="USERINPUT"
CLASS="USERINPUT"
><B
><B
>fis lock -f 0xa0040000 -l 0x20000</B
>fis lock -f 0xa0040000 -l 0x20000</B
></TT
></TT
>
>
... Lock from 0xa0040000-0xa0060000: .</PRE
... Lock from 0xa0040000-0xa0060000: .</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="fis-delete-command.html"
HREF="fis-delete-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="fis-unlock-command.html"
HREF="fis-unlock-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"
>fis delete</TD
>fis delete</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="flash-image-system.html"
HREF="flash-image-system.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"
>fis unlock</TD
>fis unlock</TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.