Blame view
Documentation/Changes
12.8 KB
609d99a3b
|
1 |
.. _changes: |
840f6690b
|
2 3 |
Minimal requerements to compile the Kernel ++++++++++++++++++++++++++++++++++++++++++ |
1da177e4c
|
4 5 6 7 |
Intro ===== This document is designed to provide a list of the minimum levels of |
81f10d199
|
8 |
software necessary to run the 4.x kernels. |
1da177e4c
|
9 10 11 12 13 |
This document is originally based on my "Changes" file for 2.0.x kernels and therefore owes credit to the same people as that file (Jared Mauch, Axel Boldt, Alessandro Sigala, and countless other users all over the 'net). |
1da177e4c
|
14 |
Current Minimal Requirements |
840f6690b
|
15 |
**************************** |
1da177e4c
|
16 |
|
840f6690b
|
17 |
Upgrade to at **least** these software revisions before thinking you've |
1da177e4c
|
18 19 |
encountered a bug! If you're unsure what version you're currently running, the suggested command should tell you. |
5adaf851d
|
20 21 22 23 |
Again, keep in mind that this list assumes you are already functionally running a Linux kernel. Also, not all tools are necessary on all systems; obviously, if you don't have any ISDN hardware, for example, you probably needn't concern yourself with isdn4k-utils. |
1da177e4c
|
24 |
|
840f6690b
|
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
====================== =============== ======================================== Program Minimal version Command to check the version ====================== =============== ======================================== GNU C 3.2 gcc --version GNU make 3.80 make --version binutils 2.12 ld -v util-linux 2.10o fdformat --version module-init-tools 0.9.10 depmod -V e2fsprogs 1.41.4 e2fsck -V jfsutils 1.1.3 fsck.jfs -V reiserfsprogs 3.6.3 reiserfsck -V xfsprogs 2.6.0 xfs_db -V squashfs-tools 4.0 mksquashfs -version btrfs-progs 0.18 btrfsck pcmciautils 004 pccardctl -V quota-tools 3.09 quota -V PPP 2.4.0 pppd --version isdn4k-utils 3.1pre1 isdnctrl 2>&1|grep version nfs-utils 1.0.5 showmount --version procps 3.2.0 ps --version oprofile 0.9 oprofiled --version udev 081 udevd --version grub 0.93 grub --version || grub-install --version mcelog 0.6 mcelog --version iptables 1.4.2 iptables -V openssl & libcrypto 1.0.0 openssl version bc 1.06.95 bc --version |
81f10d199
|
52 |
Sphinx\ [#f1]_ 1.2 sphinx-build --version |
840f6690b
|
53 |
====================== =============== ======================================== |
7a9226370
|
54 |
|
81f10d199
|
55 |
.. [#f1] Sphinx is needed only to build the Kernel documentation |
1da177e4c
|
56 57 |
Kernel compilation |
840f6690b
|
58 |
****************** |
1da177e4c
|
59 60 61 62 63 |
GCC --- The gcc version requirements may vary depending on the type of CPU in your |
a13656470
|
64 |
computer. |
1da177e4c
|
65 66 67 |
Make ---- |
bf5777bcd
|
68 |
You will need GNU make 3.80 or later to build the kernel. |
1da177e4c
|
69 70 71 |
Binutils -------- |
840f6690b
|
72 73 |
Linux on IA-32 has recently switched from using ``as86`` to using ``gas`` for assembling the 16-bit boot code, removing the need for ``as86`` to compile |
1da177e4c
|
74 75 |
your kernel. This change does, however, mean that you need a recent release of binutils. |
082196242
|
76 77 |
Perl ---- |
840f6690b
|
78 79 |
You will need perl 5 and the following modules: ``Getopt::Long``, ``Getopt::Std``, ``File::Basename``, and ``File::Find`` to build the kernel. |
082196242
|
80 |
|
221069bed
|
81 82 83 84 |
BC -- You will need bc to build kernels 3.10 and higher |
082196242
|
85 |
|
3f1d44ae6
|
86 87 88 89 90 91 92 93 94 |
OpenSSL ------- Module signing and external certificate handling use the OpenSSL program and crypto library to do key creation and signature generation. You will need openssl to build kernels 3.7 and higher if module signing is enabled. You will also need openssl development packages to build kernels 4.3 and higher. |
1da177e4c
|
95 |
System utilities |
840f6690b
|
96 |
**************** |
1da177e4c
|
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
Architectural changes --------------------- DevFS has been obsoleted in favour of udev (http://www.kernel.org/pub/linux/utils/kernel/hotplug/) 32-bit UID support is now in place. Have fun! Linux documentation for functions is transitioning to inline documentation via specially-formatted comments near their definitions in the source. These comments can be combined with the SGML templates in the Documentation/DocBook directory to make DocBook files, which can then be converted by DocBook stylesheets to PostScript, HTML, PDF files, and several other formats. In order to convert from DocBook format to a format of your choice, you'll need to install Jade as well as the desired DocBook stylesheets. Util-linux ---------- |
840f6690b
|
117 |
New versions of util-linux provide ``fdisk`` support for larger disks, |
1da177e4c
|
118 119 120 121 122 123 |
support new options to mount, recognize more supported partition types, have a fdformat which works with 2.4 kernels, and similar goodies. You'll probably want to upgrade. Ksymoops -------- |
62a07e6e9
|
124 125 |
If the unthinkable happens and your kernel oopses, you may need the ksymoops tool to decode it, but in most cases you don't. |
840f6690b
|
126 |
It is generally preferred to build the kernel with ``CONFIG_KALLSYMS`` so |
5adaf851d
|
127 128 |
that it produces readable dumps that can be used as-is (this also produces better output than ksymoops). If for some reason your kernel |
840f6690b
|
129 |
is not build with ``CONFIG_KALLSYMS`` and you have no way to rebuild and |
5adaf851d
|
130 131 |
reproduce the Oops with that option, then you can still decode that Oops with ksymoops. |
1da177e4c
|
132 133 134 |
Module-Init-Tools ----------------- |
840f6690b
|
135 |
A new module loader is now in the kernel that requires ``module-init-tools`` |
1da177e4c
|
136 137 138 139 |
to use. It is backward compatible with the 2.4.x series kernels. Mkinitrd -------- |
840f6690b
|
140 |
These changes to the ``/lib/modules`` file tree layout also require that |
1da177e4c
|
141 142 143 144 |
mkinitrd be upgraded. E2fsprogs --------- |
840f6690b
|
145 |
The latest version of ``e2fsprogs`` fixes several bugs in fsck and |
1da177e4c
|
146 147 148 149 |
debugfs. Obviously, it's a good idea to upgrade. JFSutils -------- |
840f6690b
|
150 |
The ``jfsutils`` package contains the utilities for the file system. |
1da177e4c
|
151 |
The following utilities are available: |
840f6690b
|
152 153 |
- ``fsck.jfs`` - initiate replay of the transaction log, and check |
1da177e4c
|
154 |
and repair a JFS formatted partition. |
840f6690b
|
155 156 157 158 |
- ``mkfs.jfs`` - create a JFS formatted partition. - other file system utilities are also available in this package. |
1da177e4c
|
159 160 161 162 163 164 |
Reiserfsprogs ------------- The reiserfsprogs package should be used for reiserfs-3.6.x (Linux kernels 2.4.x). It is a combined package and contains working |
840f6690b
|
165 166 |
versions of ``mkreiserfs``, ``resize_reiserfs``, ``debugreiserfs`` and ``reiserfsck``. These utils work on both i386 and alpha platforms. |
1da177e4c
|
167 168 169 |
Xfsprogs -------- |
840f6690b
|
170 171 |
The latest version of ``xfsprogs`` contains ``mkfs.xfs``, ``xfs_db``, and the ``xfs_repair`` utilities, among others, for the XFS filesystem. It is |
1da177e4c
|
172 173 174 |
architecture independent and any version from 2.0.0 onward should work correctly with this version of the XFS kernel code (2.6.0 or later is recommended, due to some significant improvements). |
5085cb265
|
175 176 |
PCMCIAutils ----------- |
840f6690b
|
177 |
PCMCIAutils replaces ``pcmcia-cs``. It properly sets up |
5085cb265
|
178 179 180 |
PCMCIA sockets at system startup and loads the appropriate modules for 16-bit PCMCIA devices if the kernel is modularized and the hotplug subsystem is used. |
1da177e4c
|
181 |
|
1da177e4c
|
182 183 184 185 186 187 188 189 190 191 192 193 |
Quota-tools ----------- Support for 32 bit uid's and gid's is required if you want to use the newer version 2 quota format. Quota-tools version 3.07 and newer has this support. Use the recommended version or newer from the table above. Intel IA32 microcode -------------------- A driver has been added to allow updating of Intel IA32 microcode, |
890fbae28
|
194 |
accessible as a normal (misc) character device. If you are not using |
1b49ecf2f
|
195 |
udev you may need to:: |
840f6690b
|
196 197 198 199 |
mkdir /dev/cpu mknod /dev/cpu/microcode c 10 184 chmod 0644 /dev/cpu/microcode |
1da177e4c
|
200 201 202 |
as root before you can use this. You'll probably also want to get the user-space microcode_ctl utility to use with this. |
1da177e4c
|
203 204 |
udev ---- |
840f6690b
|
205 206 207 |
``udev`` is a userspace application for populating ``/dev`` dynamically with only entries for devices actually present. ``udev`` replaces the basic |
03a67a46a
|
208 |
functionality of devfs, while allowing persistent device naming for |
890fbae28
|
209 |
devices. |
1da177e4c
|
210 |
|
909021ea7
|
211 212 213 214 |
FUSE ---- Needs libfuse 2.4.0 or later. Absolute minimum is 2.3.0 but mount |
840f6690b
|
215 |
options ``direct_io`` and ``kernel_cache`` won't work. |
909021ea7
|
216 |
|
1da177e4c
|
217 |
Networking |
840f6690b
|
218 |
********** |
1da177e4c
|
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
General changes --------------- If you have advanced network configuration needs, you should probably consider using the network tools from ip-route2. Packet Filter / NAT ------------------- The packet filtering and NAT code uses the same tools like the previous 2.4.x kernel series (iptables). It still includes backwards-compatibility modules for 2.2.x-style ipchains and 2.0.x-style ipfwadm. PPP --- The PPP driver has been restructured to support multilink and to enable it to operate over diverse media layers. If you use PPP, upgrade pppd to at least 2.4.0. |
890fbae28
|
238 |
If you are not using udev, you must have the device file /dev/ppp |
1b49ecf2f
|
239 |
which can be made by:: |
840f6690b
|
240 241 |
mknod /dev/ppp c 108 0 |
1da177e4c
|
242 243 |
as root. |
1da177e4c
|
244 245 246 247 248 249 250 251 |
Isdn4k-utils ------------ Due to changes in the length of the phone number field, isdn4k-utils needs to be recompiled or (preferably) upgraded. NFS-utils --------- |
5adaf851d
|
252 253 |
In ancient (2.4 and earlier) kernels, the nfs server needed to know about any client that expected to be able to access files via NFS. This |
840f6690b
|
254 255 256 |
information would be given to the kernel by ``mountd`` when the client mounted the filesystem, or by ``exportfs`` at system startup. exportfs would take information about active clients from ``/var/lib/nfs/rmtab``. |
1da177e4c
|
257 258 259 |
This approach is quite fragile as it depends on rmtab being correct which is not always easy, particularly when trying to implement |
840f6690b
|
260 |
fail-over. Even when the system is working well, ``rmtab`` suffers from |
1da177e4c
|
261 |
getting lots of old entries that never get removed. |
5adaf851d
|
262 263 264 |
With modern kernels we have the option of having the kernel tell mountd when it gets a request from an unknown host, and mountd can give appropriate export information to the kernel. This removes the |
840f6690b
|
265 |
dependency on ``rmtab`` and means that the kernel only needs to know about |
5adaf851d
|
266 |
currently active clients. |
1da177e4c
|
267 |
|
1b49ecf2f
|
268 |
To enable this new functionality, you need to:: |
840f6690b
|
269 |
|
e41217129
|
270 |
mount -t nfsd nfsd /proc/fs/nfsd |
1da177e4c
|
271 272 273 274 |
before running exportfs or mountd. It is recommended that all NFS services be protected from the internet-at-large by a firewall where that is possible. |
172d899db
|
275 276 |
mcelog ------ |
c8c3f7d62
|
277 |
On x86 kernels the mcelog utility is needed to process and log machine check |
840f6690b
|
278 279 |
events when ``CONFIG_X86_MCE`` is enabled. Machine check events are errors reported by the CPU. Processing them is strongly encouraged. |
172d899db
|
280 |
|
81f10d199
|
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 |
Kernel documentation ******************** Sphinx ------ The ReST markups currently used by the Documentation/ files are meant to be built with ``Sphinx`` version 1.2 or upper. If you're desiring to build PDF outputs, it is recommended to use version 1.4.6. .. note:: Please notice that, for PDF and LaTeX output, you'll also need ``XeLaTeX`` version 3.14159265. Depending on the distribution, you may also need to install a series of ``texlive`` packages that provide the minimal set of functionalities required for ``XeLaTex`` to work. Other tools ----------- In order to produce documentation from DocBook, you'll also need ``xmlto``. Please notice, however, that we're currently migrating all documents to use ``Sphinx``. |
1da177e4c
|
304 305 306 307 308 |
Getting updated software ======================== Kernel compilation ****************** |
a13656470
|
309 310 |
gcc --- |
840f6690b
|
311 312 |
- <ftp://ftp.gnu.org/gnu/gcc/> |
1da177e4c
|
313 314 315 |
Make ---- |
840f6690b
|
316 317 |
- <ftp://ftp.gnu.org/gnu/make/> |
1da177e4c
|
318 319 320 |
Binutils -------- |
840f6690b
|
321 322 |
- <ftp://ftp.kernel.org/pub/linux/devel/binutils/> |
1da177e4c
|
323 |
|
3f1d44ae6
|
324 325 |
OpenSSL ------- |
840f6690b
|
326 327 |
- <https://www.openssl.org/> |
3f1d44ae6
|
328 |
|
1da177e4c
|
329 330 331 332 333 |
System utilities **************** Util-linux ---------- |
840f6690b
|
334 335 |
- <ftp://ftp.kernel.org/pub/linux/utils/util-linux/> |
1da177e4c
|
336 337 338 |
Ksymoops -------- |
840f6690b
|
339 340 |
- <ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/> |
1da177e4c
|
341 342 343 |
Module-Init-Tools ----------------- |
840f6690b
|
344 345 |
- <ftp://ftp.kernel.org/pub/linux/kernel/people/rusty/modules/> |
1da177e4c
|
346 347 348 |
Mkinitrd -------- |
840f6690b
|
349 350 |
- <https://code.launchpad.net/initrd-tools/main> |
1da177e4c
|
351 352 353 |
E2fsprogs --------- |
840f6690b
|
354 355 |
- <http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.29.tar.gz> |
1da177e4c
|
356 357 358 |
JFSutils -------- |
840f6690b
|
359 360 |
- <http://jfs.sourceforge.net/> |
1da177e4c
|
361 362 363 |
Reiserfsprogs ------------- |
840f6690b
|
364 365 |
- <http://www.kernel.org/pub/linux/utils/fs/reiserfs/> |
1da177e4c
|
366 367 368 |
Xfsprogs -------- |
840f6690b
|
369 370 |
- <ftp://oss.sgi.com/projects/xfs/> |
1da177e4c
|
371 |
|
5085cb265
|
372 373 |
Pcmciautils ----------- |
840f6690b
|
374 375 |
- <ftp://ftp.kernel.org/pub/linux/utils/kernel/pcmcia/> |
5085cb265
|
376 |
|
1da177e4c
|
377 |
Quota-tools |
840f6690b
|
378 379 380 |
----------- - <http://sourceforge.net/projects/linuxquota/> |
1da177e4c
|
381 |
|
1da177e4c
|
382 383 |
DocBook Stylesheets ------------------- |
840f6690b
|
384 385 |
- <http://sourceforge.net/projects/docbook/files/docbook-dsssl/> |
1da177e4c
|
386 |
|
8b0c2d989
|
387 388 |
XMLTO XSLT Frontend ------------------- |
840f6690b
|
389 390 |
- <http://cyberelk.net/tim/xmlto/> |
8b0c2d989
|
391 |
|
1da177e4c
|
392 393 |
Intel P6 microcode ------------------ |
840f6690b
|
394 395 |
- <https://downloadcenter.intel.com/> |
1da177e4c
|
396 |
|
1da177e4c
|
397 398 |
udev ---- |
840f6690b
|
399 400 |
- <http://www.freedesktop.org/software/systemd/man/udev.html> |
1da177e4c
|
401 |
|
909021ea7
|
402 403 |
FUSE ---- |
840f6690b
|
404 405 |
- <http://sourceforge.net/projects/fuse> |
909021ea7
|
406 |
|
172d899db
|
407 408 |
mcelog ------ |
840f6690b
|
409 410 |
- <http://www.mcelog.org/> |
172d899db
|
411 |
|
1da177e4c
|
412 413 414 415 416 |
Networking ********** PPP --- |
840f6690b
|
417 418 |
- <ftp://ftp.samba.org/pub/ppp/> |
1da177e4c
|
419 420 421 |
Isdn4k-utils ------------ |
840f6690b
|
422 423 |
- <ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/> |
1da177e4c
|
424 425 426 |
NFS-utils --------- |
840f6690b
|
427 428 |
- <http://sourceforge.net/project/showfiles.php?group_id=14> |
1da177e4c
|
429 430 431 |
Iptables -------- |
840f6690b
|
432 433 |
- <http://www.iptables.org/downloads.html> |
1da177e4c
|
434 435 436 |
Ip-route2 --------- |
840f6690b
|
437 438 |
- <https://www.kernel.org/pub/linux/utils/net/iproute2/> |
1da177e4c
|
439 440 441 |
OProfile -------- |
840f6690b
|
442 443 |
- <http://oprofile.sf.net/download/> |
1da177e4c
|
444 445 446 |
NFS-Utils --------- |
840f6690b
|
447 448 |
- <http://nfs.sourceforge.net/> |
81f10d199
|
449 450 451 452 453 454 455 456 |
Kernel documentation ******************** Sphinx ------ - <http://www.sphinx-doc.org/> |