doc100.htm

来自「Reh Hat user manual. really goooood」· HTM 代码 · 共 93 行

HTM
93
字号
<html><body><a href="doc101.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc099.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.4">D.4 How To Build MILO </a></h2><title>How To Build MILO </title><a name="i265"> You build MILO seperately from the Kernel.  As MILO requires parts of the kernelto function (for example interrupt handling) you must first configure and build thekernel that matches with MILO that you want to build.  Mostly thismeans building the kernel with the same version number.  So, MILO-2.0.25.tar.gz will build against linux-2.0.25.tar.gz.  MILO <tt>may</tt> build against a higher version of the kernel, but there again it may not.Also, now that ELF shared libraries are fully supported, there are twoversions of the MILO sources.To build under an ELF system you must first unpack the standard MILO sourcesand then patch those sources with the same version numbered ELF patch.In the remainder of this discussion,I assume that your kernel sources and object files are stored in thesubtree at <tt>/usr/src/linux</tt> and that the linux kernel has been fullybuilt with the command <tt>make boot</tt><p>To build MILO, change your working directory to the MILO source directory andinvoke <tt>make</tt> with:<blockquote><font size=-1><tt><pre>$    make KSRC=/usr/src/linux config</pre></tt></font></blockquote><p>Just like the Linux kernel, you will be asked a series of questions<p><blockquote><font size=-1><tt><pre>     Echo output to the serial port (MINI_SERIAL_ECHO) [y]</pre></tt></font></blockquote><p> It's a good idea to echo kernel printk to <tt>/dev/ttyS0</tt> if you can.If you can (and want to), then type "y", otherwise "n".  All of the standard, pre-built, MILO images include serial port I/O using COM1.<p><blockquote><font size=-1><tt><pre>     Use Digital's BIOS emulation code (not free) (MINI_DIGITAL_BIOS_EMU) [y]</pre></tt></font></blockquote><p> This code is included as a library which is freely distributableso long as it is used on an Alpha based system.  The sources arenot available.   If you answer <tt>n</tt> then the freeware alternative BIOS emulation will be built.  It's sources are includedwith MILO.Note that you cannot right now build choose Digital's BIOS emulation code inan ELF system (the library is not yet ready) and so you must answer no to thisquestion.<p><blockquote><font size=-1><tt><pre>     Build PALcode from sources (Warning this is dangerous) (MINI_BUILD_PALCODE_FROM_SOURCES) [n]     </pre></tt></font></blockquote><p>You should only do this if you have changed the PALcode sources, otherwise use the standard,pre-built PALcode included with MILO.<p>You are now all set to build the MILO image itself:<blockquote><font size=-1><tt><pre>$    make KSRC=/usr/src/linux</pre></tt></font></blockquote><p>When the build has successfully completed, the MILO image is in the file called <tt>milo</tt>.There are a lot of images called <tt>milo.*</tt>, these should be ignored.<p><p><hr><a href="doc101.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc099.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 + =
减小字号Ctrl + -
显示快捷键?