/[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.30 Revision 1.31
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<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/migration-to-2.6.xml,v 1.30 2011/12/26 15:22:40 swift Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/migration-to-2.6.xml,v 1.31 2012/07/24 12:12:51 swift Exp $ -->
4 4
5<guide> 5<guide>
6<title>The complete Gentoo Linux 2.6 migration guide</title> 6<title>The complete Gentoo Linux 2.6 migration guide</title>
7 7
8<author title="Author"> 8<author title="Author">
9 <mail link="dsd@gentoo.org">Daniel Drake</mail> 9 <mail link="dsd@gentoo.org">Daniel Drake</mail>
10</author> 10</author>
11<author title="Contributor"> 11<author title="Contributor">
12 <mail link="sergey_zlodey@mail.ru">Sergey Galkin</mail> 12 <mail link="sergey_zlodey@mail.ru">Sergey Galkin</mail>
13</author> 13</author>
14<author title="Contributor"> 14<author title="Contributor">
15 <mail link="svyatogor@gentoo.org">Sergey Kuleshov</mail> 15 <mail link="svyatogor@gentoo.org">Sergey Kuleshov</mail>
16</author> 16</author>
17<author title="Editor"> 17<author title="Editor">
18 <mail link="neysx@gentoo.org">Xavier Neys</mail> 18 <mail link="neysx@gentoo.org">Xavier Neys</mail>
19</author> 19</author>
20<author title="Editor"> 20<author title="Editor">
21 <mail link="bennyc@gentoo.org">Benny Chuang</mail> 21 <mail link="bennyc@gentoo.org">Benny Chuang</mail>
22</author> 22</author>
23<author title="Editor"> 23<author title="Editor">
24 <mail link="nightmorph"/> 24 <mail link="nightmorph"/>
25</author> 25</author>
26 26
27<abstract> 27<abstract>
28This document will aid you in the process of migrating from Linux 2.4 to Linux 28This document will aid you in the process of migrating from Linux 2.4 to Linux
292.6, devfs to udev, OSS to ALSA, and LVM to LVM2. 292.6, devfs to udev, OSS to ALSA, and LVM to LVM2.
30</abstract> 30</abstract>
31 31
32<version>3</version> 32<version>4</version>
33<date>2011-12-26</date> 33<date>2012-07-24</date>
34 34
35<chapter> 35<chapter>
36<title>Introduction</title> 36<title>Introduction</title>
37<section> 37<section>
38<title>What is new in Linux 2.6?</title> 38<title>What is new in Linux 2.6?</title>
39<body> 39<body>
40 40
41<p> 41<p>
42That is not an easy question to answer. Linux 2.6 is the result of over 2 years 42That is not an easy question to answer. Linux 2.6 is the result of over 2 years
43of rapid development and stabilisation of new features, and is architecturally 43of rapid development and stabilisation of new features, and is architecturally
44quite different from its 2.4 counterpart. Some of the major changes are listed 44quite different from its 2.4 counterpart. Some of the major changes are listed
45below: 45below:
46</p> 46</p>
47 47
48<ul> 48<ul>
68the more technical details, you can refer to <uri 68the more technical details, you can refer to <uri
69link="http://www.codemonkey.org.uk/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 do bear in mind that this is somewhat 70post-halloween document</uri> - but do bear in mind that this is somewhat
71outdated now. 71outdated now.
72</p> 72</p>
73 73
74</body> 74</body>
75</section> 75</section>
76<section> 76<section>
77<title>Gentoo and 2.6</title> 77<title>Gentoo and 2.6</title>
78<body> 78<body>
79 79
80<p> 80<p>
81From the 2005.0 release of Gentoo Linux, the default kernel is the latest 2.6 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 82series kernel. The default profile of the system is picked up from
83<path>/etc/make.profile</path> which on 2005.0 or above would be a symlink to 83<path>/etc/portage/make.profile</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 84<path>/usr/portage/profiles/default-linux/x86/2005.0</path> under which various
85important settings are taken care of. 85important settings are taken care of.
86</p> 86</p>
87 87
88<p> 88<p>
89If you are using a 2.4 profile, please change it to one that supports a 2.6 89If you are using a 2.4 profile, please change it to one that supports a 2.6
90kernel by doing the following. 90kernel by doing the following.
91</p> 91</p>
92 92
93<pre caption="Changing your profile"> 93<pre caption="Changing your profile">
94# <i>rm -f /etc/make.profile</i> 94# <i>rm -f /etc/portage/make.profile</i>
95# <i>ln -snf /usr/portage/profiles/default-linux/x86/2005.1 /etc/make.profile</i> 95# <i>ln -snf /usr/portage/profiles/default-linux/x86/2005.1 /etc/portage/make.profile</i>
96</pre> 96</pre>
97 97
98</body> 98</body>
99</section> 99</section>
100<section> 100<section>
101<title>What is udev?</title> 101<title>What is udev?</title>
102<body> 102<body>
103 103
104<p> 104<p>
105In 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
106<path>/dev</path> directory, which contains a series of device interfaces to 106<path>/dev</path> directory, which contains a series of device interfaces to
107allow system applications to communicate with hardware (through the kernel). 107allow system applications to communicate with hardware (through the kernel).
108</p> 108</p>
109 109
110<p> 110<p>
1079By now you are running Linux 2.6 and hopefully have all issues ironed out. You 1079By now you are running Linux 2.6 and hopefully have all issues ironed out. You
1080should now update your Linux kernel header files and re-merge glibc so that 1080should now update your Linux kernel header files and re-merge glibc so that
1081userspace applications can take advantage of new Linux 2.6 features. 1081userspace applications can take advantage of new Linux 2.6 features.
1082</p> 1082</p>
1083 1083
1084<pre caption="Updating to linux-headers"> 1084<pre caption="Updating to linux-headers">
1085# <i>emerge -u linux-headers</i> 1085# <i>emerge -u linux-headers</i>
1086</pre> 1086</pre>
1087 1087
1088<p> 1088<p>
1089After updating your headers package, you should generally re-merge glibc. 1089After updating your headers package, you should generally re-merge glibc.
1090There is a new feature here that you may be interested in - NPTL. NPTL is a new 1090There is a new feature here that you may be interested in - NPTL. NPTL is a new
1091threading model present in Linux 2.6, which features much quicker thread create 1091threading model present in Linux 2.6, which features much quicker thread create
1092and destroy times. This won't make much of a difference to most systems, but 1092and destroy times. This won't make much of a difference to most systems, but
1093you may wish to enable it during this migration process! To enable NPTL, edit 1093you may wish to enable it during this migration process! To enable NPTL, edit
1094<path>/etc/make.conf</path>, adding <e>nptl</e> to your USE variable. 1094<path>/etc/portage/make.conf</path>, adding <e>nptl</e> to your USE variable.
1095</p> 1095</p>
1096 1096
1097<warn> 1097<warn>
1098If you choose to also enable the "nptlonly" flag, be aware that you will no 1098If you choose to also enable the "nptlonly" flag, be aware that you will no
1099longer be able to boot a 2.4 kernel. 1099longer be able to boot a 2.4 kernel.
1100</warn> 1100</warn>
1101 1101
1102<p> 1102<p>
1103Now re-merge glibc (you should do this even if you did not choose to enable 1103Now re-merge glibc (you should do this even if you did not choose to enable
1104NPTL). 1104NPTL).
1105</p> 1105</p>
1106 1106
1107<pre caption="Reinstalling glibc against the new kernel headers"> 1107<pre caption="Reinstalling glibc against the new kernel headers">
1108# <i>emerge -a glibc</i> 1108# <i>emerge -a glibc</i>
1109</pre> 1109</pre>

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20