/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-mips-bootloader.xml
Gentoo

Contents of /xml/htdocs/doc/en/handbook/hb-install-mips-bootloader.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download) (as text)
Tue Nov 9 13:01:52 2004 UTC (9 years, 10 months ago) by swift
Branch: MAIN
Changes since 1.5: +5 -1 lines
File MIME type: application/xml
Adding version/date information in pages

1 swift 1.1 <?xml version='1.0' encoding='UTF-8'?>
2     <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3    
4     <!-- The content of this document is licensed under the CC-BY-SA license -->
5     <!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6    
7 swift 1.6 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-mips-bootloader.xml,v 1.5 2004/10/23 11:02:06 swift Exp $ -->
8 swift 1.1
9     <sections>
10 swift 1.6
11     <version>1.5</version>
12     <date>October 23, 2004</date>
13    
14 swift 1.1 <section>
15     <title>The MIPS PROM</title>
16     <subsection>
17     <body>
18    
19     <p>
20     MIPS doesn't require that you install a bootloader. The MIPS PROM handles the
21     booting, but you need to install your kernel as a viable option.
22     </p>
23    
24     <p>
25     First, install <c>dvhtool</c>, needed to copy the kernel to the SGI Volume
26     Header.
27     </p>
28    
29     <pre caption="Installing dvhtool">
30     # <i>emerge dvhtool</i>
31     </pre>
32    
33     <p>
34     Now copy over the kernel to the SGI Volume Header. By default <c>dvhtool</c>
35     assumes that the SGI Volume Header is on <path>/dev/sda</path>. If this is not
36     the case (for instance when IRIX is installed on <path>/dev/sda</path> and
37     Gentoo/MIPS on <path>/dev/sdb</path>) you need to inform <c>dvhtool</c> about it
38     using <c>-d &lt;device&gt;</c>.
39     </p>
40    
41     <pre caption="Copying a kernel to the SGI Volume Header">
42     # <i>dvhtool --unix-to-vh &lt;kernel name in /boot&gt; &lt;name you want to give in volume header&gt;</i>
43     </pre>
44    
45     <p>
46     If you want to see all available entries in the volume, use
47     <c>--print-volume-directory</c>:
48     </p>
49    
50     <pre caption="Viewing all available entries in the volume">
51     # <i>dvhtool --print-volume-directory</i>
52     </pre>
53    
54     <p>
55 swift 1.5 To set up your system to boot Gentoo/MIPS you need to go tweak some settings in
56 swift 1.2 the MIPS PROM.
57 swift 1.1 </p>
58    
59     <p>
60 swift 1.2 Continue with <uri link="#reboot">Rebooting the System</uri>.
61     </p>
62    
63     </body>
64     </subsection>
65     </section>
66 cam 1.3 <section id="reboot">
67 swift 1.2 <title>Rebooting the System</title>
68     <subsection>
69     <body>
70    
71     <p>
72     Exit the chrooted environment and unmount all mounted partitions. Then type in
73     that one magical command you have been waiting for: <c>reboot</c>.
74     </p>
75    
76     <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
77     # <i>exit</i>
78 swift 1.4 cdimage ~# <i>cd</i>
79 swift 1.2 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo</i>
80     cdimage ~# <i>reboot</i>
81     </pre>
82    
83     </body>
84     </subsection>
85     </section>
86     <section>
87     <title>Tweaking the MIPS PROM</title>
88     <subsection>
89     <body>
90    
91     <p>
92     When you are rebooted, go to the <e>System Maintenance Menu</e> and select
93     <e>Enter Command Monitor</e> (<c>5</c>). If you want to test your new Gentoo
94     installation, you can just run <c>boot -f &lt;kernel name&gt;</c>. To have your
95     system permanently boot into the Gentoo installation, you need to set some
96     variables in the MIPS PROM:
97     </p>
98    
99     <pre caption="Configuring the PROM to Boot Gentoo">
100     1) Start System
101     2) Install System Software
102     3) Run Diagnostics
103     4) Recover System
104     5) Enter Command Monitor
105    
106     Option? <i>5</i>
107     Command Monitor. Type "exit" to return to the menu.
108    
109     <comment>(&lt;root device&gt; = Gentoo's root partition, e.g. /dev/sda3)</comment>
110     &gt;&gt; <i>setenv OSLoadPartition &lt;root device&gt;</i>
111    
112     <comment>(To list the available kernels, type "ls")</comment>
113     &gt;&gt; <i>setenv OSLoader &lt;kernel name&gt;</i>
114     &gt;&gt; <i>setenv OSLoadFilename &lt;kernel name&gt;</i>
115    
116     <comment>(Declare the kernel parameters you want to pass)</comment>
117     &gt;&gt; <i>setenv OSLoadOptions &lt;kernel parameters&gt;</i>
118    
119     <comment>(Provide the location of the Volume Header)</comment>
120     &gt;&gt; <i>setenv SystemPartition scsi(0)disk(1)rdisk(0)partition(8)</i>
121    
122     <comment>(Automatically boot Gentoo)</comment>
123     &gt;&gt; <i>setenv AutoLoad Yes</i>
124    
125     <comment>(Set the timezone)</comment>
126     &gt;&gt; <i>setenv TimeZone EST5EDT</i>
127    
128     <comment>(Use the serial console - graphic adapter users should have "g" instead of "d1" (one))</comment>
129     &gt;&gt; <i>setenv console d1</i>
130     </pre>
131    
132     <p>
133     Now you're ready to enjoy Gentoo! Boot in your Gentoo installation and finish
134     up with <uri link="?part=1&amp;chap=11">Finalizing your Gentoo
135     Installation</uri>.
136 swift 1.1 </p>
137    
138     </body>
139     </subsection>
140     </section>
141     </sections>

  ViewVC Help
Powered by ViewVC 1.1.20