1 |
josejx 07/03/16 05:31:09 |
2 |
|
3 |
Modified: hb-install-ppc-bootloader.xml |
4 |
hb-install-ppc-disk.xml hb-install-ppc-kernel.xml |
5 |
hb-install-ppc-medium.xml |
6 |
Log: |
7 |
First draft of ppc handbook update for 2007.1. |
8 |
|
9 |
Revision Changes Path |
10 |
1.26 xml/htdocs/doc/en/handbook/draft/hb-install-ppc-bootloader.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-bootloader.xml?rev=1.26&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-bootloader.xml?rev=1.26&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-bootloader.xml?r1=1.25&r2=1.26 |
15 |
|
16 |
Index: hb-install-ppc-bootloader.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-bootloader.xml,v |
19 |
retrieving revision 1.25 |
20 |
retrieving revision 1.26 |
21 |
diff -u -r1.25 -r1.26 |
22 |
--- hb-install-ppc-bootloader.xml 14 Mar 2007 06:24:40 -0000 1.25 |
23 |
+++ hb-install-ppc-bootloader.xml 16 Mar 2007 05:31:09 -0000 1.26 |
24 |
@@ -4,12 +4,12 @@ |
25 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
26 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
27 |
|
28 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-bootloader.xml,v 1.25 2007/03/14 06:24:40 nightmorph Exp $ --> |
29 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-bootloader.xml,v 1.26 2007/03/16 05:31:09 josejx Exp $ --> |
30 |
|
31 |
<sections> |
32 |
|
33 |
-<version>7.2</version> |
34 |
-<date>2006-11-13</date> |
35 |
+<version>7.3</version> |
36 |
+<date>2007-03-15</date> |
37 |
|
38 |
<section> |
39 |
<title>Choosing a Bootloader</title> |
40 |
@@ -28,7 +28,7 @@ |
41 |
<uri link="#yaboot">yaboot</uri>. OldWorld Apple machines have two options, |
42 |
<uri link="#bootx">BootX</uri> (recommended) and <uri link="#quik">quik</uri>. |
43 |
The Pegasos does not require a bootloader, but you will need to emerge |
44 |
-<uri link="#bootcreator">BootCreator</uri> to create SmartFirmware bootmenus. |
45 |
+<uri link="#bootcreator">bootcreator</uri> to create SmartFirmware boot menus. |
46 |
</p> |
47 |
|
48 |
</body> |
49 |
@@ -72,24 +72,24 @@ |
50 |
<note> |
51 |
You will need to manually edit the yaboot.conf when using genkernel, even if |
52 |
yabootconfig is used. The kernel image section of yaboot.conf should be |
53 |
-modified as follows: |
54 |
+modified as follows (using vmlinux and initrd as the name of kernel and |
55 |
+initrd image): |
56 |
</note> |
57 |
|
58 |
<pre caption="Adding genkernel boot arguments to yaboot.conf"> |
59 |
<comment>########################################################### |
60 |
## This section can be duplicated if you have more than one |
61 |
-## kernel or set of boot options - replace kernel-name |
62 |
-## and initrd-name with the exact filename of your kernel |
63 |
-## and initrd image. |
64 |
+## kernel or set of boot options - replace vmlinux and initrd |
65 |
+## with the exact filename of your kernel and initrd image. |
66 |
###########################################################</comment> |
67 |
-image=/boot/kernel-name |
68 |
+image=/boot/vmlinux |
69 |
label=Linux |
70 |
root=/dev/ram0 |
71 |
partition=3 |
72 |
- initrd=/boot/initrd-name |
73 |
- append="real_root=/dev/hda3 init=/linuxrc" |
74 |
+ initrd=/boot/initrd |
75 |
<comment># You can add additional kernel arguments to append such as |
76 |
# rootdelay=10 for a USB/Firewire Boot</comment> |
77 |
+ append="real_root=/dev/hda3 init=/linuxrc" |
78 |
read-only |
79 |
<comment>##########################################################</comment> |
80 |
</pre> |
81 |
@@ -115,13 +115,13 @@ |
82 |
<p> |
83 |
To use <c>yabootconfig</c>, your drive must have an Apple_Bootstrap partition, |
84 |
and <path>/etc/fstab</path> must be configured to reflect your Linux |
85 |
-partitions. These steps should have already been completed before, but check |
86 |
-<path>/etc/fstab</path> before proceeding. Now, ensure that you have |
87 |
-<c>yaboot</c> installed. |
88 |
+partitions (note that the Bootstrap partition should <e>not</e> be in your |
89 |
+fstab). These steps should have already been completed before, but check |
90 |
+<path>/etc/fstab</path> before proceeding. Now, install <c>yaboot</c>. |
91 |
</p> |
92 |
|
93 |
<pre caption = "Installing yaboot"> |
94 |
-# <i>emerge yaboot</i> |
95 |
+# <i>emerge --usepkg yaboot</i> |
96 |
</pre> |
97 |
|
98 |
<p> |
99 |
@@ -141,9 +141,11 @@ |
100 |
</pre> |
101 |
|
102 |
<p> |
103 |
-You might want to verify the contents of <path>/etc/yaboot.conf</path>. If you |
104 |
-make changes to <path>/etc/yaboot.conf</path> (like setting the default/boot |
105 |
-OS), make sure to rerun <c>ybin -v</c> to apply changes to the Apple_Bootstrap |
106 |
+You should verify the contents of <path>/etc/yaboot.conf</path>. If you make |
107 |
+changes to <path>/etc/yaboot.conf</path> (like setting the default/boot OS), |
108 |
+make sure to rerun <c>ybin -v</c> to apply changes to the Apple_Bootstrap |
109 |
+partition. Whenever you make a change to yaboot.conf, like when testing a new |
110 |
+kernel, always remember to run <c>ybin -v</c> to update the bootstrap |
111 |
partition. |
112 |
</p> |
113 |
|
114 |
@@ -158,7 +160,7 @@ |
115 |
<body> |
116 |
|
117 |
<p> |
118 |
-First make sure you have <c>yaboot</c> installed on your system: |
119 |
+First, install <c>yaboot</c> on your system: |
120 |
</p> |
121 |
|
122 |
<pre caption = "Installing yaboot with GRP"> |
123 |
@@ -355,7 +357,7 @@ |
124 |
</p> |
125 |
|
126 |
<pre caption="Emerge quik"> |
127 |
-# <i>emerge quik</i> |
128 |
+# <i>emerge --usepkg quik</i> |
129 |
</pre> |
130 |
|
131 |
<p> |
132 |
|
133 |
|
134 |
|
135 |
1.24 xml/htdocs/doc/en/handbook/draft/hb-install-ppc-disk.xml |
136 |
|
137 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-disk.xml?rev=1.24&view=markup |
138 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-disk.xml?rev=1.24&content-type=text/plain |
139 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-disk.xml?r1=1.23&r2=1.24 |
140 |
|
141 |
Index: hb-install-ppc-disk.xml |
142 |
=================================================================== |
143 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-disk.xml,v |
144 |
retrieving revision 1.23 |
145 |
retrieving revision 1.24 |
146 |
diff -u -r1.23 -r1.24 |
147 |
--- hb-install-ppc-disk.xml 14 Mar 2007 06:24:40 -0000 1.23 |
148 |
+++ hb-install-ppc-disk.xml 16 Mar 2007 05:31:09 -0000 1.24 |
149 |
@@ -4,12 +4,12 @@ |
150 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
151 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
152 |
|
153 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-disk.xml,v 1.23 2007/03/14 06:24:40 nightmorph Exp $ --> |
154 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-disk.xml,v 1.24 2007/03/16 05:31:09 josejx Exp $ --> |
155 |
|
156 |
<sections> |
157 |
|
158 |
-<version>7.1</version> |
159 |
-<date>2006-11-02</date> |
160 |
+<version>7.2</version> |
161 |
+<date>2007-03-15</date> |
162 |
|
163 |
<section> |
164 |
<title>Introduction to Block Devices</title> |
165 |
@@ -18,7 +18,7 @@ |
166 |
<body> |
167 |
|
168 |
<p> |
169 |
-We'll take a good look at disk-oriented aspects of Gentoo Linux |
170 |
+We'll start by taking a good look at disk-oriented aspects of Gentoo Linux |
171 |
and Linux in general, including Linux filesystems, partitions and block devices. |
172 |
Then, once you're familiar with the ins and outs of disks and filesystems, |
173 |
you'll be guided through the process of setting up partitions and filesystems |
174 |
@@ -29,13 +29,15 @@ |
175 |
To begin, we'll introduce <e>block devices</e>. The most common block device is |
176 |
the one that represents the first IDE drive in a Linux system, namely |
177 |
<path>/dev/hda</path>. If you are installing onto SCSI, FireWire, USB or SATA |
178 |
-drives, then your first hard drive would be <path>/dev/sda</path>. |
179 |
+drives, then your first hard drive would be <path>/dev/sda</path>. Additional |
180 |
+drives are enumerated by the next letter in the alphabet. As an example, the |
181 |
+third IDE disk could be found at <path>/dev/hdc</path>. |
182 |
</p> |
183 |
|
184 |
<p> |
185 |
The block devices above represent an abstract interface to the disk. User |
186 |
-programs can use these block devices to interact with your disk without worrying |
187 |
-about whether your drives are IDE, SCSI or something else. The program can |
188 |
+programs can use these block devices to interact with the disk without worrying |
189 |
+about whether the drives are IDE, SCSI or something else. The program can |
190 |
simply address the storage on the disk as a bunch of contiguous, |
191 |
randomly-accessible 512-byte blocks. |
192 |
</p> |
193 |
@@ -64,94 +66,231 @@ |
194 |
|
195 |
<p> |
196 |
If you are not interested in drawing up a partitioning scheme for your system, |
197 |
-you can use the partitioning scheme we use throughout this book: |
198 |
+you can use the partitioning scheme we use throughout this book. Choose the |
199 |
+filesystem layout that best matches the type of PowerPC system you are |
200 |
+installing on. |
201 |
+</p> |
202 |
+ |
203 |
+</body> |
204 |
+</subsection> |
205 |
+<subsection> |
206 |
+<title>Apple New World</title> |
207 |
+<body> |
208 |
+ |
209 |
+<p> |
210 |
+Apple New World machines are fairly straightforward to configure. The first |
211 |
+partition is always an <e>Apple Partition Map</e>. This partition keeps track |
212 |
+of the layout of the disk. You cannot remove this partition. The next |
213 |
+partition should always be a bootstrap partition. This partition contains a |
214 |
+small (800k) HFS filesystem that holds a copy of the bootloader Yaboot and its |
215 |
+configuration file. This partition is <e>not</e> the same as a |
216 |
+<path>/boot</path> partition as found on other architectures. After the boot |
217 |
+partition, the usual Linux filesystems are placed, according to the scheme |
218 |
+below. The swap partition is a temporary storage place for when your system |
219 |
+runs out of physical memory. The root partition will contain the filesystem |
220 |
+that Gentoo is installed on. If you wish to dual boot, the OSX partition |
221 |
+can go anywhere after the bootstrap partition to insure that yaboot starts |
222 |
+first. |
223 |
</p> |
224 |
|
225 |
<note> |
226 |
-If you are using an OldWorld machine, you will need to keep MacOS available. |
227 |
-The layout here assumes MacOS is installed on a separate drive. |
228 |
+There may be "Disk Driver" partitions on your disk such as <path>Apple_Driver63, |
229 |
+Apple_Driver_ATA, Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. |
230 |
+These are used to boot MacOS, so if you have no need for this, you can remove |
231 |
+them by initializing the disk with mac-fdisk's <c>i</c> option. This will |
232 |
+completely erase the disk! If you are in doubt, just let them be. |
233 |
+</note> |
234 |
+ |
235 |
+<note> |
236 |
+If you partitioned this disk with Apple's Disk Utility, there may be |
237 |
+128Mb spaces between partitions which Apple reserves for "future use". You |
238 |
+can safely remove these. |
239 |
</note> |
240 |
|
241 |
<table> |
242 |
<tr> |
243 |
- <th>Partition NewWorld</th> |
244 |
- <th>Partition OldWorld</th> |
245 |
- <th>Partition Pegasos</th> |
246 |
- <th>Partition RS/6000</th> |
247 |
- <th>Filesystem</th> |
248 |
+ <th>Partition</th> |
249 |
<th>Size</th> |
250 |
+ <th>Filesystem</th> |
251 |
<th>Description</th> |
252 |
</tr> |
253 |
<tr> |
254 |
<ti><path>/dev/hda1</path></ti> |
255 |
- <ti><path>/dev/hda1</path></ti> |
256 |
- <ti>(Not applicable)</ti> |
257 |
- <ti>(Not applicable)</ti> |
258 |
- <ti>(Partition Map)</ti> |
259 |
<ti>32k</ti> |
260 |
- <ti>Apple_partition_map</ti> |
261 |
+ <ti>None</ti> |
262 |
+ <ti>Apple Partition Map</ti> |
263 |
</tr> |
264 |
<tr> |
265 |
<ti><path>/dev/hda2</path></ti> |
266 |
- <ti>(Not needed)</ti> |
267 |
- <ti>(Not applicable)</ti> |
268 |
- <ti>(Not applicable)</ti> |
269 |
- <ti>(bootstrap)</ti> |
270 |
<ti>800k</ti> |
271 |
- <ti>Apple_Bootstrap</ti> |
272 |
+ <ti>HFS</ti> |
273 |
+ <ti>Apple Bootstrap</ti> |
274 |
</tr> |
275 |
<tr> |
276 |
- <ti>(Not applicable)</ti> |
277 |
- <ti>(Not applicable)</ti> |
278 |
- <ti>(Not applicable)</ti> |
279 |
- <ti><path>/dev/sda1</path></ti> |
280 |
- <ti>(PReP Boot)</ti> |
281 |
- <ti>800k</ti> |
282 |
- <ti>Type 0x41</ti> |
283 |
+ <ti><path>/dev/hda3</path></ti> |
284 |
+ <ti>512Mb</ti> |
285 |
+ <ti>Swap</ti> |
286 |
+ <ti>Linux Swap</ti> |
287 |
+</tr> |
288 |
+<tr> |
289 |
+ <ti><path>/dev/hda4</path></ti> |
290 |
+ <ti>Rest of Disk</ti> |
291 |
+ <ti>ext3, reiserfs, xfs</ti> |
292 |
+ <ti>Linux Root</ti> |
293 |
+</tr> |
294 |
+</table> |
295 |
+ |
296 |
+</body> |
297 |
+</subsection> |
298 |
+<subsection> |
299 |
+<title>Apple Old World</title> |
300 |
+<body> |
301 |
+ |
302 |
+<p> |
303 |
+Apple Old World machines are a bit more complicated to configure. The first |
304 |
+partition is always an <e>Apple Partition Map</e>. This partition keeps track |
305 |
+of the layout of the disk. You cannot remove this partition. If you are using |
306 |
+BootX, the configuration below assumes that MacOS is installed on a seperate |
307 |
+disk. If this is not the case, there will be additional partitions for "Apple |
308 |
+Disk Drivers" such as <path>Apple_Driver63, Apple_Driver_ATA, Apple_FWDriver, |
309 |
+Apple_Driver_IOKit, Apple_Patches</path> and the MacOS install. If you are |
310 |
+using Quik, you will need to create a boot partition to hold the kernel, unlike |
311 |
+other Apple boot methods. After the boot partition, the usual Linux filesystems |
312 |
+are placed, according to the scheme below. The swap partition is a temporary |
313 |
+storage place for when your system runs out of physical memory. The root |
314 |
+partition will contain the filesystem that Gentoo is installed on. |
315 |
+</p> |
316 |
+ |
317 |
+<note> |
318 |
+If you are using an OldWorld machine, you will need to keep MacOS available. |
319 |
+The layout here assumes MacOS is installed on a separate drive. |
320 |
+</note> |
321 |
+ |
322 |
+<table> |
323 |
+<tr> |
324 |
+ <th>Partition</th> |
325 |
+ <th>Size</th> |
326 |
+ <th>Filesystem</th> |
327 |
+ <th>Description</th> |
328 |
</tr> |
329 |
<tr> |
330 |
- <ti>(Not applicable)</ti> |
331 |
- <ti><path>/dev/hda2</path> (If using quik)</ti> |
332 |
<ti><path>/dev/hda1</path></ti> |
333 |
- <ti>(Not applicable)</ti> |
334 |
+ <ti>32k</ti> |
335 |
+ <ti>None</ti> |
336 |
+ <ti>Apple Partition Map</ti> |
337 |
+</tr> |
338 |
+<tr> |
339 |
+ <ti><path>/dev/hda2</path></ti> |
340 |
+ <ti>32Mb</ti> |
341 |
<ti>ext2</ti> |
342 |
- <ti>32MB</ti> |
343 |
- <ti>Boot partition</ti> |
344 |
+ <ti>Quik Boot Partition (quik only)</ti> |
345 |
</tr> |
346 |
<tr> |
347 |
<ti><path>/dev/hda3</path></ti> |
348 |
- <ti><path>/dev/hda2</path> (<path>/dev/hda3</path> if using quik)</ti> |
349 |
- <ti><path>/dev/hda2</path></ti> |
350 |
- <ti><path>/dev/sda2</path></ti> |
351 |
- <ti>(swap)</ti> |
352 |
- <ti>512M</ti> |
353 |
- <ti>Swap partition, Type 0x82</ti> |
354 |
+ <ti>512Mb</ti> |
355 |
+ <ti>Swap</ti> |
356 |
+ <ti>Linux Swap</ti> |
357 |
</tr> |
358 |
<tr> |
359 |
<ti><path>/dev/hda4</path></ti> |
360 |
- <ti><path>/dev/hda3</path> (<path>/dev/hda4</path> if using quik)</ti> |
361 |
+ <ti>Rest of Disk</ti> |
362 |
+ <ti>ext3, reiserfs, xfs</ti> |
363 |
+ <ti>Linux Root</ti> |
364 |
+</tr> |
365 |
+</table> |
366 |
+ |
367 |
+</body> |
368 |
+</subsection> |
369 |
+<subsection> |
370 |
+<title>Pegasos</title> |
371 |
+<body> |
372 |
+ |
373 |
+<p> |
374 |
+The Pegaos partition layout is quite simple compared to the Apple layouts. |
375 |
+The first partition is a Boot Partition, which contains kernels to be booted, |
376 |
+along with an OpenFirmware script that presents a menu on boot. After the boot |
377 |
+partition, the usual Linux filesystems are placed, according to the scheme |
378 |
+below. The swap partition is a temporary storage place for when your system |
379 |
+runs out of physical memory. The root partition will contain the filesystem |
380 |
+that Gentoo is installed on. |
381 |
+</p> |
382 |
+ |
383 |
+<table> |
384 |
+<tr> |
385 |
+ <th>Partition</th> |
386 |
+ <th>Size</th> |
387 |
+ <th>Filesystem</th> |
388 |
+ <th>Description</th> |
389 |
+</tr> |
390 |
+<tr> |
391 |
+ <ti><path>/dev/hda1</path></ti> |
392 |
+ <ti>32Mb</ti> |
393 |
+ <ti>affs1 or ext2</ti> |
394 |
+ <ti>Boot Partition</ti> |
395 |
+</tr> |
396 |
+<tr> |
397 |
+ <ti><path>/dev/hda2</path></ti> |
398 |
+ <ti>512Mb</ti> |
399 |
+ <ti>Swap</ti> |
400 |
+ <ti>Linux Swap</ti> |
401 |
+</tr> |
402 |
+<tr> |
403 |
<ti><path>/dev/hda3</path></ti> |
404 |
- <ti><path>/dev/sda3</path></ti> |
405 |
- <ti>ext3, xfs</ti> |
406 |
- <ti>Rest of the disk</ti> |
407 |
- <ti>Root partition, Type 0x83</ti> |
408 |
+ <ti>Rest of Disk</ti> |
409 |
+ <ti>ext3, reiserfs, xfs</ti> |
410 |
+ <ti>Linux Root</ti> |
411 |
</tr> |
412 |
</table> |
413 |
|
414 |
-<note> |
415 |
-There are some partitions named: <path>Apple_Driver63, Apple_Driver_ATA, |
416 |
-Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. If you are not |
417 |
-planning to use MacOS 9 you can delete them, because MacOS X and Linux don't |
418 |
-need them. To delete them, either use parted or erase the whole disk by |
419 |
-initializing the partition map. |
420 |
-</note> |
421 |
+</body> |
422 |
+</subsection> |
423 |
+<subsection> |
424 |
+<title>IBM PReP (RS/6000)</title> |
425 |
+<body> |
426 |
+ |
427 |
+<p> |
428 |
+The Pegaos partition layout is quite simple compared to the Apple layouts. |
429 |
+The first partition is a Boot Partition, which contains kernels to be booted, |
430 |
+along with an OpenFirmware script that presents a menu on boot. After the boot |
431 |
+partition, the usual Linux filesystems are placed, according to the scheme |
432 |
+below. The swap partition is a temporary storage place for when your system |
433 |
+runs out of physical memory. The root partition will contain the filesystem |
434 |
+that Gentoo is installed on. |
435 |
+</p> |
436 |
+ |
437 |
+<table> |
438 |
+<tr> |
439 |
+ <th>Partition</th> |
440 |
+ <th>Size</th> |
441 |
+ <th>Filesystem</th> |
442 |
+ <th>Description</th> |
443 |
+</tr> |
444 |
+<tr> |
445 |
+ <ti><path>/dev/hda1</path></ti> |
446 |
+ <ti>800k</ti> |
447 |
+ <ti>None</ti> |
448 |
+ <ti>PReP Boot Partition (Type 0x41)</ti> |
449 |
+</tr> |
450 |
+<tr> |
451 |
+ <ti><path>/dev/hda2</path></ti> |
452 |
+ <ti>512Mb</ti> |
453 |
+ <ti>Swap</ti> |
454 |
+ <ti>Linux Swap (Type 0x82)</ti> |
455 |
+</tr> |
456 |
+<tr> |
457 |
+ <ti><path>/dev/hda3</path></ti> |
458 |
+ <ti>Rest of Disk</ti> |
459 |
+ <ti>ext3, reiserfs, xfs</ti> |
460 |
+ <ti>Linux Root (Type 0x83)</ti> |
461 |
+</tr> |
462 |
+</table> |
463 |
|
464 |
<warn> |
465 |
-<c>parted</c> is able to resize partitions including HFS+. Unfortunately it is |
466 |
-not possible to resize HFS+ journaled filesystems, so switch off journaling in |
467 |
-Mac OS X before resizing. Remember that any resizing operation is dangerous, |
468 |
-so attempt at your own risk! Be sure to always have a backup of your data |
469 |
-before resizing! |
470 |
+<c>parted</c> is able to resize partitions including HFS+. Unfortunately there |
471 |
+may be issues with resizing HFS+ journaled filesystems, so, for the best |
472 |
+results, switch off journaling in Mac OS X before resizing. Remember that any |
473 |
+resizing operation is dangerous, so attempt at your own risk! Be sure to always |
474 |
+have a backup of your data before resizing! |
475 |
</warn> |
476 |
|
477 |
<p> |
478 |
@@ -173,13 +312,13 @@ |
479 |
if you have lots of users, you will most likely want to have your |
480 |
<path>/home</path> separate as it increases security and makes backups easier. |
481 |
If you are installing Gentoo to perform as a mailserver, your <path>/var</path> |
482 |
-should be separate as all mails are stored inside <path>/var</path>. A good |
483 |
-choice of filesystem will then maximise your performance. Gameservers will have |
484 |
-a separate <path>/opt</path> as most gaming servers are installed there. The |
485 |
-reason is similar for <path>/home</path>: security and backups. You will |
486 |
-definitely want to keep <path>/usr</path> big: not only will it contain the |
487 |
-majority of applications, the Portage tree alone takes around 500 Mbyte |
488 |
-excluding the various sources that are stored in it. |
489 |
+should be separate as all received mail is stored in <path>/var</path>. A good |
490 |
+choice of filesystem will then maximise your performance. Game servers should |
491 |
+have a separate <path>/opt</path> as most game servers are installed there. The |
492 |
+reason is similar for <path>/home</path>: security and backups. Whatever layout |
493 |
+you chose, you will definitely want to keep <path>/usr</path> large: not only |
494 |
+will it contain the majority of applications, the Portage tree alone takes |
495 |
+more than 500Mb excluding the various sources that are stored in it. |
496 |
</p> |
497 |
|
498 |
<p> |
499 |
@@ -229,10 +368,13 @@ |
500 |
</pre> |
501 |
|
502 |
<p> |
503 |
-First delete the partitions you have cleared previously to make room for your |
504 |
-Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s). |
505 |
-It will ask for the partition number to delete. Usually the first partition on |
506 |
-NewWorld machines (Apple_partition_map) could not be deleted. |
507 |
+If you used Apple's Disk Utility to leave space for Linux, first delete the |
508 |
+partitions you have created previously to make room for your new install. Use |
509 |
+<c>d</c> in <c>mac-fdisk</c> to delete those partition(s). It will ask for the |
510 |
+partition number to delete. Usually the first partition on NewWorld machines |
511 |
+(Apple_partition_map) could not be deleted. If you would like to start with a |
512 |
+clean disk, you can simply initialize the disk by pressing <c>i</c>. This |
513 |
+will completely erase the disk, so use this with caution. |
514 |
</p> |
515 |
|
516 |
<p> |
517 |
@@ -252,15 +394,15 @@ |
518 |
ask for what block you want to start this partition from. As we used <c>2</c> |
519 |
before to create the Apple_Bootstrap partition, you now have to enter |
520 |
<c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size |
521 |
-you want -- 512MB is recommended though). When asked for a name, enter <c>swap</c> |
522 |
-(mandatory). |
523 |
+you want -- a minimum of 512MB is recommended, but 2 times your physical memory |
524 |
+is the generally accepted size). When asked for a name, enter <c>swap</c>. |
525 |
</p> |
526 |
|
527 |
<p> |
528 |
To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select |
529 |
from what block the root partition should start. When asked for the size, enter |
530 |
<c>4p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available |
531 |
-space". When asked for the name, enter <c>root</c> (mandatory). |
532 |
+space". When asked for the name, enter <c>root</c>. |
533 |
</p> |
534 |
|
535 |
<p> |
536 |
@@ -269,7 +411,7 @@ |
537 |
</p> |
538 |
|
539 |
<note> |
540 |
-To make sure everything is ok, you should run mac-fdisk once more and check |
541 |
+To make sure everything is ok, you should run <c>mac-fdisk -l</c> and check |
542 |
whether all the partitions are there. If you don't see any of the partitions |
543 |
you created, or the changes you made, you should reinitialize your partitions |
544 |
by pressing "i" in mac-fdisk. Note that this will recreate the partition map |
545 |
@@ -277,14 +419,14 @@ |
546 |
</note> |
547 |
|
548 |
<p> |
549 |
-Now that your partitions are created, you can continue with <uri |
550 |
-link="#filesystems">Creating Filesystems</uri>. |
551 |
+Now that your partitions are created, you can continue with |
552 |
+<uri link="#filesystems">Creating Filesystems</uri>. |
553 |
</p> |
554 |
|
555 |
</body> |
556 |
</section> |
557 |
<section id="parted"> |
558 |
-<title>Using parted (especially Pegasos) to Partition your Disk</title> |
559 |
+<title>Using parted to Partition your Disk (Pegasos and RS/6000)</title> |
560 |
<body> |
561 |
|
562 |
<p> |
563 |
@@ -303,7 +445,7 @@ |
564 |
</pre> |
565 |
|
566 |
<p> |
567 |
-If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new |
568 |
+If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new |
569 |
disklabel for the drive. |
570 |
</p> |
571 |
|
572 |
@@ -315,42 +457,33 @@ |
573 |
|
574 |
<p> |
575 |
If you intend to also install MorphOS on your Pegasos create an affs1 filesystem |
576 |
-named "BI0" (BI zero) at the start of the drive. 32MB should be more than enough |
577 |
-to store the MorphOS kernel. If you have a Pegasos I or intend to use reiserfs or |
578 |
-xfs, you will also have to store your Linux kernel on this partition (the |
579 |
-Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the partition run |
580 |
-<c>mkpart primary affs1 START END</c> where <c>START</c> and <c>END</c> should |
581 |
-be replaced with the megabyte range (e.g. <c>0 32</c> creates a 32 MB partition |
582 |
-starting at 0MB and ending at 32MB. |
583 |
-</p> |
584 |
- |
585 |
-<p> |
586 |
-You need to create two partitions for Linux, one root filesystem for all your |
587 |
-program files etc, and one swap partition. To create the root filesystem you |
588 |
-must first decide which filesystem to use. Possible options are ext2, ext3, |
589 |
-reiserfs and xfs. Unless you know what you are doing, use ext3. Run |
590 |
-<c>mkpart primary ext3 START END</c> to create an ext3 partition. Again, replace |
591 |
-<c>START</c> and <c>END</c> with the megabyte start and stop marks for the |
592 |
-partition. |
593 |
+at the start of the drive. 32MB should be more than enough to store the MorphOS |
594 |
+kernel. If you have a Pegasos I or intend to use any filesystem besides ext2 or |
595 |
+ext3, you will also have to store your Linux kernel on this partition (the |
596 |
+Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the |
597 |
+partition run <c>mkpart primary affs1 START END</c> where <c>START</c> and |
598 |
+<c>END</c> should be replaced with the megabyte range (e.g. <c>0 32</c> which |
599 |
+creates a 32 MB partition starting at 0MB and ending at 32MB. If you chose to |
600 |
+create an ext2 or ext3 partition instead, substitute ext2 or ext3 for affs1 in |
601 |
+the mkpart command. |
602 |
</p> |
603 |
|
604 |
<p> |
605 |
-It is generally recommended that you create a swap partition the same size as |
606 |
-the amount of RAM in your computer times two. You will probably get away with a |
607 |
-smaller swap partition unless you intend to run a lot of applications at the |
608 |
-same time (although at least 512MB is recommended). To create the swap |
609 |
-partition, run <c>mkpart primary linux-swap START END</c>. |
610 |
+You will need to create two partitions for Linux, one root filesystem and one |
611 |
+swap partition. Run <c>mkpart primary START END</c> to create each partition, |
612 |
+replacing <c>START</c> and <c>END</c> with the desired megabyte boundries. |
613 |
</p> |
614 |
|
615 |
<p> |
616 |
-Write down the partition minor numbers as they are required during the |
617 |
-installation process. To display the minor numbers run <c>print</c>. Your drives |
618 |
-are accessed as <path>/dev/hdaX</path> where X is replaced with the minor number |
619 |
-of the partition. |
620 |
+It is generally recommended that you create a swap partition that is two times |
621 |
+bigger than the amount of RAM in your computer, but at least 512Mb is |
622 |
+recommended. To create the swap partition, run |
623 |
+<c>mkpart primary linux-swap START END</c> with START and END again denoting |
624 |
+the partition boundries. |
625 |
</p> |
626 |
|
627 |
<p> |
628 |
-When you are done in parted simply run <c>quit</c>. |
629 |
+When you are done in parted simply type <c>quit</c>. |
630 |
</p> |
631 |
|
632 |
</body> |
633 |
@@ -363,10 +496,10 @@ |
634 |
|
635 |
<p> |
636 |
Now that your partitions are created, it is time to place a filesystem on them. |
637 |
-If you don't care about what filesystem to choose and are happy with what we use |
638 |
-as default in this handbook, continue with <uri |
639 |
- link="#filesystems-apply">Applying a Filesystem to a Partition</uri>. |
640 |
-Otherwise read on to learn about the available filesystems... |
641 |
+If you're not sure which filesystems to choose and are happy with our defaults, |
642 |
+continue with |
643 |
+<uri link="#filesystems-apply">Applying a Filesystem to a Partition</uri>. |
644 |
+Otherwise, read on to learn about the available filesystems. |
645 |
</p> |
646 |
|
647 |
</body> |
648 |
@@ -376,18 +509,16 @@ |
649 |
<body> |
650 |
|
651 |
<p> |
652 |
-Several filesystems are available. ext2, ext3, ReiserFS and XFS have been found |
653 |
-stable on the PPC architecture. |
654 |
+Several filesystems are available for use on the PowerPC architecture including |
655 |
+ext2, ext3, ReiserFS and XFS, each with their strengths and faults. |
656 |
</p> |
657 |
|
658 |
<p> |
659 |
<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata |
660 |
journaling, which means that routine ext2 filesystem checks at startup time can |
661 |
-be quite time-consuming. There is now quite a selection of newer-generation |
662 |
-journaled filesystems that can be checked for consistency very quickly and are |
663 |
-thus generally preferred over their non-journaled counterparts. Journaled |
664 |
-filesystems prevent long delays when you boot your system and your filesystem |
665 |
-happens to be in an inconsistent state. |
666 |
+be quite time-consuming. There is now quite a selection of journaled |
667 |
+filesystems that can be checked for consistency very quickly and are thus |
668 |
+generally preferred over their non-journaled counterparts. |
669 |
</p> |
670 |
|
671 |
<p> |
672 |
@@ -395,7 +526,7 @@ |
673 |
journaling for fast recovery in addition to other enhanced journaling modes |
674 |
like full data and ordered data journaling. It uses a hashed B*-tree index that |
675 |
enables high performance in almost all situations. In short, ext3 is a very |
676 |
-good and reliable filesystem. |
677 |
+good and reliable filesystem and is highly recommended for most installs. |
678 |
</p> |
679 |
|
680 |
<p> |
681 |
@@ -420,6 +551,32 @@ |
682 |
|
683 |
</body> |
684 |
</subsection> |
685 |
+<subsection> |
686 |
+<title>Activating the Swap Partition</title> |
687 |
+<body> |
688 |
+ |
689 |
+<p> |
690 |
+<c>mkswap</c> is the command that is used to initialize swap partitions: |
691 |
+</p> |
692 |
+ |
693 |
+<pre caption="Creating a swap signature"> |
694 |
+# <i>mkswap /dev/hda3</i> |
695 |
+</pre> |
696 |
+ |
697 |
+<p> |
698 |
+To activate the swap partition, use <c>swapon</c>: |
699 |
+</p> |
700 |
+ |
701 |
+<pre caption="Activating the swap partition"> |
702 |
+# <i>swapon /dev/hda3</i> |
703 |
+</pre> |
704 |
+ |
705 |
+<p> |
706 |
+Create and activate the swap now before creating other filesystems. |
707 |
+</p> |
708 |
+ |
709 |
+</body> |
710 |
+</subsection> |
711 |
<subsection id="filesystems-apply"> |
712 |
<title>Applying a Filesystem to a Partition</title> |
713 |
<body> |
714 |
@@ -453,8 +610,8 @@ |
715 |
</table> |
716 |
|
717 |
<p> |
718 |
-For instance, to have the root partition (<path>/dev/hda4</path> in our example) |
719 |
-in ext3 (as in our example), you would use: |
720 |
+For instance, to make an ext3 filesystem on the root partition |
721 |
+(<path>/dev/hda4</path> in our example), you would use: |
722 |
</p> |
723 |
|
724 |
<pre caption="Applying a filesystem on a partition"> |
725 |
@@ -467,7 +624,7 @@ |
726 |
</p> |
727 |
|
728 |
<note> |
729 |
-On the PegasosII your partition which holds the kernel must be ext2/ext3 or |
730 |
+On the PegasosII your partition which holds the kernel must be ext2, ext3 or |
731 |
affs1. NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or |
732 |
even HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel |
733 |
must be placed on an HFS partition, but this will be completed when you |
734 |
@@ -476,41 +633,17 @@ |
735 |
|
736 |
</body> |
737 |
</subsection> |
738 |
-<subsection> |
739 |
-<title>Activating the Swap Partition</title> |
740 |
-<body> |
741 |
- |
742 |
-<p> |
743 |
-<c>mkswap</c> is the command that is used to initialize swap partitions: |
744 |
-</p> |
745 |
- |
746 |
-<pre caption="Creating a Swap signature"> |
747 |
-# <i>mkswap /dev/hda3</i> |
748 |
-</pre> |
749 |
- |
750 |
-<p> |
751 |
-To activate the swap partition, use <c>swapon</c>: |
752 |
-</p> |
753 |
- |
754 |
-<pre caption="Activating the swap partition"> |
755 |
-# <i>swapon /dev/hda3</i> |
756 |
-</pre> |
757 |
- |
758 |
-<p> |
759 |
-Create and activate the swap now. |
760 |
-</p> |
761 |
- |
762 |
-</body> |
763 |
-</subsection> |
764 |
</section> |
765 |
<section> |
766 |
<title>Mounting</title> |
767 |
<body> |
768 |
|
769 |
<p> |
770 |
-Now that your partitions are initialized and are housing a filesystem, it is |
771 |
-time to mount those partitions. Use the <c>mount</c> command. As an example we |
772 |
-mount the root partition: |
773 |
+Now that your partitions are initialized and contain valid filesystems, it is |
774 |
+time to mount them since disks are not usable in Linux until they are mounted. |
775 |
+When you mount a filesystem, the contents are inserted into the directory |
776 |
+specified by the <c>mount</c> command. As an example we wil mount the root |
777 |
+partition in a directory on the InstallCD filesystem: |
778 |
</p> |
779 |
|
780 |
<pre caption="Mounting partitions"> |
781 |
@@ -519,17 +652,11 @@ |
782 |
|
783 |
<note> |
784 |
If you want your <path>/tmp</path> to reside on a separate partition, be sure to |
785 |
-change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This |
786 |
-also holds for <path>/var/tmp</path>. |
787 |
+change its permissions after mounting and unpacking with |
788 |
+<c>chmod 1777 /mnt/gentoo/tmp</c>. This is also true for <path>/var/tmp</path>. |
789 |
</note> |
790 |
|
791 |
<p> |
792 |
-We will have to mount the proc filesystem (a virtual interface with the |
793 |
-kernel) on <path>/proc</path>. But first we will need to place our files on the |
794 |
-partitions. |
795 |
-</p> |
796 |
- |
797 |
-<p> |
798 |
Continue with <uri link="?part=1&chap=5">Installing the Gentoo |
799 |
Installation Files</uri>. |
800 |
</p> |
801 |
|
802 |
|
803 |
|
804 |
1.29 xml/htdocs/doc/en/handbook/draft/hb-install-ppc-kernel.xml |
805 |
|
806 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-kernel.xml?rev=1.29&view=markup |
807 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-kernel.xml?rev=1.29&content-type=text/plain |
808 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-kernel.xml?r1=1.28&r2=1.29 |
809 |
|
810 |
Index: hb-install-ppc-kernel.xml |
811 |
=================================================================== |
812 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-kernel.xml,v |
813 |
retrieving revision 1.28 |
814 |
retrieving revision 1.29 |
815 |
diff -u -r1.28 -r1.29 |
816 |
--- hb-install-ppc-kernel.xml 14 Mar 2007 06:24:40 -0000 1.28 |
817 |
+++ hb-install-ppc-kernel.xml 16 Mar 2007 05:31:09 -0000 1.29 |
818 |
@@ -4,21 +4,21 @@ |
819 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
820 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
821 |
|
822 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-kernel.xml,v 1.28 2007/03/14 06:24:40 nightmorph Exp $ --> |
823 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-kernel.xml,v 1.29 2007/03/16 05:31:09 josejx Exp $ --> |
824 |
|
825 |
<sections> |
826 |
|
827 |
-<version>7.5</version> |
828 |
-<date>2007-02-12</date> |
829 |
+<version>7.6</version> |
830 |
+<date>2007-03-15</date> |
831 |
|
832 |
<section> |
833 |
<title>Timezone</title> |
834 |
<body> |
835 |
|
836 |
<p> |
837 |
-You first need to select your timezone so that your system knows where it is |
838 |
-located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy |
839 |
-it to <path>/etc/localtime</path>. Please avoid the |
840 |
+First, select your timezone so that your system knows where it is located. Look |
841 |
+for your timezone in <path>/usr/share/zoneinfo</path>, then copy it to |
842 |
+<path>/etc/localtime</path>. Please avoid the |
843 |
<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not |
844 |
indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8. |
845 |
</p> |
846 |
@@ -32,7 +32,7 @@ |
847 |
</body> |
848 |
</section> |
849 |
<section> |
850 |
-<title>Installing the Sources</title> |
851 |
+<title>Installing the Kernel Sources</title> |
852 |
<subsection> |
853 |
<title>Choosing a Kernel</title> |
854 |
<body> |
855 |
@@ -40,36 +40,36 @@ |
856 |
<p> |
857 |
The core around which all distributions are built is the Linux kernel. It is the |
858 |
layer between the user programs and your system hardware. Gentoo provides its |
859 |
-users several possible kernel sources. A full listing with description is |
860 |
-available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel |
861 |
-Guide</uri>. |
862 |
+users several possible kernels to choose from. A full listing with description |
863 |
+is available at the |
864 |
+<uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel Guide</uri>. |
865 |
</p> |
866 |
|
867 |
<p> |
868 |
-We suggest using <c>gentoo-sources</c> on PPC, which is a 2.6 kernel. |
869 |
+We suggest using <c>gentoo-sources</c> on PPC, which is a recent 2.6 kernel. |
870 |
</p> |
871 |
|
872 |
<pre caption="Installing a kernel source"> |
873 |
-# <i>emerge gentoo-sources</i> |
874 |
+# <i>emerge --usepkg gentoo-sources</i> |
875 |
</pre> |
876 |
|
877 |
<p> |
878 |
If you take a look in <path>/usr/src</path> you should see a symlink named |
879 |
-<path>linux</path> pointing to your current kernel source. In this case, the |
880 |
-installed kernel source points to <c>gentoo-sources-2.6.15</c>. Your version |
881 |
-may be different, so keep this in mind. |
882 |
+<path>linux</path> pointing to your newly emerged kernel source. In this case, |
883 |
+the installed kernel source points to <c>gentoo-sources-2.6.19-r7</c>. Your |
884 |
+installed version may be different, so keep this in mind. |
885 |
</p> |
886 |
|
887 |
<pre caption="Viewing the kernel source symlink"> |
888 |
# <i>ls -l /usr/src/linux</i> |
889 |
-lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -> linux-2.6.15 |
890 |
+lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -> linux-2.6.19-gentoo-r7 |
891 |
</pre> |
892 |
|
893 |
<p> |
894 |
-Now it is time to configure and compile your kernel source. You |
895 |
-can use <c>genkernel</c> for this, which will build a generic kernel as used |
896 |
-by the Installation CD. We explain the "manual" configuration first though, as |
897 |
-it is the best way to optimize your environment. |
898 |
+Now it is time to configure and compile your kernel source. You can use |
899 |
+<c>genkernel</c> for this, which will build a generic kernel as used by the |
900 |
+Installation CD. We explain the "manual" configuration first though, as it is |
901 |
+a more efficient configuration. |
902 |
</p> |
903 |
|
904 |
<p> |
905 |
@@ -91,29 +91,29 @@ |
906 |
<p> |
907 |
Manually configuring a kernel is often seen as the most difficult procedure a |
908 |
Linux user ever has to perform. Nothing is less true -- after configuring a |
909 |
-couple of kernels you don't even remember that it was difficult ;) |
910 |
+few kernels you won't even remember that it was difficult ;) |
911 |
</p> |
912 |
|
913 |
<p> |
914 |
However, one thing <e>is</e> true: you must know your system when you start |
915 |
configuring a kernel manually. Most information can be gathered by emerging |
916 |
-pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now |
917 |
-be able to use <c>lspci</c> within the chrooted environment. You may safely |
918 |
-ignore any <e>pcilib</e> warnings (like pcilib: cannot open |
919 |
-/sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run |
920 |
-<c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same. |
921 |
-You can also run <c>lsmod</c> to see what kernel modules the Installation CD |
922 |
-uses (it might provide you with a nice hint on what to enable). Another place |
923 |
-to look for clues as to what components to enable is to check the kernel |
924 |
-message logs from the successful boot that got you this far. Type <c>dmesg</c> |
925 |
-to see the kernel messages. |
926 |
+pciutils (<c>emerge --usepkg pciutils</c>) which contains the program |
927 |
+<c>lspci</c>. You will now be able to use <c>lspci</c> within the chrooted |
928 |
+environment. You may safely ignore any <e>pcilib</e> warnings (such as pcilib: |
929 |
+cannot open /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, |
930 |
+you can run <c>lspci</c> from a <e>non-chrooted</e> environment. The results |
931 |
+are the same. You can also run <c>lsmod</c> to see what kernel modules the |
932 |
+Installation CD uses (it might provide you with a nice hint on what to enable). |
933 |
+Another place to look for clues as to what components to enable is to check the |
934 |
+kernel message logs from the successful boot that got you this far. Type |
935 |
+<c>dmesg</c> to see these kernel messages. |
936 |
</p> |
937 |
|
938 |
<p> |
939 |
Now, go to your kernel source directory, it's time to configure your kernel. |
940 |
-It is recommended that you add the default settings to your configuration by |
941 |
-first running <c>make pmac32_defconfig</c>. After the default configuration has |
942 |
-been generated, run <c>make menuconfig</c> which will fire up an ncurses-based |
943 |
+Start by configuring a kernel that will boot on most 32 Bit PowerPC machines |
944 |
+by first running <c>make pmac32_defconfig</c>. After the default configuration |
945 |
+has been generated, run <c>make menuconfig</c> to start an ncurses-based |
946 |
configuration menu. |
947 |
</p> |
948 |
|
949 |
@@ -171,6 +171,17 @@ |
950 |
</pre> |
951 |
|
952 |
<p> |
953 |
+Users of NewWorld and OldWorld machines will want HFS support as well. OldWorld |
954 |
+users require it for copying compiled kernels to the MacOS partition. NewWorld |
955 |
+users require it for configuring the special Apple_Bootstrap partition: |
956 |
+</p> |
957 |
+ |
958 |
+<pre caption="Activating HFS support"> |
959 |
+File Systems ---> |
960 |
+ [*] HFS Support |
961 |
+</pre> |
962 |
+ |
963 |
+<p> |
964 |
If you are using PPPoE to connect to the Internet or you are using a dial-up |
965 |
modem, you will need the following options in the kernel: |
966 |
</p> |
967 |
@@ -184,28 +195,18 @@ |
968 |
</pre> |
969 |
|
970 |
<p> |
971 |
-The two compression options won't harm but are not definitely needed, neither |
972 |
-does the <c>PPP over Ethernet</c> option, that might only be used by |
973 |
-<c>rp-pppoe</c> when configured to do kernel mode PPPoE. |
974 |
+The two compression options won't harm but are not always needed. The |
975 |
+<c>PPP over Ethernet</c> option might only be used by <c>rp-pppoe</c> when |
976 |
+configured to perform kernel mode PPPoE. |
977 |
</p> |
978 |
|
979 |
<p> |
980 |
-If you require it, don't forget to include support in the kernel for your |
981 |
-ethernet card. |
982 |
+Don't forget to include support in the kernel for your ethernet card! Most |
983 |
+newer Apple computers use the SunGEM ethernet driver. Older iMacs commonly use |
984 |
+the BMAC driver. |
985 |
</p> |
986 |
|
987 |
<p> |
988 |
-Users of NewWorld and OldWorld machines will want HFS support as well. OldWorld |
989 |
-users require it for copying compiled kernels to the MacOS partition. NewWorld |
990 |
-users require it for configuring the special Apple_Bootstrap partition: |
991 |
-</p> |
992 |
- |
993 |
-<pre caption="Activating HFS support"> |
994 |
-File Systems ---> |
995 |
- [*] HFS Support |
996 |
-</pre> |
997 |
- |
998 |
-<p> |
999 |
At this time, kernel preemption is still unstable on PPC and may cause |
1000 |
compilation failures and random segfaults. It is <e>strongly</e> suggested |
1001 |
that you do not use this feature. |
1002 |
@@ -266,8 +267,8 @@ |
1003 |
<note> |
1004 |
If you select more than one framebuffer device, it may default to a less than |
1005 |
optimal driver. Either use only one framebuffer device or specify which |
1006 |
-to use by passing the driver to use to the kernel on boot such as |
1007 |
-<c>video=radeonfb</c>. |
1008 |
+to use by passing the driver to use to the kernel on boot by appending a video |
1009 |
+line such as: <c>video=radeonfb</c>. |
1010 |
</note> |
1011 |
|
1012 |
<p> |
1013 |
@@ -283,7 +284,7 @@ |
1014 |
|
1015 |
<p> |
1016 |
Now that your kernel is configured, it is time to compile and install it. Exit |
1017 |
-the configuration and run the commands which will compile the kernel: |
1018 |
+the configuration menu and run the following commands: |
1019 |
</p> |
1020 |
|
1021 |
<pre caption="Compiling the kernel"> |
1022 |
@@ -292,8 +293,9 @@ |
1023 |
|
1024 |
<p> |
1025 |
When the kernel has finished compiling, copy the kernel image to |
1026 |
-<path>/boot</path> (be sure that it is mounted properly on Pegasos computers). |
1027 |
-If you are using BootX to boot, we'll copy the kernel later. |
1028 |
+<path>/boot</path> as shown below. If you have a seperate boot partition, as |
1029 |
+on Pegasos computers, be sure that it is mounted properly. If you are using |
1030 |
+BootX to boot, we'll copy the kernel later. |
1031 |
</p> |
1032 |
|
1033 |
<p> |
1034 |
@@ -301,8 +303,8 @@ |
1035 |
bootloaders. The uncompressed kernel is called vmlinux and it is placed in |
1036 |
<path>/usr/src/linux</path> after the kernel has finished compiling. If you |
1037 |
are using a Pegasos machine, the Pegasos firmware requires a compressed |
1038 |
-kernel called zImage.chrp which can be found in |
1039 |
-<path>/usr/src/linux/arch/ppc/boot/images</path>. |
1040 |
+kernel called zImage which can be found in |
1041 |
+<path>/usr/src/linux/arch/powerpc/boot/images</path>. |
1042 |
</p> |
1043 |
|
1044 |
<pre caption="Installing the kernel"> |
1045 |
@@ -311,7 +313,7 @@ |
1046 |
<comment>(Apple/IBM)</comment> |
1047 |
# <i>cp vmlinux /boot/<kernel-version></i> |
1048 |
<comment>(Pegasos)</comment> |
1049 |
-# <i>cp arch/ppc/boot/images/zImage.chrp /boot/<kernel-version></i> |
1050 |
+# <i>cp arch/powerpc/boot/images/zImage /boot/<kernel-version></i> |
1051 |
</pre> |
1052 |
|
1053 |
<p> |
1054 |
@@ -331,7 +333,7 @@ |
1055 |
<p> |
1056 |
You should list the modules you want automatically loaded in |
1057 |
<path>/etc/modules.autoload.d/kernel-2.6</path>. |
1058 |
-You can add extra options to the modules too if you want. |
1059 |
+You can add extra options to the modules if required. |
1060 |
</p> |
1061 |
|
1062 |
<p> |
1063 |
@@ -345,9 +347,8 @@ |
1064 |
</pre> |
1065 |
|
1066 |
<p> |
1067 |
-For instance, to automatically load the <c>3c59x.o</c> module, edit the |
1068 |
-<path>kernel-2.6</path> file and enter the module |
1069 |
-name in it. |
1070 |
+For instance, to automatically load the <c>3c59x</c> module, edit the |
1071 |
+<path>kernel-2.6</path> file and add the module to it, one module on a line. |
1072 |
</p> |
1073 |
|
1074 |
<pre caption="Editing /etc/modules.autoload.d/kernel-2.6"> |
1075 |
@@ -371,17 +372,12 @@ |
1076 |
<body> |
1077 |
|
1078 |
<p> |
1079 |
-If you are reading this section, you have chosen to use our <c>genkernel</c> |
1080 |
-script to configure your kernel for you. |
1081 |
-</p> |
1082 |
- |
1083 |
-<p> |
1084 |
Now that your kernel source tree is installed, it's now time to compile your |
1085 |
-kernel by using our <c>genkernel</c> script to automatically build a kernel for |
1086 |
+kernel by using the <c>genkernel</c> script to automatically build a kernel for |
1087 |
you. <c>genkernel</c> works by configuring a kernel nearly identically to the |
1088 |
way our Installation CD kernel is configured. This means that when you use |
1089 |
<c>genkernel</c> to build your kernel, your system will generally detect all |
1090 |
-your hardware at boot-time, just like our Installation CD does. Because |
1091 |
+your hardware at boot-time, just like the Installation CD does. Since |
1092 |
genkernel doesn't require any manual kernel configuration, it is an ideal |
1093 |
solution for those users who may not be comfortable compiling their own kernels. |
1094 |
</p> |
1095 |
@@ -391,7 +387,7 @@ |
1096 |
</p> |
1097 |
|
1098 |
<pre caption="Emerging genkernel"> |
1099 |
-# <i>emerge genkernel</i> |
1100 |
+# <i>emerge --usepkg genkernel</i> |
1101 |
</pre> |
1102 |
|
1103 |
<p> |
1104 |
@@ -425,11 +421,9 @@ |
1105 |
</pre> |
1106 |
|
1107 |
<p> |
1108 |
-Now, compile your kernel sources by running <c>genkernel --genzimage all</c>. |
1109 |
-For Pegasos, we will need to use a different config and create a zImage instead |
1110 |
-of the vmlinux kernel used on Apple machines. Be aware, as <c>genkernel</c> |
1111 |
-compiles a kernel that supports almost all hardware, this compilation can take |
1112 |
-quite a while to finish! |
1113 |
+Now, compile your kernel sources by running <c>genkernel all</c>. Be aware, |
1114 |
+since <c>genkernel</c> compiles a kernel that supports almost all hardware, |
1115 |
+this compilation can take quite a while to finish! |
1116 |
</p> |
1117 |
|
1118 |
<p> |
1119 |
@@ -445,15 +439,11 @@ |
1120 |
# <i>genkernel all</i> |
1121 |
</pre> |
1122 |
|
1123 |
-<pre caption="Running genkernel on the Pegasos"> |
1124 |
-# <i>genkernel --genzimage --kernel-config=/usr/share/genkernel/ppc/Pegasos all</i> |
1125 |
-</pre> |
1126 |
- |
1127 |
<p> |
1128 |
Once <c>genkernel</c> completes, a kernel, full set of modules and |
1129 |
<e>initial root disk</e> (initrd) will be created. We will use the kernel |
1130 |
and initrd when configuring a boot loader later in this document. Write |
1131 |
-down the names of the kernel and initrd as you will need it when writing |
1132 |
+down the names of the kernel and initrd as you will need them when writing |
1133 |
the bootloader configuration file. The initrd will be started immediately after |
1134 |
booting to perform hardware autodetection (just like on the Installation CD) |
1135 |
before your "real" system starts up. Be sure to also copy down the required |
1136 |
@@ -465,21 +455,10 @@ |
1137 |
</pre> |
1138 |
|
1139 |
<p> |
1140 |
-If you want your system to react to hotplugging events, you will need to install |
1141 |
-and setup <c>hotplug</c>: |
1142 |
-</p> |
1143 |
- |
1144 |
-<pre caption="Emerging and enabling hotplug"> |
1145 |
-# <i>emerge hotplug</i> |
1146 |
-# <i>rc-update add hotplug default</i> |
1147 |
-</pre> |
1148 |
- |
1149 |
-<p> |
1150 |
Now continue with <uri link="?part=1&chap=8">Configuring your System</uri>. |
1151 |
</p> |
1152 |
|
1153 |
</body> |
1154 |
</section> |
1155 |
- |
1156 |
</sections> |
1157 |
|
1158 |
|
1159 |
|
1160 |
|
1161 |
1.38 xml/htdocs/doc/en/handbook/draft/hb-install-ppc-medium.xml |
1162 |
|
1163 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-medium.xml?rev=1.38&view=markup |
1164 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-medium.xml?rev=1.38&content-type=text/plain |
1165 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-medium.xml?r1=1.37&r2=1.38 |
1166 |
|
1167 |
Index: hb-install-ppc-medium.xml |
1168 |
=================================================================== |
1169 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-medium.xml,v |
1170 |
retrieving revision 1.37 |
1171 |
retrieving revision 1.38 |
1172 |
diff -u -r1.37 -r1.38 |
1173 |
--- hb-install-ppc-medium.xml 14 Mar 2007 06:24:40 -0000 1.37 |
1174 |
+++ hb-install-ppc-medium.xml 16 Mar 2007 05:31:09 -0000 1.38 |
1175 |
@@ -4,7 +4,7 @@ |
1176 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
1177 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
1178 |
|
1179 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-medium.xml,v 1.37 2007/03/14 06:24:40 nightmorph Exp $ --> |
1180 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc-medium.xml,v 1.38 2007/03/16 05:31:09 josejx Exp $ --> |
1181 |
|
1182 |
<sections> |
1183 |
|
1184 |
@@ -45,9 +45,9 @@ |
1185 |
</ti> |
1186 |
</tr> |
1187 |
<tr> |
1188 |
- <th>Genesi's Pegasos</th> |
1189 |
+ <th>Genesi</th> |
1190 |
<ti> |
1191 |
- Pegasos I/II, Open Desktop Workstation |
1192 |
+ Pegasos I/II, Open Desktop Workstation, Efika |
1193 |
</ti> |
1194 |
</tr> |
1195 |
<tr> |
1196 |
|
1197 |
|
1198 |
|
1199 |
-- |
1200 |
gentoo-doc-cvs@g.o mailing list |