redboot_cmds.sgml
来自「eCos操作系统源码」· SGML 代码 · 共 1,939 行 · 第 1/5 页
SGML
1,939 行
<entry>Be verbose, displaying information about each packet sent.</entry> <entry><emphasis>quiet</emphasis></entry> </row> <row> <entry>-n <replaceable>local_IP_address</replaceable></entry> <entry>Number</entry> <entry>Controls the number of packets to be sent.</entry> <entry>10</entry> </row> <row> <entry>-i <replaceable>local_IP_address</replaceable></entry> <entry>Numeric IP or DNS name</entry> <entry>The IP address RedBoot should use.</entry> <entry>Value set by <command>ip_address</command></entry> </row> <row> <entry>-h <replaceable>server_IP_address</replaceable></entry> <entry>Numeric IP or DNS name</entry> <entry>The IP address of the host to contact.</entry> <entry><emphasis>none</emphasis></entry> </row> <row> <entry>-l <replaceable>length</replaceable></entry> <entry>Number</entry> <entry>The length of the ICMP data payload.</entry> <entry>64</entry> </row> <row> <entry>-r <replaceable>length</replaceable></entry> <entry>Number</entry> <entry>How fast to deliver packets, i.e. time between successive sends.A value of 0 sends packets as quickly as possible.</entry> <entry>1000ms (1 second)</entry> </row> <row> <entry>-t <replaceable>length</replaceable></entry> <entry>Number</entry> <entry>How long to wait for the round-trip to complete, specified in milliseconds.</entry> <entry>1000ms (1 second)</entry> </row> </tbody> </tgroup> </informaltable> </refsect1> <refsect1> <title>Description</title> <para>The <command>ping</command> command checks the connectivity of the local network by sendingspecial (ICMP) packets to a specific host. These packets should be automaticallyreturned by that host. The command will indicate how many of these round-tripswere successfully completed. </para> </refsect1> <refsect1> <title>Examples</title> <para>Test connectivity to host 192.168.1.101.<screen>RedBoot> <userinput>ping -h 192.168.1.101</userinput>Network PING - from 192.168.1.31 to 192.168.1.101PING - received 10 of 10 expected</screen> </para><para>Test connectivity to host 192.168.1.101, with verbose reporting.<screen>RedBoot> <userinput>ping -h 192.168.1.101 -v -n 4</userinput>Network PING - from 192.168.1.31 to 192.168.1.101 seq: 1, time: 1 (ticks) seq: 2, time: 1 (ticks) seq: 3, time: 1 (ticks) seq: 4, time: 1 (ticks)PING - received 10 of 10 expected</screen> </para><para><screen>Test connectivity to a non-existent host (192.168.1.109).RedBoot> <userinput>ping -h 192.168.1.109 -v -n 4</userinput>PING: Cannot reach server '192.168.1.109' (192.168.1.109)</screen> </para> </refsect1> </refentry><!-- ******** reset *************************************************** --> <refentry id="reset-command"> <refnamediv> <refname>reset</refname> <refpurpose>Reset the device</refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>reset</command> </cmdsynopsis> </refsynopsisdiv> <refsect1> <title>Arguments</title><para><emphasis>None</emphasis></para> </refsect1> <refsect1> <title>Description</title> <para>The <command>reset</command> command causes the target platform to be reset.Where possible (hardware support permitting), this will beequivalent to a power-on reset condition. </para> </refsect1> <refsect1> <title>Examples</title> <para>Reset the platform.<screen>RedBoot> <userinput>reset</userinput>... Resetting.+... Waiting for network card: .Socket Communications, Inc: Low Power Ethernet CF Revision C 5V/3.3V 08/27/98Ethernet eth0: MAC address 00:c0:1b:00:ba:28IP: 192.168.1.29, Default server: 192.168.1.101RedBoot(tm) bootstrap and debug environment [ROM]Non-certified release, version UNKNOWN - built 10:41:41, May 14 2002Platform: Compaq iPAQ Pocket PC (StrongARM 1110) Copyright (C) 2000, 2001, 2002, Red Hat, Inc.RAM: 0x00000000-0x01fc0000, 0x00014748-0x01f71000 availableFLASH: 0x50000000 - 0x51000000, 64 blocks of 0x00040000 bytes each.RedBoot> </screen> </para> </refsect1> </refentry><!-- ******** version *************************************************** --> <refentry id="version-command"> <refnamediv> <refname>version</refname> <refpurpose>Display RedBoot version information</refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>version</command> </cmdsynopsis> </refsynopsisdiv> <refsect1> <title>Arguments</title> <para><emphasis>None</emphasis></para> </refsect1> <refsect1> <title>Description</title> <para>The <command>version</command> command simply displays version information about RedBoot. </para> </refsect1> <refsect1> <title>Examples</title> <para>Display RedBoot's version.<screen>RedBoot> <userinput>version</userinput>RedBoot(tm) debug environment - built 09:12:03, Feb 12 2001Platform: XYZ (PowerPC 860)Copyright (C) 2000, 2001, Red Hat, Inc.RAM: 0x00000000-0x00400000</screen> </para> </refsect1> </refentry></sect1> <sect1 id="Flash-Image-System"><title>Flash Image System (FIS)</title><para><indexterm><primary>commands</primary><secondary>flash image system</secondary></indexterm><indexterm><primary>flash image system commands</primary></indexterm><indexterm><primary>commands</primary><secondary>fis</secondary></indexterm><indexterm><primary>fis commands</primary></indexterm>If the platformhas flash memory, RedBoot can use this for image storage. Executable images,as well as data, can be stored in flash in a simple file store. The <command>fis</command> command (fis is short for Flash Image System) is used tomanipulate and maintain flash images.</para><!-- ******** fis init ************************************************ --> <refentry id="fis-init-command"> <refnamediv> <refname>fis init</refname> <refpurpose>Initialize Flash Image System (FIS)</refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>fis init</command> <arg><replaceable>-f</replaceable></arg> </cmdsynopsis> </refsynopsisdiv> <refsect1> <title>Arguments</title> <informaltable frame="all"> <tgroup cols="4" colsep="1" rowsep="1" align="left"> <colspec colname="c1"> <colspec colname="c2"> <colspec colname="c3"> <colspec colname="c4"> <thead> <row> <entry>Name</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default</entry> </row> </thead> <tbody> <row> <entry>-f</entry> <entry></entry> <entry>All blocks of flash memory (except for the boot blocks) will be erased as part of the initialization procedure.</entry> <entry></entry> </row> </tbody> </tgroup> </informaltable> </refsect1> <refsect1> <title>Description</title> <para>This command is used to initialize the Flash Image System (FIS). It should normally only be executed once, when RedBoot is first installed on the hardware. If the reserved images or their sizes in the FIS change, due to a different configuration of RedBoot being used, it may be necessary to issue the command again though. <note><para>Subsequent executions will cause loss of previously stored information in the FIS.</para></note> </para> </refsect1> <refsect1> <title>Examples</title> <para>Initialize the FIS directory.<screen> RedBoot> <userinput>fis init</userinput>About to initialize [format] flash image system - continue (y/n)? <userinput>y</userinput>*** Initialize FLASH Image System Warning: device contents not erased, some blocks may not be usable... Erase from 0x00070000-0x00080000: .... Program from 0x0606f000-0x0607f000 at 0x00070000: .</screen> </para> <para>Initialize the FIS directory and all of flash memory, except for firstblocks of the flash where the boot monitor resides.<screen> RedBoot> <userinput>fis init -f</userinput>About to initialize [format] flash image system - continue (y/n)? <userinput>y</userinput>*** Initialize FLASH Image System ... Erase from 0x00020000-0x00070000: ..... ... Erase from 0x00080000-0x00080000: ... Erase from 0x00070000-0x00080000: . ... Program from 0x0606f000-0x0607f000 at 0x00070000: . </screen> </para></refsect1></refentry><!-- ******** fis list ************************************************ --> <refentry id="fis-list-command"> <refnamediv> <refname>fis list</refname> <refpurpose>List Flash Image System directory</refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>fis list</command> <arg><replaceable>-f</replaceable></arg> </cmdsynopsis> </refsynopsisdiv> <refsect1> <title>Arguments</title> <informaltable frame="all"> <tgroup cols="4" colsep="1" rowsep="1" align="left"> <colspec colname="c1"> <colspec colname="c2"> <colspec colname="c3"> <colspec colname="c4"> <thead> <row> <entry>Name</entry> <entry>Type</entry> <entry>Description</entry> <entry>Default</entry> </row> </thead> <tbody> <row> <entry>-c</entry> <entry></entry> <entry>Show image checksum instead of memory address (column <computeroutput>Mem addr</computeroutput> is replaced by <computeroutput>Checksum</computeroutput>).</entry> <entry></entry> </row> <row> <entry>-d</entry> <entry></entry> <entry>Show image data length instead of amount of flash occupied by image (column <computeroutput>Length</computeroutput> is replaced by <computeroutput>Datalen</computeroutput>).</entry> <entry></entry> </row> </tbody> </tgroup> </informaltable> </refsect1> <refsect1> <title>Description</title><para>This command lists the images currently available in the FIS. Certainimages used by RedBoot have fixed names and have reserved slots in theFIS (these can be seen after using the <command>fis init</command>command). Other images can be manipulated by the user.</para><note><para>The images are listed in the order they appear in the FISdirectory, not by name or creation time.</para></note> </refsect1> <refsect1> <title>Examples</title> <para>List the FIS directory.<screen> RedBoot> <userinput>fis list</userinput>Name FLASH addr Mem addr Length Entry point RedBoot 0x00000000 0x00000000 0x00020000 0x00000000 RedBoot config 0x0007F000 0x0007F000 0x00001000 0x00000000 FIS directory 0x00070000 0x00070000 0x0000F000 0x00000000 </screen> </para> <para>List the FIS directory, with image checksums substituted formemory addresses.<screen> RedBoot> <userinput>fis list -c</userinput>Name FLASH addr Checksum Length Entry point RedBoot 0x00000000 0x00000000 0x00020000 0x00000000 RedBoot config 0x0007F000 0x00000000 0x00001000 0x00000000 FIS directory 0x00070000 0x00000000 0x0000F000 0x00000000 </screen> </para> <para>List the FIS directory with image data lengths substituted for flashblock reservation lengths.<screen> RedBoot> <userinput>fis list</userinput>Name FLASH addr Mem addr Datalen Entry point RedBoot 0x00000000 0x00000000 0x00000000 0x00000000 RedBoot config 0x0007F000 0x0007F000 0x00000000 0x00000000 FIS directory 0x00070000 0x00070000 0x00000000 0x00000000 </screen> </para></refsect1></refentry><!-- ******** fis free ************************************************ --> <refentry id="fis-free-command"> <refnamediv> <refname>fis free</refname> <refpurpose>Free flash image</refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>fis free</command> </cmdsynopsis> </refsynopsisdiv> <refsect1> <title>Description</title><para>This command shows which areas of the flash memory are currentlynot i
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?