Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 95800 | Differences between
and this patch

Collapse All | Expand All

(-)gentoo-ppc-faq.xml.orig (-136 / +270 lines)
Lines 4-22 Link Here
4
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5
5
6
<guide link="/doc/en/gentoo-ppc-faq.xml">
6
<guide link="/doc/en/gentoo-ppc-faq.xml">
7
7
<title>Gentoo Linux/PowerPC Frequently Asked Questions</title>
8
<title>Gentoo Linux/PowerPC Frequently Asked Questions</title>
9
8
<author title="Editor">
10
<author title="Editor">
9
  <mail link="rajiv@gentoo.org">Rajiv Manglani</mail>
11
  <mail link="rajiv@gentoo.org">Rajiv Manglani</mail>
10
</author>
12
</author>
13
11
<author title="Editor">
14
<author title="Editor">
12
  <mail link="pylon@gentoo.org">Lars Weiler</mail>
15
  <mail link="pylon@gentoo.org">Lars Weiler</mail>
13
</author>
16
</author>
17
14
<author title="Editor">
18
<author title="Editor">
15
    <mail link="sejo@gentoo.org">Jochen Maes </mail>
19
  <mail link="sejo@gentoo.org">Jochen Maes </mail>
16
</author>
20
</author>
21
17
<author title="Editor">
22
<author title="Editor">
18
    <mail link="josejx@gentoo.org">Joseph Jezak</mail>
23
  <mail link="josejx@gentoo.org">Joseph Jezak</mail>
