/[gentoo]/xml/htdocs/doc/en/migration-to-2.6.xml
Gentoo

Diff of /xml/htdocs/doc/en/migration-to-2.6.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.18 Revision 1.19
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3 3
4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/migration-to-2.6.xml,v 1.18 2005/08/25 10:59:31 neysx Exp $ --> 4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/migration-to-2.6.xml,v 1.19 2005/09/08 10:08:02 fox2mike Exp $ -->
5 5
6<guide link="/doc/en/migration-to-2.6.xml"> 6<guide link="/doc/en/migration-to-2.6.xml">
7 7
8<title>The complete Gentoo Linux 2.6 migration guide</title> 8<title>The complete Gentoo Linux 2.6 migration guide</title>
9 9
26<abstract> 26<abstract>
27This document will aid you in the process of migrating from Linux 2.4 to Linux 27This document will aid you in the process of migrating from Linux 2.4 to Linux
282.6, devfs to udev, OSS to ALSA, and LVM to LVM2. 282.6, devfs to udev, OSS to ALSA, and LVM to LVM2.
29</abstract> 29</abstract>
30 30
31<version>0.2.7</version> 31<version>0.2.8</version>
32<date>2005-08-24</date> 32<date>2005-09-08</date>
33 33
34<chapter> 34<chapter>
35<title>Introduction</title> 35<title>Introduction</title>
36 36
37<section> 37<section>
47 47
48<ul> 48<ul>
49 <li> 49 <li>
50 Scheduler/Interactivity improvements: Linux feels very smooth on desktop 50 Scheduler/Interactivity improvements: Linux feels very smooth on desktop
51 systems and copes much better than 2.4 while under load 51 systems and copes much better than 2.4 while under load
52</li> 52 </li>
53 <li> 53 <li>
54 Scalability: Linux now scales much better at both ends - on small embedded 54 Scalability: Linux now scales much better at both ends - on small embedded
55 devices and also systems with many processors 55 devices and also systems with many processors
56 </li> 56 </li>
57 <li>Performance: Throughput from common applications is much improved</li> 57 <li>Performance: Throughput from common applications is much improved</li>
58 <li> 58 <li>
59 Hardware support: Linux now supports many more architectures and hardware 59 Hardware support: Linux now supports many more architectures and hardware
60 devices out-of-the-box than any other operating system. 60 devices out-of-the-box than any other operating system.
61</li> 61 </li>
62</ul> 62</ul>
63 63
64<p> 64<p>
65Joseph Pranevich has written a very detailed document, <uri 65Joseph Pranevich has written a very detailed document, <uri
66link="http://www.kniggit.net/wwol26.html">The Wonderful World Of Linux 66link="http://www.kniggit.net/wwol26.html">The Wonderful World Of Linux
672.6</uri> which you may be interested to glance over. If you are interested in 672.6</uri> which you may be interested to glance over. If you are interested in
68the more technical details, you can refer to <uri 68the more technical details, you can refer to <uri
69link="http://www.linux.org.uk/~davej/docs/post-halloween-2.6.txt">The 69link="http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt">The
70post-halloween document</uri> - but bear in mind that this is somewhat outdated 70post-halloween document</uri> - but do bear in mind that this is somewhat
71now. 71outdated now.
72</p>
73
74</body>
75</section>
76<section>
77<title>Gentoo and 2.6</title>
78<body>
79
72</p> 80<p>
81From the 2005.0 release of Gentoo Linux, the default kernel is the latest 2.6
82series kernel. The default profile of the system is picked up from
83<path>/etc/make.profiles</path> which on 2005.0 or above would be a symlink to
84<path>/usr/portage/profiles/default-linux/x86/2005.0</path> under which various
85important settings are taken care of.
86</p>
87
88<p>
89If you're using a 2.4 profile, please change it to one that supports a 2.6
90kernel by doing the following.
91</p>
92
93<pre caption="Changing your profile">
94# <i>rm -f /etc/make.profile</i>
95# <i>ln -snf /usr/portage/profiles/default-linux/x86/2005.1 /etc/make.profile</i>
96</pre>
73 97
74</body> 98</body>
75</section> 99</section>
76<section> 100<section>
77<title>What is udev?</title> 101<title>What is udev?</title>
78<body> 102<body>
79 103
80<p> 104<p>
81In the past, Gentoo has instructed users to use <e>devfs</e> for managing the 105In the past, Gentoo has instructed users to use <e>devfs</e> for managing the
82/dev directory, which contains a series of device interfaces to allow system 106<path>/dev</path> directory, which contains a series of device interfaces to
83applications to communicate with hardware (through the kernel). 107allow system applications to communicate with hardware (through the kernel).
84</p> 108</p>
85 109
86<p> 110<p>
87<e>devfs</e>, whilst a good concept, has some internal problems, and has been 111<e>devfs</e>, whilst a good concept, has some internal problems, and has been
88marked obsolete in Linux 2.6. 112completely removed from the main stable tree as of 2.6.13.
89</p> 113</p>
90 114
91<p> 115<p>
92<e>udev</e> is the new way of managing device nodes. It addresses issues with 116<e>udev</e> is the new way of managing device nodes. It addresses issues with
93previous device managers, and also attempts to solve some other problems. 117previous device managers, and also attempts to solve some other problems.
94</p> 118</p>
95 119
96<p> 120<p>
97The above may not mean much to you, but fear not, the hard working Gentoo 121The above may not mean much to you, but fear not, the hard working Gentoo
98developers have put effort into making the migration from devfs very easy. 122developers have put effort into making the migration from devfs very easy.
123Please read the <uri link="/doc/en/udev-guide.xml">Gentoo udev Guide</uri> for
124more information regarding the same.
99</p> 125</p>
100 126
101</body> 127</body>
102</section> 128</section>
103<section> 129<section>
184 <li><c>sys-apps/baselayout</c></li> 210 <li><c>sys-apps/baselayout</c></li>
185 <li><c>sys-apps/util-linux</c></li> 211 <li><c>sys-apps/util-linux</c></li>
186 <li> 212 <li>
187 <c>sys-kernel/genkernel</c> (only if you wish to use genkernel as opposed 213 <c>sys-kernel/genkernel</c> (only if you wish to use genkernel as opposed
188 to manual configuration) 214 to manual configuration)
189</li> 215 </li>
190</ul> 216</ul>
191 217
192<pre caption="Updating all world packages"> 218<pre caption="Updating all world packages">
193# <i>emerge --sync</i> 219# <i>emerge --sync</i>
194# <i>emerge -ua world</i> 220# <i>emerge -ua world</i>
272case. We will use this opportunity to check that the device files exist, and 298case. We will use this opportunity to check that the device files exist, and
273create them if they do not. 299create them if they do not.
274</p> 300</p>
275 301
276<p> 302<p>
277As your existing device manager will be mounted at /dev, we cannot access it 303As your existing device manager will be mounted at <path>/dev</path>, we cannot
278directly. So we will bind-mount your root partition to another location and 304access it directly. So we will bind-mount your root partition to another
279access the /dev directory from there. 305location and access the <path>/dev</path> directory from there.
280</p> 306</p>
281 307
282<pre caption="Bind-mounting your root partition and listing static devices"> 308<pre caption="Bind-mounting your root partition and listing static devices">
283# <i>mkdir -p /mnt/temp</i> 309# <i>mkdir -p /mnt/temp</i>
284# <i>mount -o bind / /mnt/temp</i> 310# <i>mount -o bind / /mnt/temp</i>
371<section> 397<section>
372<title>Updating the /usr/src/linux symbolic link</title> 398<title>Updating the /usr/src/linux symbolic link</title>
373<body> 399<body>
374 400
375<p> 401<p>
376Various components of the Gentoo utilities rely on /usr/src/linux being a 402Various components of the Gentoo utilities rely on <path>/usr/src/linux</path>
377symbolic link to the kernel sources that you are running (or wish to compile 403being a symbolic link to the kernel sources that you are running (or wish to
378against). 404compile against).
379</p>
380
381<p> 405</p>
406
407<p>
382We will now update our /usr/src/linux link to point at the kernel sources we 408We will now update our <path>/usr/src/linux</path> link to point at the kernel
383just installed. Continuing our example: 409sources we just installed. Continuing our example:
384</p> 410</p>
385 411
386<pre caption="Updating the /usr/src/linux softlink"> 412<pre caption="Updating the /usr/src/linux softlink">
387# <i>cd /usr/src</i> 413# <i>cd /usr/src</i>
388# <i>ln -sfn linux-2.6.10-gentoo-r4 linux</i> 414# <i>ln -sfn linux-2.6.10-gentoo-r4 linux</i>
601<title>New Serial-ATA (SATA) drivers name the devices differently</title> 627<title>New Serial-ATA (SATA) drivers name the devices differently</title>
602<body> 628<body>
603 629
604<p> 630<p>
605If you used the original Serial ATA drivers under Linux 2.4, you probably 631If you used the original Serial ATA drivers under Linux 2.4, you probably
606observed your SATA devices having names such as <c>/dev/hde</c>. 632observed your SATA devices having names such as <path>/dev/hde</path>.
607</p> 633</p>
608 634
609<p> 635<p>
610Linux 2.6 introduces some new SATA drivers (libata) which are based on the SCSI 636Linux 2.6 introduces some new SATA drivers (libata) which are based on the SCSI
611subsystem. As these drivers are based on SCSI, your SATA disks will now show up 637subsystem. As these drivers are based on SCSI, your SATA disks will now show up
612as SCSI devices. Your first SATA disk will be named <c>/dev/sda</c>. You will 638as SCSI devices. Your first SATA disk will be named <path>/dev/sda</path>. You will
613need to update your <c>/etc/fstab</c> file to reflect this, and you will need 639need to update your <path>/etc/fstab</path> file to reflect this, and you will need
614to bear this in mind when choosing the root/real_root kernel boot parameter 640to bear this in mind when choosing the root/real_root kernel boot parameter
615later on. 641later on.
616</p> 642</p>
617 643
618<note> 644<note>
632framebuffer console. 658framebuffer console.
633</p> 659</p>
634 660
635<p> 661<p>
636The developer of bootsplash appears to have lost interest in his project, given 662The developer of bootsplash appears to have lost interest in his project, given
637some design problems. However, Gentoo developer <e>Michal Januszewski</e> is 663some design problems. However, Gentoo developer <e>MichaÅ Januszewski</e> is
638developing a successor, <c>gensplash</c>, which in included in the 664developing a successor, <c>gensplash</c>, which in included in the
639gentoo-sources-2.6 kernel. You can follow Michal's <uri 665gentoo-sources-2.6 kernel. You can follow MichaÅ's <uri
640link="http://dev.gentoo.org/~spock/projects/gensplash/archive/gensplash-in-5-easy-steps.txt"> 666link="http://dev.gentoo.org/~spock/projects/gensplash/archive/gensplash-in-5-easy-steps.txt">
641Gensplash in 5 easy steps</uri> document in order to familiarize yourself with 667Gensplash in 5 easy steps</uri> document in order to familiarize yourself with
642how gensplash is operated. 668how gensplash is operated.
643</p> 669</p>
644 670

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20