/[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.3 - (show annotations) (download) (as text)
Wed Aug 4 13:20:18 2004 UTC (9 years, 8 months ago) by cam
Branch: MAIN
Changes since 1.2: +2 -2 lines
File MIME type: application/xml
Typo, label is #reboot, not #rebooting

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

  ViewVC Help
Powered by ViewVC 1.1.20