/[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.4 - (show annotations) (download) (as text)
Fri Sep 24 12:08:44 2004 UTC (9 years, 10 months ago) by swift
Branch: MAIN
Changes since 1.3: +2 -1 lines
File MIME type: application/xml
Exit from the mountpoint before unmounting as reported by John Holden

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.3 2004/08/04 13:20:18 cam 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>cd</i>
75 cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo</i>
76 cdimage ~# <i>reboot</i>
77 </pre>
78
79 </body>
80 </subsection>
81 </section>
82 <section>
83 <title>Tweaking the MIPS PROM</title>
84 <subsection>
85 <body>
86
87 <p>
88 When you are rebooted, go to the <e>System Maintenance Menu</e> and select
89 <e>Enter Command Monitor</e> (<c>5</c>). If you want to test your new Gentoo
90 installation, you can just run <c>boot -f &lt;kernel name&gt;</c>. To have your
91 system permanently boot into the Gentoo installation, you need to set some
92 variables in the MIPS PROM:
93 </p>
94
95 <pre caption="Configuring the PROM to Boot Gentoo">
96 1) Start System
97 2) Install System Software
98 3) Run Diagnostics
99 4) Recover System
100 5) Enter Command Monitor
101
102 Option? <i>5</i>
103 Command Monitor. Type "exit" to return to the menu.
104
105 <comment>(&lt;root device&gt; = Gentoo's root partition, e.g. /dev/sda3)</comment>
106 &gt;&gt; <i>setenv OSLoadPartition &lt;root device&gt;</i>
107
108 <comment>(To list the available kernels, type "ls")</comment>
109 &gt;&gt; <i>setenv OSLoader &lt;kernel name&gt;</i>
110 &gt;&gt; <i>setenv OSLoadFilename &lt;kernel name&gt;</i>
111
112 <comment>(Declare the kernel parameters you want to pass)</comment>
113 &gt;&gt; <i>setenv OSLoadOptions &lt;kernel parameters&gt;</i>
114
115 <comment>(Provide the location of the Volume Header)</comment>
116 &gt;&gt; <i>setenv SystemPartition scsi(0)disk(1)rdisk(0)partition(8)</i>
117
118 <comment>(Automatically boot Gentoo)</comment>
119 &gt;&gt; <i>setenv AutoLoad Yes</i>
120
121 <comment>(Set the timezone)</comment>
122 &gt;&gt; <i>setenv TimeZone EST5EDT</i>
123
124 <comment>(Use the serial console - graphic adapter users should have "g" instead of "d1" (one))</comment>
125 &gt;&gt; <i>setenv console d1</i>
126 </pre>
127
128 <p>
129 Now you're ready to enjoy Gentoo! Boot in your Gentoo installation and finish
130 up with <uri link="?part=1&amp;chap=11">Finalizing your Gentoo
131 Installation</uri>.
132 </p>
133
134 </body>
135 </subsection>
136 </section>
137 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20