19
</author>
24
</author>
25
20
<abstract>
26
<abstract>
21
This FAQ is a collection of questions and answers collected from the
27
This FAQ is a collection of questions and answers collected from the
22
gentoo-ppc-dev mailing list and from IRC -- if you have any questions (or
28
gentoo-ppc-dev mailing list and from IRC -- if you have any questions (or
Lines 26-49 Link Here
26
32
27
<license/>
33
<license/>
28
34
29
<version>1.17</version>
35
<version>1.18</version>
30
<date>2005-04-11</date>
36
<date>2005-05-11</date>
31
32
37
33
<chapter>
38
<chapter>
39
34
<title>Installation</title>
40
<title>Installation</title>
35
<section>
41
<section>
42
36
<title>
43
<title>
37
  How do I verify with Mac OS X the downloaded ISO is not
44
How do I verify with Mac OS X the downloaded ISO is not corrupted?
38
  corrupted? 
39
</title>
45
</title>
40
<body>
46
<body>
41
47
42
<p>
48
<p>
43
First be sure you did not mount the ftp server with 
49
First be sure you did not mount the ftp server with <e>Finder</e> and then copy
44
<e>Finder</e> and then copy the file with drag'n'drop.  This will corrupt
50
the file with drag'n'drop.  This will corrupt the ISO.  Instead, use <c>curl</c>
45
the ISO.  Instead, use <c>curl</c> (with <c>curl -O
51
(with <c>curl -O http://path/to/iso</c>).
46
http://path/to/iso</c>).
47
</p>
52
</p>
48
53
49
<p>
54
<p>
Lines 66-71 Link Here
66
71
67
</body>
72
</body>
68
</section>
73
</section>
74
69
<section>
75
<section>
70
<title>Can I dual-boot Gentoo Linux and Mac OS X?</title>
76
<title>Can I dual-boot Gentoo Linux and Mac OS X?</title>
71
<body>
77
<body>
Lines 73-91 Link Here
73
<p>
79
<p>
74
Yes you can! In fact, <e>yabootconfig</e> will automatically detect
80
Yes you can! In fact, <e>yabootconfig</e> will automatically detect
75
and setup <path>/etc/yaboot.conf</path> with Linux, Mac OS X and even
81
and setup <path>/etc/yaboot.conf</path> with Linux, Mac OS X and even
76
classic Mac OS (see the <uri
82
classic Mac OS (see the 
77
link="/doc/en/handbook/handbook-ppc.xml?part=1&amp;chap=9#yaboot">Gentoo Handbook</uri> 
83
<uri link="/doc/en/handbook/handbook-ppc.xml?part=1&amp;chap=10">Gentoo Handbook
78
for details on yabootconfig). The trick is in how you partition your hard
84
</uri> for details on yabootconfig). The trick is in how you partition your hard
79
drive. Before installing Gentoo, startup with the Mac OS X Install CD.
85
drive. Before installing Gentoo, startup with the Mac OS X Install CD. Use the 
80
Use the <c>Disk Utility</c> to partition the drive in your machine into
86
<c>Disk Utility</c> to partition the drive in your machine into two or three 
81
two or three partitions.  Alternatively use <c>parted</c> from the
87
partitions.  Alternatively, use <c>parted</c> from the recent LiveCD, since that
82
recent LiveCD, that can handle HFS and HFS+ partitions.  Furthermore, it
88
can handle HFS and HFS+ partitions.  Parted is also able to shrink a partition 
83
is able to shrink a partition so you don't need to delete your whole
89
so you don't need to delete your existing install. The first partition should 
84
disk.  The first partition should be big enough to contain all your
90
be big enough to contain all your Linux partitions (root+swap+/home etc.). The 
85
Linux partitions (root+swap+/home etc.). The format of this partition
91
format of this partition does not matter.  The second partition should be for 
86
does not matter. The second partition should be for OS X.  The third (and
92
OS X.  The third (and optional) partition should be for classic Mac OS. It is 
87
optional) partition should be for classic Mac OS. It is needed only if
93
needed only if you want to put Mac OS 9 on a separate partition.
88
you want to put Mac OS 9 on a separate partition.
89
</p>
94
</p>
90
95
91
<note>
96
<note>
Lines 100-106 Link Here
100
When you get to the section on partitioning, use <c>mac-fdisk</c> to 
105
When you get to the section on partitioning, use <c>mac-fdisk</c> to 
101
<e>delete</e> the large partition you created for Gentoo. In its place, 
106
<e>delete</e> the large partition you created for Gentoo. In its place, 
102
create a bootstrap partition, root, swap, and any other partitions you 
107
create a bootstrap partition, root, swap, and any other partitions you 
103
want to use with Gentoo.
108
wish to use with Gentoo.
104
</p>
109
</p>
105
110
106
<p>
111
<p>
Lines 110-182 Link Here
110
bootstrap partition.
115
bootstrap partition.
111
</p>
116
</p>
112
117
118
<note>
119
If yabootconfig does not detect your MacOS partitions, you can manually add 
120
them to your yaboot.config.  See the example yaboot.conf in the 
121
<uri link="/doc/en/handbook/handbook-ppc.xml?part=1&amp;chap=10#doc_chap_pre6">
122
handbook</uri> for details.
123
</note>
124
113
</body>
125
</body>
114
</section>
126
</section>
115
127
116
<section>
128
<section>
117
<title>
129
<title>
118
  I have an early NewWorld Mac such as the Blue and White G3.  It should be
130
I have an early NewWorld Mac such as the Blue and White G3.  It should be
119
  compatible with the LiveCD, but on boot it returns an "Unknown or corrupt
131
compatible with the LiveCD, but on boot it returns an "Unknown or corrupt
120
  filesystem" error.
132
filesystem" error.
121
</title>
133
</title>
122
<body>
134
<body>
135
123
<p>
136
<p>
124
  As a workaround, boot into Open Firmware by holding down the Apple + Option +
137
As a workaround, boot into Open Firmware by holding down the Apple + Option +
125
  O + F keys on startup.  When the prompt appears, type:
138
O + F keys on startup.  When the prompt appears, type:
126
</p>
139
</p>
140
127
<pre caption="Early NewWorld Mac Open Firmware work around">
141
<pre caption="Early NewWorld Mac Open Firmware work around">
128
<i>boot cd:,\\yaboot</i>
142
<i>boot cd:,\\yaboot</i>
129
</pre>
143
</pre>
144
130
<p>
145
<p>
131
The CD should load as expected afterwards.  Thanks to John Plesmid for this
146
The CD should load as expected afterwards.  Thanks to John Plesmid for this
132
workaround.
147
workaround.
133
</p>
148
</p>
149
134
</body>
150
</body>
135
</section>
151
</section>
136
152
137
<section>
153
<section>
138
<title>
154
<title>
139
  I have an OldWorld Macintosh and need to use BootX. However, I am
155
I have an OldWorld Macintosh and need to use BootX. However, I am having trouble
140
  having trouble opening the BootX installer archive. What can I do?
156
opening the BootX installer archive. What can I do?
141
</title>
157
</title>
142
<body>
158
<body>
143
159
144
<p>
160
<p>
145
You will need a new version of <e>StuffIt Expander</e> to open the archive. You can <uri link="http://www.stuffit.com/expander/download.html">download it</uri>
161
You will need a new version of <e>StuffIt Expander</e> to open the archive. 
162
You can 
163
<uri link="http://www.stuffit.com/expander/download.html">download it</uri>
146
for free.
164
for free.
147
</p>
165
</p>
148
166
149
</body>
167
</body>
150
</section>
168
</section>
169
151
<section>
170
<section>
152
<title>
171
<title>
153
  Is it possible to boot Gentoo Linux on an OldWorld machine without Mac OS? I 
172
Is it possible to boot Gentoo Linux on an OldWorld machine without Mac OS? I 
154
  would like to have a Mac OS-free machine.
173
would like to have a Mac OS-free machine.
155
</title>
174
</title>
156
<body>
175
<body>
157
176
158
<p>
177
<p>
159
If you have a lot of time to experiment, you could try <uri
178
If you have a lot of time to experiment, you could try 
160
link="http://penguinppc.org/projects/quik/">Quik</uri>. <e>Quik</e> is a
179
<uri link="http://penguinppc.org/projects/quik/">Quik</uri>. <e>Quik</e> is a
161
bootloader for OldWorld PPC machines. If your machine uses <e>BootX</e>,
180
bootloader for OldWorld PPC machines. If your machine uses <e>BootX</e>, you can
162
you can use <e>Quik</e>; if it uses <e>yaboot</e>, you can't.
181
use <e>Quik</e>; if it uses <e>yaboot</e>, you can't.  <e>Quik</e> can be
163
<e>Quik</e> can be incredibly difficult to install, and is currently
182
incredibly difficult to install, but the end result is somewhere between "neato"
164
<e>not</e> working with gcc 3.x (read: Gentoo 1.4 or later), but the
183
and "breathtaking" because Mac OS does not have to load. Think yaboot on speed.
165
end result is somewhere between "neato" and "breathtaking" because Mac OS
166
does not have to load. Think yaboot on speed.
167
</p>
184
</p>
168
185
169
<p>
186
<p>
170
Be sure to read the <uri
187
Be sure to read the <uri
171
link="http://penguinppc.org/projects/quik/quirks.shtml">Quik quirks
188
link="http://penguinppc.org/projects/quik/quirks.shtml">Quik quirks
172
page</uri>. Also see "<uri
189
page</uri> for help getting your Old World PPC booting with Quik. The
173
link="http://lppcfom.sourceforge.net/fom-serve/cache/574.html">Is Quik
190
"<uri link="http://www.netbsd.org/Ports/macppc/models.html">NetBSD/MacPPC Model
174
Bootloader for Mac OS Dead?</uri>" and "<uri
191
Support</uri>" documents various OpenFirmware versions for various Apple and 
175
link="http://www.imaclinux.net/php/imaclinux_g_h.php3?single=17+index=0">Guide:
192
clone PowerPC machines and is also a helpful reference.
176
Quik - Direct Booting for Older PowerMacs</uri>". "<uri
177
link="http://www.netbsd.org/Ports/macppc/models.html">NetBSD/macppc
178
Model Support</uri>" documents OpenFirmware versions for various Apple
179
and clone PowerPC machines.
180
</p>
193
</p>
181
194
182
<p>
195
<p>
Lines 185-194 Link Here
185
198
186
</body>
199
</body>
187
</section>
200
</section>
201
188
<section>
202
<section>
189
<title>
203
<title>
190
  I have a Beige G3 machine. Can I install Gentoo Linux/PPC on a
204
I have a Beige G3 machine. Can I install Gentoo Linux/PPC on a second IDE hard 
191
  second IDE hard drive?
205
drive?
192
</title>
206
</title>
193
<body>
207
<body>
194
208
Lines 204-209 Link Here
204
218
205
</body>
219
</body>
206
</section>
220
</section>
221
207
<section>
222
<section>
208
<title>
223
<title>
209
  When I try and install Gentoo on my PowerBook or iBook the internal
224
  When I try and install Gentoo on my PowerBook or iBook the internal
Lines 220-248 Link Here
220
235
221
</body>
236
</body>
222
</section>
237
</section>
238
239
<section>
240
<title>
241
I have a revision A or B iMac.  I've replaced the hard drive with a larger one
242
and now I can't boot into anything!
243
</title>
244
<body>
245
246
<p>
247
There is an 8GB limit for the root partition on these machines.  Ensure that
248
your root partition is less than 8GB and it should work as expected.  This also
249
applies to OS X and later versions of OS 9.
250
</p>
251
252
</body>
253
</section>
254
223
<section>
255
<section>
224
<title>
256
<title>
225
  My /etc/fstab file has /dev/BOOT in it.
257
My /etc/fstab file has /dev/BOOT in it. Do I need to setup this line for my 
226
  Do I need to setup this line for my bootstrap partition?
258
bootstrap partition?
227
</title>
259
</title>
228
<body>
260
<body>
229
261
230
<p>
262
<p>
231
No. If you are not running a separate boot partition
263
No. If you are not running a separate boot partition (<path>/boot</path>) then 
232
(<path>/boot</path>) then you do not need this line and can safely just
264
you do not need this line and can safely just delete it from 
233
delete it from <path>/etc/fstab</path>.  The bootstrap partition is
265
<path>/etc/fstab</path>.  The bootstrap partition is <e>not</e> 
234
<e>not</e> <path>/boot</path> and is not related in anyway. In general,
266
<path>/boot</path> and is not related in anyway. In general, PowerPC machines 
235
PowerPC machines do not need a separate <path>/boot</path> partition,
267
do not need a separate <path>/boot</path> partition, and the bootstrap partition
236
and the bootstrap partition should not be mounted.
268
should not be mounted.
237
</p>
269
</p>
238
270
239
</body>
271
</body>
240
</section>
272
</section>
273
241
<section>
274
<section>
242
<title>
275
<title>
243
  Installation is now complete. However after rebooting, I am getting
276
When I rebooted, yaboot didn't work! Now, I'm stuck. How can I fix this?
244
  different characters than the keys I press on my machine's keyboard. What
277
</title>
245
  should I do?
278
<body>
279
280
<p>
281
It's probably just a misconfigured yaboot.conf.  The easiest way to fix 
282
this is to boot the LiveCD again, mount your gentoo partition and check 
283
yaboot.conf for errors.  You'll also need to run 
284
<c>ybin -v -C /mnt/gentoo/etc/yaboot.conf</c> to update the boot loader once
285
you have finished.  This can all be done without chrooting back into your
286
install.
287
</p>
288
  
289
<note>
290
If you <e>really</e> just need to get back to OSX, try holding down the
291
Option key on startup.  This should give you a graphical selection of
292
bootable disks.  Chose OSX and remember to fix your boot problems later.
293
</note>
294
295
</body>
296
</section>
297
298
<section>
299
<title>
300
Installation is now complete. However after rebooting, I am getting
301
different characters than the keys I press on my machine's keyboard. What
302
should I do?
246
</title> 
303
</title> 
247
<body>
304
<body>
248
305
Lines 286-309 Link Here
286
343
287
</body>
344
</body>
288
</section>
345
</section>
346
289
<section>
347
<section>
290
<title>
348
<title>
291
  I only have one mouse-button.  How can I make use of the second and
349
I only have one mouse-button.  How can I make use of the second and third one, 
292
  third one, since ctrl-button does not work?
350
since ctrl-button does not work?
293
</title>
351
</title>
294
<body>
352
<body>
295
353
296
<p>
354
<p>
297
There is no way to get ctrl-button, like on Mac OS X, working.  But
355
There is no way to use ctrl-button like on Mac OS X, but you can map just about
298
you can map quite any key or combination of keys to emulate the second
356
any key or combination of keys to emulate the second and third mouse-button.  
299
and third mouse-button.  The values can be obtained with the command
357
The values can be obtained with the command line utility <c>showkey</c> from the
300
line utility <c>showkey</c>.  The mouse button emulation is switched on
358
console.  Note that this program does not work as expected from X and should 
301
using the proc-device.  First run <c>echo "1" >
359
only be run from the console.  In addition to having the kernel configuration 
302
/proc/sys/dev/mac_hid/mouse_button_emulation</c>.  Then copy the right
360
settings from the previous section, you will also need to set the mouse button
303
keycodes to <path>mouse_button2_keycode</path> and
361
values in <path>/etc/sysctl.conf</path>.  Here is an example using F11 and F12:
304
<path>mouse_button3_keycode</path>.  To keep the settings after reboot,
305
write them to <path>/etc/sysctl.conf</path>.  Here is an example using
306
F11 and F12:
307
</p>
362
</p>
308
363
309
<pre caption="Mouse button emulation with F11 and F12">
364
<pre caption="Mouse button emulation with F11 and F12">
Lines 316-331 Link Here
316
</pre>
371
</pre>
317
372
318
<p>
373
<p>
319
Other keys are 100 and 126 for the combinations fn+alt and fn+apple.
374
Other commonly used keycodes are 125 (The Apple key) and 96 (The Keypad Enter).
320
</p>
375
</p>
321
376
377
<note>
378
The easiest way to activate these settings it to reboot after changing them.
379
</note>
380
322
</body>
381
</body>
323
</section>
382
</section>
383
324
<section>
384
<section>
325
<title>
385
<title>
326
  Installation is now complete. However, after my machine boots into
386
Installation is now complete. However, after my machine boots into
327
  Gentoo and I try to emerge anything, I see errors saying it cannot 'stat'
387
Gentoo and I try to emerge anything, I see errors saying it cannot 'stat'
328
  a file. What is wrong?
388
a file. What is wrong?
329
</title>
389
</title>
330
<body>
390
<body>
331
391
Lines 343-354 Link Here
343
</chapter>
403
</chapter>
344
404
345
<chapter>
405
<chapter>
406
346
<title>Laptop Support</title>
407
<title>Laptop Support</title>
408
347
<section>
409
<section>
348
<title>
410
<title>
349
  How do I enable the full processor speed on my PowerBook while running Linux?
411
How do I enable the full processor speed on my PowerBook while running Linux?
350
</title>
412
</title>
351
<body>
413
<body>
414
352
<note>
415
<note>
353
Most (if not all) processors should now work at the correct speed with modern 
416
Most (if not all) processors should now work at the correct speed with modern 
354
kernels.  If you still have this problem, you should upgrade to the latest 
417
kernels.  If you still have this problem, you should upgrade to the latest 
Lines 399-413 Link Here
399
462
400
</body>
463
</body>
401
</section>
464
</section>
465
402
<section>
466
<section>
403
<title>
467
<title>
404
  I'm running Gentoo on a PowerPC laptop. What packages should I
468
I'm running Gentoo on a PowerPC laptop. What packages should I
405
  install to enable laptop-specific functionality?
469
install to enable laptop-specific functionality?
406
</title>
470
</title>
407
<body>
471
<body>
408
472
409
<p>
473
<p>
410
There are three main packages you will need to install.
474
There are four main packages you will need to install.
411
</p>
475
</p>
412
476
413
<ul>
477
<ul>
Lines 429-435 Link Here
429
    and various other preferences.
493
    and various other preferences.
430
  </li>
494
  </li>
431
  <li>
495
  <li>
432
    <e>cpudyn</e> allows cpu speed scaling for longer battery life.
496
    <e>cpudyn</e> allows cpu speed scaling for longer battery life. Other
497
    packages also provide the same functionality, such as <e>powernowd</e>,
498
    <e>cpufreqd</e> and <e>speedfreq</e>.
433
  </li>
499
  </li>
434
</ul>
500
</ul>
435
501
Lines 446-455 Link Here
446
</pre>
512
</pre>
447
513
448
<note>
514
<note>
449
You should edit your <path>/etc/pbbuttonsd.conf</path> to your
515
You should edit <path>/etc/pbbuttonsd.conf</path> to better suit your needs.
450
preference.  Especially the behaviour of the Fx-keys, as pbbuttonsd
516
The behaviour of the Fx-keys can be controlled here as well as many sleep
451
gives you the availabilty, to use the Fx-keys in the first mode, and the
517
options.  To switch the Fx-keys to the OSX behaviour, set KBDMode to fkeyslast.
452
brightness- and sound-keys with the help of Fn.
518
You can turn off touchpad tapping by setting TPMode to notap.  Many other 
519
options are available, see man pbbuttonsd.conf for details.
453
</note>
520
</note>
454
521
455
<p>
522
<p>
Lines 463-477 Link Here
463
530
464
</body>
531
</body>
465
</section>
532
</section>
533
466
<section>
534
<section>
467
<title>How can I configure my machine's Airport or other Wi-Fi card?</title>
535
<title>How can I configure my machine's Airport or other Wi-Fi card?</title>
468
<body>
536
<body>
469
537
470
<p>
538
<p>
471
First, make sure you have support for the airport card compiled into
539
Make sure you have support for the airport card compiled into the kernel, or 
472
the kernel, or compiled as a module and loaded. Changing the wireless settings
540
compiled as a module and loaded. Changing the wireless settings is accomplished
473
is accomplished using iwconfig.  This is part of the 
541
using iwconfig.  This is part of the <c>wireless-tools</c> package.
474
<c>wireless-tools</c> package.
475
</p>
542
</p>
476
543
477
<p>
544
<p>
Lines 492-501 Link Here
492
559
493
</body>
560
</body>
494
</section>
561
</section>
562
495
<section>
563
<section>
496
<title>Will the internal modem in an iBook2 or PowerBook work?</title>
564
<title>Will the internal modem in an iBook2 or PowerBook work?</title>
497
<body>
565
<body>
498
566
567
<note>
568
Unless you have purchased a key from Linuxant, this driver will only work at
569
14.4 and will not support FAX.
570
</note>
571
499
<p>
572
<p>
500
Emerge <c>net-dialin/hcfusbmodem</c> which will provide
573
Emerge <c>net-dialin/hcfusbmodem</c> which will provide
501
<path>/dev/ttySHCF0</path>.  Then set up ppp like usual.  Further
574
<path>/dev/ttySHCF0</path>.  Then set up ppp like usual.  Further
Lines 505-520 Link Here
505
578
506
</body>
579
</body>
507
</section>
580
</section>
581
508
<section>
582
<section>
509
<title>Does sleep work on my iBook/PowerBook?</title>
583
<title>Does sleep work on my iBook/PowerBook?</title>
510
<body>
584
<body>
585
511
<p>
586
<p>
512
Sleep (suspend to ram) works very well on all G3 iBooks and TiBooks.  Recently,
587
Sleep (suspend to ram) works very well on all G3 iBooks and TiBooks.  Recently,
513
a kernel patch has been released that adds sleep support for G4 iBooks and 
588
a kernel patch has been released that adds sleep support for G4 iBooks and 
514
Radeon based AlBooks.  If you have one of these laptops, please see this forum
589
Radeon based AlBooks.  If you have one of these laptops, use 
515
thread for more details: <uri>http://forums.gentoo.org/viewtopic.php?t=254232</uri>.  Additionally, this patch is included with gentoo-sources-2.6.11 and will
590
vanilla-sources-2.6.12 or gentoo-sources 2.6.11 for built in support.
516
be included with vanilla-sources-2.6.12.
517
</p>
591
</p>
592
518
<note>
593
<note>
519
Note that the 12" PowerBook is not yet supported due to its nVidia chipset.
594
Note that the 12" PowerBook is not yet supported due to its nVidia chipset.
520
</note>
595
</note>
Lines 524-591 Link Here
524
</chapter>
599
</chapter>
525
600
526
<chapter>
601
<chapter>
602
527
<title>Applications</title>
603
<title>Applications</title>
604
528
<section>
605
<section>
529
<title>I can't emerge a package, and get an error about it being masked.  What should I do?</title>
606
<title>
607
I can't emerge a package, and get an error about it being masked.  What should I
608
do?
609
</title>
530
<body>
610
<body>
611
531
<p>
612
<p>
532
There are two common reasons why a package will not emerge: either it hasn't
613
There are two common reasons why a package will not emerge: either it hasn't
533
been tested on PPC or it has been tested, but hasn't yet been marked stable.
614
been tested on PPC or it has been tested, but hasn't yet been marked stable.
534
</p>
615
</p>
616
535
<p>
617
<p>
536
If your package hasn't yet been tested on PPC, youll need to first mark the
618
If your package hasn't yet been tested on PPC, youll need to first mark the
537
ebuild with the ppc keyword.  This is done using the ekeyword tool which is 
619
ebuild with the ppc keyword.  This is done using the ekeyword tool which is 
538
part of the gentoolkit-dev package.  To mark the ebuild ppc:
620
part of the gentoolkit-dev package.  To mark the ebuild ppc:
539
</p>
621
</p>
622
540
<pre caption="Adding the ppc keyword to app-foo/bar">
623
<pre caption="Adding the ppc keyword to app-foo/bar">
541
	ekeyword ppc /usr/portage/app-foo/bar/bar-1.0.ebuild
624
$ ekeyword ppc /usr/portage/app-foo/bar/bar-1.0.ebuild
542
</pre>
625
</pre>
626
543
<p>
627
<p>
544
Once the ebuild has been keyworded, you can now emerge it as usual.  Test the
628
Once the ebuild has been keyworded, you can now emerge it as usual.  Test the
545
application and if it works, <b>please</b> report it as a bug so one of the 
629
application and if it works, <b>please</b> report it as a bug so one of the 
546
developers can add the keyword.
630
developers can add the keyword.
547
</p>
631
</p>
632
548
<note>
633
<note>
549
This change will only last until the next sync.  If you need a more permanant 
634
This change will only last until the next sync.  If you need a more permanant 
550
fix, you can maintain a portage overlay.  See the portage documentation for 
635
fix, you can maintain a portage overlay.  See the portage documentation for 
551
more information.
636
more information.
552
</note>
637
</note>
638
553
<p>
639
<p>
554
If your package already has the ~ppc keyword, you have two options.  Either
640
If your package already has the ~ppc keyword, you have two options.  Either
555
follow the above instructions and replace the ~ppc keyword with ppc, or you can
641
follow the above instructions and replace the ~ppc keyword with ppc, or you can
556
use /etc/portage to unmask the specific package.
642
use /etc/portage to unmask the specific package.
557
</p>
643
</p>
644
558
<pre caption="Using /etc/portage to unmask app-foo/bar">
645
<pre caption="Using /etc/portage to unmask app-foo/bar">
559
	echo "=app-foo/bar-1.0 ~ppc" > /etc/portage/package.keywords
646
$ echo "=app-foo/bar-1.0 ~ppc" > /etc/portage/package.keywords
560
</pre>
647
</pre>
648
561
<note>
649
<note>
562
If the /etc/portage directory does not exist, make sure to create it first.
650
If the /etc/portage directory does not exist, make sure to create it first.
563
</note>
651
</note>
652
564
<p>
653
<p>
565
Now emerge the package as normal.  Once you're sure the app is stable, <b>please
654
Now emerge the package as normal.  Once you're sure the app is stable, <b>please
566
</b> report this as a bug so the developers can add the keyword.
655
</b> report this as a bug so the developers can add the keyword.
567
</p>
656
</p>
657
568
</body>
658
</body>
569
</section>
659
</section>
660
570
<section>
661
<section>
571
<title>Does Gentoo/PPC have support for Flash?</title>
662
<title>Does Gentoo/PPC have support for Flash?</title>
572
<body>
663
<body>
664
573
<p>
665
<p>
574
No, Macromedia has not supplied a linux/ppc binary and until Macromedia opens
666
Well, not really. Macromedia has not supplied a linux/ppc binary and open source
575
the flash format or provides a binary flash will not work on ppc.  A possible 
667
implementations are incomplete and buggy at this time.  Two projects working on
576
work around is to use qemu (an x86 emulator) to run the Macromedia Flash Player
668
this problem are <uri link="http://gplflash.sf.net">gplflash2</uri> and 
577
6 stand alone player.  This is described here: 
669
<uri link="http://swfdec.sf.net">swfdec</uri>, so check there for more 
670
information. A possible workaround for now is to use qemu (an x86 emulator)
671
to run the Macromedia Flash Player 6 stand alone player.  This process was
672
described on the forums: 
578
<uri>http://forums.gentoo.org/viewtopic.php?t=117774</uri>
673
<uri>http://forums.gentoo.org/viewtopic.php?t=117774</uri>
579
</p>
674
</p>
675
580
</body>
676
</body>
581
</section>
677
</section>
678
582
<section>
679
<section>
583
<title>Does Gentoo/PPC have a java plugin?</title>
680
<title>Does Gentoo/PPC have a Java plugin?</title>
584
<body>
681
<body>
682
585
<p>
683
<p>
586
No, not at this time.  The older java plugin is no longer compatible with the
684
No, not at this time.  The older java plugin is no longer compatible with the
587
new Mozilla plugin system and a new plugin has not been written.
685
new Mozilla plugin system and a new plugin has not yet been written.
588
</p>
686
</p>
687
589
</body>
688
</body>
590
</section>
689
</section>
591
690
Lines 601-608 Link Here
601
700
602
</body>
701
</body>
603
</section>
702
</section>
703
604
<section>
704
<section>
605
<title>How can I enable Direct Rendering (DRM) on rage128 or radeon cards?</title>
705
<title>
706
How can I enable Direct Rendering (DRM) on rage128 or radeon cards?
707
</title>
606
<body>
708
<body>
607
709
608
<p>
710
<p>
Lines 633-653 Link Here
633
ati or your specific driver (r128 or radeon).  Also check that the
735
ati or your specific driver (r128 or radeon).  Also check that the
634
DRI extension is loaded and not commented out.
736
DRI extension is loaded and not commented out.
635
</impo>
737
</impo>
738
636
<note>
739
<note>
637
There currently isn't any DRI support for the R300/R400 chipsets, a
740
There currently isn't any DRI support for the R300/R400 chipsets, a project has
638
project has been started at <uri>http://r300.sourceforge.net</uri>.
741
been started at <uri>http://r300.sourceforge.net</uri>. nVidia chipsets are also
639
nVidia chipsets are also mostly unsupported on PPC, there is basic
742
mostly unsupported on PPC, there is basic 2D acceleration provied by the nv 
640
support provided by the nv driver, but no 3D acceleration.
743
driver, but no 3D acceleration.
641
</note>
744
</note>
745
642
</body>
746
</body>
643
</section>
747
</section>
748
644
<section>
749
<section>
645
<title>
750
<title>
646
  I recently emerged Xorg, but when using it, my international
751
I recently emerged Xorg, but when using it, my international
647
  keyboard layout does not work correctly. The main keys work fine but I am
752
keyboard layout does not work correctly. The main keys work fine but I am
648
  unable to compose special characters like the "at" sign. The startx output
753
unable to compose special characters like the "at" sign. The startx output
649
  says something like "could not load keymap, falling back to default
754
says something like "could not load keymap, falling back to default
650
  keymap". What is wrong?
755
keymap". What is wrong?
651
</title>
756
</title>
652
<body>
757
<body>
653
758
Lines 659-668 Link Here
659
764
660
</body>
765
</body>
661
</section>
766
</section>
767
662
<section>
768
<section>
663
<title>
769
<title>
664
  When using OpenGL DRI or playing movies, the system sometimes freezes hard 
770
When using OpenGL DRI or playing movies, the system sometimes freezes hard 
665
  unexpectedly. What can I do?
771
unexpectedly. What can I do?
666
</title>
772
</title>
667
<body>
773
<body>
668
774
Lines 681-698 Link Here
681
extensions included with the newer X.org releases.  Please disable
787
extensions included with the newer X.org releases.  Please disable
682
these extensions if you're having problems. 
788
these extensions if you're having problems. 
683
</p>
789
</p>
790
684
</body>
791
</body>
685
</section>
792
</section>
793
686
<section>
794
<section>
687
<title>How do I get sound playback working?</title>
795
<title>How do I get sound playback working?</title>
688
<body>
796
<body>
689
797
690
<p>
798
<p>
691
There are two approaches to sound on modern kernels either OSS or ALSA.  OSS 
799
There are two approaches to sound on modern kernels: OSS or ALSA.  OSS is the 
692
is the older of the two options and has been depreciated, but still functions
800
older of the two options and has been depreciated, but still functions well for
693
well for many older Macs.  ALSA is the newer method and will continue to be 
801
many older Macs.  ALSA is the newer method and will continue to be supported in 
694
supported in the future.  We recommend that you use ALSA unless you have
802
the future.  We recommend that you use ALSA unless you have problems.
695
problems.
696
</p>
803
</p>
697
804
698
<note>
805
<note>
Lines 714-728 Link Here
714
</p>
821
</p>
715
822
716
<note>
823
<note>
717
At this time, there is no support for the sound card provided with the G5.
824
If you are using a G5 or a mac-mini, you should follow the Gentoo ALSA
718
The Mac Mini is only supported with a hack.  See <uri link="http://forums.gentoo.org/viewtopic-t-297244.html">this</uri> forum thread for more details on sound
825
configuration guide to install the latest version of the ALSA drivers instead of
719
on the Mac Mini.
826
the versions supplied by the kernel.
720
</note>
827
</note>
828
721
</body>
829
</body>
722
</section>
830
</section>
831
723
<section>
832
<section>
724
<title>Sound setup with ALSA</title>
833
<title>Sound setup with ALSA</title>
725
<body>
834
<body>
835
726
<p>
836
<p>
727
For ALSA, we'll set up both the regular ALSA drivers and the OSS emulation
837
For ALSA, we'll set up both the regular ALSA drivers and the OSS emulation
728
layer so that we can still use legacy OSS only programs.  In <c>make 
838
layer so that we can still use legacy OSS only programs.  In <c>make 
Lines 733-739 Link Here
733
Device Drivers - Sound ---&gt;
843
Device Drivers - Sound ---&gt;
734
&lt;*&gt; Sound card support
844
&lt;*&gt; Sound card support
735
    Advanced Linux Sound Architecture ---&gt;
845
    Advanced Linux Sound Architecture ---&gt;
736
    &lt;*&gt;   PowerMac DMA sound support
846
    &lt;&nbsp;&gt;   PowerMac DMA sound support
737
      &lt;*&gt; Advanced Linux Sound Architecture
847
      &lt;*&gt; Advanced Linux Sound Architecture
738
      &lt;*&gt; Sequencer support
848
      &lt;*&gt; Sequencer support
739
      &lt;*&gt; Sequencer dummy client
849
      &lt;*&gt; Sequencer dummy client
Lines 759-764 Link Here
759
<section>
869
<section>
760
<title>Sound setup with OSS</title>
870
<title>Sound setup with OSS</title>
761
<body>
871
<body>
872
873
<note>Again, only use this if you're not using ALSA.</note>
874
762
<p>
875
<p>
763
In <c>make menuconfig</c> you'll need to select:
876
In <c>make menuconfig</c> you'll need to select:
764
</p>
877
</p>
Lines 779-784 Link Here
779
892
780
</body>
893
</body>
781
</section>
894
</section>
895
782
<section>
896
<section>
783
<title>How do I play Audio CDs?</title>
897
<title>How do I play Audio CDs?</title>
784
<body>
898
<body>
Lines 840-864 Link Here
840
954
841
</body>
955
</body>
842
</section>
956
</section>
957
843
<section>
958
<section>
844
<title>Can I run Mac OS or Mac OS X under Gentoo Linux?</title>
959
<title>Can I run Mac OS 9 or Mac OS X under Gentoo Linux?</title>
845
<body>
960
<body>
846
961
847
<p>
962
<p>
848
Yes, as long as your are running Gentoo Linux/PPC on Apple hardware
963
Yes, as long as your are running Gentoo Linux on PPC hardware, you can use <uri
849
(or a Mac-clone). You will need to run <uri
964
link="http://www.maconlinux.org/">Mac-on-Linux</uri> which allows you to run an
850
link="http://www.maconlinux.org/">Mac-on-Linux</uri>. Just <c>emerge
965
instance of OS 9, OS X or Linux as a process on Linux. Simply <c>emerge mol</c>
851
mol</c>. MOL support Mac OS 7.5.2 to 9.2.2, as well as any version of OS X.
966
to install this package. MOL supports Mac OS 7.5.2 to 9.2.2, as well as any 
852
It can take over your full screen, or run in a window.
967
version OS X except Tiger (support is currently in progress). It can be run from
968
a console framebuffer or run in a window on X.
853
</p>
969
</p>
854
970
855
<note>
971
<note>
856
To run MOL fullscreen, you'll need to compile MOL with the fbcon use flag 
972
To run MOL fullscreen, you'll need to compile MOL with the fbcon use flag 
857
enabled.
973
enabled and run it in a console framebuffer.
858
</note>
974
</note>
859
975
860
<p>
976
<p>
861
For networking and sound you might install the drivers in the folder
977
For networking and sound you should install the drivers in the folder
862
<path>MOL-Install</path> on your Mac OS X-Desktop.  If errors with
978
<path>MOL-Install</path> on your Mac OS X-Desktop.  If errors with
863
networking occur, make sure you have the following kernel options
979
networking occur, make sure you have the following kernel options
864
enabled:
980
enabled:
Lines 891-920 Link Here
891
<section>
1007
<section>
892
<title>Can I access my ext2/ext3 partitions from OSX?</title>
1008
<title>Can I access my ext2/ext3 partitions from OSX?</title>
893
<body>
1009
<body>
1010
894
<p>
1011
<p>
895
OSX can support the reading and writing of ext2/ext3 partitions by using the 
1012
OSX can support the reading and writing of ext2/ext3 partitions by using the 
896
kernel extension provided by the <uri link="http://sourceforge.net/projects/ext2fsx">ext2fsx project.</uri>
1013
kernel extension provided by the <uri link="http://sourceforge.net/projects/ext2fsx">ext2fsx project.</uri>
897
</p>
1014
</p>
1015
898
<note>
1016
<note>
899
When using MOL, you cannot access a partition that is currently being used by
1017
When using MOL, you cannot access a partition that is currently being used by
900
Linux.
1018
Linux.
901
</note>
1019
</note>
1020
902
</body>
1021
</body>
903
</section>
1022
</section>
1023
904
<section>
1024
<section>
905
<title>Which Portage USE flags do not work on PowerPC machines?</title>
1025
<title>Which Portage USE flags do not work on PowerPC machines?</title>
906
<body>
1026
<body>
1027
907
<p>
1028
<p>
908
If you're using an old flat profile, (pre 2005.0) look at <path>/etc/make.profile/use.mask</path> for a list.
1029
If you're using an old flat profile, (depreciated, pre 2005.0) look at 
1030
<path>/etc/make.profile/use.mask</path> for a list.
909
</p>
1031
</p>
1032
910
<p>
1033
<p>
911
If you're using a cascaded profile, (2005.0 and onwards) look at <path>/usr/portage/profiles/default-linux/ppc/use.mask</path> for a list.
1034
If you're using a cascaded profile, (2005.0 and onwards) look at 
1035
<path>/usr/portage/profiles/default-linux/ppc/use.mask</path> for a list.
912
</p>
1036
</p>
1037
913
</body>
1038
</body>
914
</section>
1039
</section>
1040
915
<section>
1041
<section>
916
<title>How can I set up distcc with my x86 box?</title>
1042
<title>How can I set up distcc with my x86 box?</title>
917
<body>
1043
<body>
1044
918
<p>
1045
<p>
919
If you've got another faster computer, you can set up distcc to compile binaries
1046
If you've got another faster computer, you can set up distcc to compile binaries
920
for your slower ppc processor.  It's better to do as much building as possible
1047
for your slower ppc processor.  It's better to do as much building as possible
Lines 923-933 Link Here
923
<uri>http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO</uri>
1050
<uri>http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO</uri>
924
<uri>http://www.sable.mcgill.ca/~dbelan2/crossdev/crossdev-powerpc-i686.html</uri>
1051
<uri>http://www.sable.mcgill.ca/~dbelan2/crossdev/crossdev-powerpc-i686.html</uri>
925
</p>
1052
</p>
1053
926
</body>
1054
</body>
927
</section>
1055
</section>
1056
928
<section>
1057
<section>
929
<title>Why does gcc keep segfaulting during ebuilds?</title>
1058
<title>Why does gcc keep segfaulting during ebuilds?</title>
930
<body>
1059
<body>
1060
931
<p>
1061
<p>
932
If gcc segfaults during ebuilds, this probably isn't a bug with gcc and isn't
1062
If gcc segfaults during ebuilds, this probably isn't a bug with gcc and isn't
933
even a problem with your hardware.  Most of the time this problem is due to
1063
even a problem with your hardware.  Most of the time this problem is due to
Lines 940-949 Link Here
940
<pre caption="Check if preempt is enabled">
1070
<pre caption="Check if preempt is enabled">
941
$ <i>grep PREEMPT /usr/src/linux/.config</i>
1071
$ <i>grep PREEMPT /usr/src/linux/.config</i>
942
</pre>
1072
</pre>
1073
943
<p>
1074
<p>
944
If returns: "# CONFIG_PREEMPT is not set", then you should report the 
1075
If returns: "# CONFIG_PREEMPT is not set", then you should report the 
945
segfault as a bug.
1076
segfault as a bug.
946
</p>
1077
</p>
1078
947
<p>
1079
<p>
948
If it returns: "CONFIG_PREEMPT=y", then you'll need to disable it and rebuild
1080
If it returns: "CONFIG_PREEMPT=y", then you'll need to disable it and rebuild
949
your kernel.
1081
your kernel.
Lines 954-960 Link Here
954
</chapter>
1086
</chapter>
955
1087
956
<chapter>
1088
<chapter>
1089
957
<title>Resources</title>
1090
<title>Resources</title>
1091
958
<section>
1092
<section>
959
<title>Can I buy a CD of Gentoo Linux/PPC?</title>
1093
<title>Can I buy a CD of Gentoo Linux/PPC?</title>
960
<body>
1094
<body>

Return to bug 95800