📄 doc103.htm
字号:
<html><body><a href="doc104.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc102.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr><h2><a name="sD.7">D.7 Running the Flash Management Utility </a></h2><title>Running the Flash Management Utility </title><p>The <tt>run</tt> command is used to run the flash management utility.Before you start you will need a device available to MILO thatcontains the updateflash program. This (like vmlinux) can be gzip'd. You need to run the flash managementutility program from the MILO using the (<tt>run</tt>) command:<p><blockquote><font size=-1><tt><pre> MILO> run fd0:fmu.gz</pre></tt></font></blockquote><p>Once it has loaded and initialised, the flash management utilitywill tell you some information about the flash device and give youa command prompt. Again the <tt>help</tt> command is most useful.<p><blockquote><font size=-1><tt><pre>Linux MILO Flash Management Utility V1.0Flash device is an Intel 28f008SA 16 segments, each of 0x10000 (65536) bytesScanning Flash blocks for usageBlock 12 contains the environment variablesFMU> </pre></tt></font></blockquote><p><tt>Note</tt> that on systems where environment variables may be storedand where there is more than one flash block (for example, the AlphaPC64)the flash management utility will look for a block to hold MILO's environment variables. If such a block already exists, the flash managementutility will tell you where it is. Otherwise, you must use the <tt>environment</tt>command to set a block and initialise it.In the above example, flash block 12 contains MILO's environment variables.<p><h3><a name="sD.7.1">D.7.1 The ''help'' command</a></h3><title>The ''help'' command</title><p><blockquote><font size=-1><tt><pre>FMU> helpFMU command summary:list - List the contents of flashprogram - program an image into flashquit - Quitenvironment - Set which block should contain the environment variablesbootopt num - Select firmware type to use on next power uphelp - Print this help textFMU> </pre></tt></font></blockquote><p><em>Note</em> that the <tt>environment</tt> and <tt>bootopt</tt> commands are only available onthe EB66+, the AlphaPC64, EB164 and PC164 systems (and their clones).<p><h3><a name="sD.7.2">D.7.2 The ''list'' command</a></h3><title>The ''list'' command</title><p>The ''list'' command shows the current usage of the flash memory.Where there is more than one flash block, the usage of each flash blockis shown. In the example below you can see that Windows NT ARC is usingblocks 4:7 and block 15.<p><blockquote><font size=-1><tt><pre>FMU> listFlash blocks: 0:DBM 1:DBM 2:DBM 3:WNT 4:WNT 5:WNT 6:WNT 7:WNT 8:MILO 9:MILO 10:MILO 11:MILO 12:MILO 13:U 14:U 15:WNTListing flash Images Flash image starting at block 0: Firmware Id: 0 (Alpha Evaluation Board Debug Monitor) Image size is 191248 bytes (3 blocks) Executing at 0x300000 Flash image starting at block 3: Firmware Id: 1 (Windows NT ARC) Image size is 277664 bytes (5 blocks) Executing at 0x300000 Flash image starting at block 8: Firmware Id: 7 (MILO/Linux) Image size is 217896 bytes (4 blocks) Executing at 0x200000FMU></pre></tt></font></blockquote><p><h3><a name="sD.7.3">D.7.3 The ''program'' command</a></h3><title>The ''program'' command</title><p>The flash management utility contains a compressed copy of a flashimage of MILO. The ''program'' command allows you to blow this imageinto flash.The command allows you to back out, but before you run it you shoulduse the ''list'' command to see where to put MILO. If MILO is already in flash, then the flash management utility will offer to overwrite it.<p><blockquote><font size=-1><tt><pre>FMU> programImage is: Firmware Id: 7 (MILO/Linux) Image size is 217896 bytes (4 blocks) Executing at 0x200000Found existing image at block 8Overwrite existing image? (N/y)? yDo you really want to do this (y/N)? yDeleting blocks ready to program: 8 9 10 11Programming image into flashScanning Flash blocks for usageFMU> </pre></tt></font></blockquote><p>Wait until it has completed before powering off your system.<p><tt>Note:</tt> I cannot emphasise just how careful you must be herenot to overwrite an existing flash image that you might need orrender your system useless. A very good rule is never to overwritethe Debug Monitor.<p><h3><a name="sD.7.4">D.7.4 The ''environment'' command</a></h3><title>The ''environment'' command</title><p>This selects a flash block to contain MILO's environment variables.<p><h3><a name="sD.7.5">D.7.5 The ''bootopt'' command</a></h3><title>The ''bootopt'' command</title><p>This is just the same as MILO's ''bootopt'' command,see (Section <a href="doc102.html#sD.6.4">D.6.4</a>).<p><h3><a name="sD.7.6">D.7.6 The ''quit'' command</a></h3><title>The ''quit'' command</title><p>This is really pretty meaningless. The only way back to MILO (oranything else) once the flash management utility has run is to rebootthe system.<p><p><hr><a href="doc104.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc102.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -