Gentoo Archives: gentoo-doc-cvs

From: Joseph Jezak <josejx@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: hb-install-ppc-kernel.xml
Date: Thu, 28 Jul 2005 16:53:43
Message-Id: 200507281653.j6SGr4du008278@robin.gentoo.org
1 josejx 05/07/28 16:53:20
2
3 Modified: xml/htdocs/doc/en/handbook/draft/2005.1
4 hb-install-ppc-kernel.xml
5 Log:
6 Yoswink, please don't stab me. (PPC 2005.1 handbook updates.)
7
8 Revision Changes Path
9 1.2 +90 -47 xml/htdocs/doc/en/handbook/draft/2005.1/hb-install-ppc-kernel.xml
10
11 file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/draft/2005.1/hb-install-ppc-kernel.xml?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=gentoo
12 plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/draft/2005.1/hb-install-ppc-kernel.xml?rev=1.2&content-type=text/plain&cvsroot=gentoo
13 diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/handbook/draft/2005.1/hb-install-ppc-kernel.xml.diff?r1=1.1&r2=1.2&cvsroot=gentoo
14
15 Index: hb-install-ppc-kernel.xml
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2005.1/hb-install-ppc-kernel.xml,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- hb-install-ppc-kernel.xml 5 Jul 2005 08:02:04 -0000 1.1
22 +++ hb-install-ppc-kernel.xml 28 Jul 2005 16:53:20 -0000 1.2
23 @@ -4,7 +4,7 @@
24 <!-- The content of this document is licensed under the CC-BY-SA license -->
25 <!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
26
27 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2005.1/hb-install-ppc-kernel.xml,v 1.1 2005/07/05 08:02:04 swift Exp $ -->
28 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/2005.1/hb-install-ppc-kernel.xml,v 1.2 2005/07/28 16:53:20 josejx Exp $ -->
29
30 <sections>
31
32 @@ -44,11 +44,10 @@
33 </p>
34
35 <p>
36 -For PPC you can choose between <c>vanilla-sources</c> and
37 -<c>gentoo-sources</c> (both 2.6 kernels). The latter is available when you
38 -perform a networkless installation. Beside those there is a special
39 -kernel-2.6-patchset for the Pegasos: <c>pegasos-sources</c>. So let's
40 -continue with <c>emerge</c>'ing the kernel sources:
41 +We suggest using either <c>vanilla-sources</c> or <c>gentoo-sources</c>
42 +on PPC, which are both 2.6 kernels. The latter is available when you
43 +perform a networkless installation. So let's continue with <c>emerge</c>'ing
44 +the kernel sources:
45 </p>
46
47 <pre caption="Installing a kernel source">
48 @@ -56,32 +55,31 @@
49 </pre>
50
51 <note>
52 -The PowerPC sources are based on a 2.6.10-kernel with security patches from
53 -2.6.11 backported. As the time of the release the 2.6.11 kernel produced
54 -several problems on different PowerPC machines.
55 +The suggested sources at the time of the 2005.1 release are
56 +<c>gentoo-sources-2.6.12-r6</c> and <c>vanilla-sources-2.6.12.2</c>.
57 </note>
58
59 <p>
60 -When you take a look in <path>/usr/src</path> you should see a symlink called
61 -<path>linux</path> pointing to your kernel source. We will assume the kernel
62 -source installed is <c>gentoo-sources-2.6.10-r8</c>:
63 +If you take a look in <path>/usr/src</path> you should see a symlink named
64 +<path>linux</path> pointing to your current kernel source. Here, we will assume
65 +that the kernel source installed is <c>gentoo-sources-2.6.12-r6</c>:
66 </p>
67
68 <pre caption="Viewing the kernel source symlink">
69 # <i>ls -l /usr/src/linux</i>
70 -lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -&gt; linux-2.6.10-gentoo-r8
71 +lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -&gt; linux-2.6.12-gentoo-r6
72 </pre>
73
74 <p>
75 If the symlink doesn't point to the kernel source of your choice (note that
76 -<c>linux-2.6.10-gentoo-r8</c> is merely an example) you should change it to the
77 -right kernel:
78 +<c>linux-2.6.12-gentoo-r6</c> is merely an example) you should change it to the
79 +desired kernel sources:
80 </p>
81
82 <pre caption="Changing the kernel source symlink">
83 # <i>rm /usr/src/linux</i>
84 # <i>cd /usr/src</i>
85 -# <i>ln -s linux-2.6.10-gentoo-r8 linux</i>
86 +# <i>ln -s linux-2.6.12-gentoo-r6 linux</i>
87 </pre>
88
89 <p>
90 @@ -122,7 +120,10 @@
91 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
92 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
93 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
94 -uses (it might provide you with a nice hint on what to enable).
95 +uses (it might provide you with a nice hint on what to enable). Another place
96 +to look for clues as to what components to enable is to check the kernel
97 +message logs from the successful boot that got you this far. Type <c>dmesg</c>
98 +to see the kernel messages.
99 </p>
100
101 <p>
102 @@ -205,36 +206,52 @@
103 </p>
104
105 <p>
106 -Disable ADB raw keycodes:
107 +Users of NewWorld and OldWorld machines will want HFS support as well. OldWorld
108 +users require it for copying compiled kernels to the MacOS partition. NewWorld
109 +users require it for configuring the special Apple_Bootstrap partition:
110 </p>
111
112 -<pre caption="Disabling ADB raw keycodes">
113 -Macintosh Device Drivers ---&gt;
114 - [ ] Support for ADB raw keycodes
115 +<pre caption="Activating HFS support">
116 +File Systems ---&gt;
117 + [*] HFS Support
118 </pre>
119
120 <p>
121 -Also choose the correct RTC support (<e>disable</e> the <c>Enhanced RTC</c>
122 -option):
123 +At this time, kernel preemption is still unstable on PPC and may cause
124 +compilation failures and random segfaults. It is <e>strongly</e> suggested
125 +that you do not use this feature.
126 </p>
127
128 -<pre caption="Activating the correct RTC option">
129 -Character devices ---&gt;
130 - [ ] Enhanced RTC
131 +<pre caption="Ensure the Preemptible Kernel Option is Off">
132 +Platform options ---&gt;
133 + [ ] Preemptible Kernel
134 +</pre>
135 +
136 +<p>
137 +If you're booting from Firewire, you'll need to enable these options. If you donot want to compile in support, you'll need to include these modules and their
138 +dependencies in an initrd.
139 +</p>
140
141 -General setup ---&gt;
142 - [*] Support for /dev/rtc
143 +<pre caption="Enable support for firewire devices on boot">
144 +Device Drivers ---&gt;
145 + IEEE 1394 (FireWire) support ---&gt;
146 + &lt;*&gt; IEEE 1394 (FireWire) support
147 + &lt;*&gt; OHCI-1394 support
148 + &lt;*&gt; SBP-2 support (Harddisks etc.)
149 </pre>
150
151 <p>
152 -Users of OldWorld machines will want HFS support so they can copy compiled
153 -kernels to the MacOS partition. This applies also to NewWorld machines as it is
154 -needed for the special Apple_Bootstrap partition:
155 +If you're booting from USB, you'll need to enable these options. If you do not
156 +want to compile in support, you'll need to include these modules and their
157 +dependencies in an initrd.
158 </p>
159
160 -<pre caption="Activating HFS support">
161 -File Systems ---&gt;
162 - [*] HFS Support
163 +<pre caption="Enable support for USB devices on boot">
164 +Device Drivers ---&gt;
165 + USB support ---&gt;
166 + &lt;*&gt; Support for Host-side USB
167 + &lt;*&gt; OHCI HCD support
168 + &lt;*&gt; USB Mass Storage support
169 </pre>
170
171 <p>
172 @@ -254,7 +271,7 @@
173 </p>
174
175 <pre caption="Compiling the kernel">
176 -# <i>make all &amp;&amp; make modules_install</i>
177 +# <i>make &amp;&amp; make modules_install</i>
178 </pre>
179
180 <p>
181 @@ -263,9 +280,9 @@
182 </p>
183
184 <pre caption="Installing the kernel">
185 -<comment>replace 2.6.10 with your kernel-version</comment>
186 -(Apple/IBM) # <i>cp vmlinux /boot/kernel-2.6.10</i>
187 -(Pegasos) # <i>cp arch/ppc/boot/images/zImage.chrp /boot/kernel-2.6.10</i>
188 +<comment>replace 2.6.12 with your kernel-version</comment>
189 +(Apple/IBM) # <i>cp vmlinux /boot/kernel-2.6.12</i>
190 +(Pegasos) # <i>cp arch/ppc/boot/images/zImage.chrp /boot/kernel-2.6.12</i>
191 </pre>
192
193 <p>
194 @@ -274,7 +291,7 @@
195 </p>
196
197 <pre caption="Backing up your kernel configuration">
198 -# <i>cp .config /boot/config-2.6.10-gentoo-r8</i>
199 +# <i>cp .config /boot/config-2.6.12-gentoo-r6</i>
200 </pre>
201
202 <p>
203 @@ -367,21 +384,36 @@
204 </pre>
205
206 <p>
207 -Now, compile your kernel sources by running <c>genkernel --udev all</c>.
208 -Be aware though, as <c>genkernel</c> compiles a kernel that supports almost all
209 -hardware, this compilation will take quite a while to finish!
210 +If you are using firewire or USB to boot, you'll need to add modules to the
211 +initrd. Edit <path>/usr/share/genkernel/ppc/modules_load</path> and change
212 +<c>MODULES_FIREWIRE="ieee1394 ohci1394 sbp2"</c> for firewire support or
213 +<c>MODULES_USB="usbcore ohci-hcd ehci-hcd usb-storage"</c> for USB support.
214
215
216
217 --
218 gentoo-doc-cvs@g.o mailing list