| 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.5 2004/10/23 11:02:06 swift Exp $ -->
|
| 8 |
|
| 9 |
<sections>
|
| 10 |
|
| 11 |
<version>1.5</version>
|
| 12 |
<date>October 23, 2004</date>
|
| 13 |
|
| 14 |
<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 <device></c>.
|
| 39 |
</p>
|
| 40 |
|
| 41 |
<pre caption="Copying a kernel to the SGI Volume Header">
|
| 42 |
# <i>dvhtool --unix-to-vh <kernel name in /boot> <name you want to give in volume header></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 |
To set up your system to boot Gentoo/MIPS you need to go tweak some settings in
|
| 56 |
the MIPS PROM.
|
| 57 |
</p>
|
| 58 |
|
| 59 |
<p>
|
| 60 |
Continue with <uri link="#reboot">Rebooting the System</uri>.
|
| 61 |
</p>
|
| 62 |
|
| 63 |
</body>
|
| 64 |
</subsection>
|
| 65 |
</section>
|
| 66 |
<section id="reboot">
|
| 67 |
<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 |
cdimage ~# <i>cd</i>
|
| 79 |
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 <kernel name></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>(<root device> = Gentoo's root partition, e.g. /dev/sda3)</comment>
|
| 110 |
>> <i>setenv OSLoadPartition <root device></i>
|
| 111 |
|
| 112 |
<comment>(To list the available kernels, type "ls")</comment>
|
| 113 |
>> <i>setenv OSLoader <kernel name></i>
|
| 114 |
>> <i>setenv OSLoadFilename <kernel name></i>
|
| 115 |
|
| 116 |
<comment>(Declare the kernel parameters you want to pass)</comment>
|
| 117 |
>> <i>setenv OSLoadOptions <kernel parameters></i>
|
| 118 |
|
| 119 |
<comment>(Provide the location of the Volume Header)</comment>
|
| 120 |
>> <i>setenv SystemPartition scsi(0)disk(1)rdisk(0)partition(8)</i>
|
| 121 |
|
| 122 |
<comment>(Automatically boot Gentoo)</comment>
|
| 123 |
>> <i>setenv AutoLoad Yes</i>
|
| 124 |
|
| 125 |
<comment>(Set the timezone)</comment>
|
| 126 |
>> <i>setenv TimeZone EST5EDT</i>
|
| 127 |
|
| 128 |
<comment>(Use the serial console - graphic adapter users should have "g" instead of "d1" (one))</comment>
|
| 129 |
>> <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&chap=11">Finalizing your Gentoo
|
| 135 |
Installation</uri>.
|
| 136 |
</p>
|
| 137 |
|
| 138 |
</body>
|
| 139 |
</subsection>
|
| 140 |
</section>
|
| 141 |
</sections>
|