2016-09-19 19:07:56 +08:00
|
|
|
.. _changes:
|
|
|
|
|
2016-10-27 06:34:09 +08:00
|
|
|
Minimal requirements to compile the Kernel
|
2016-09-19 19:07:42 +08:00
|
|
|
++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
Intro
|
|
|
|
=====
|
|
|
|
|
|
|
|
This document is designed to provide a list of the minimum levels of
|
2016-09-19 19:07:43 +08:00
|
|
|
software necessary to run the 4.x kernels.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
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).
|
|
|
|
|
|
|
|
Current Minimal Requirements
|
2016-09-19 19:07:42 +08:00
|
|
|
****************************
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
Upgrade to at **least** these software revisions before thinking you've
|
2005-04-17 06:20:36 +08:00
|
|
|
encountered a bug! If you're unsure what version you're currently
|
|
|
|
running, the suggested command should tell you.
|
|
|
|
|
2011-07-12 07:48:38 +08:00
|
|
|
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.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
====================== =============== ========================================
|
|
|
|
Program Minimal version Command to check the version
|
|
|
|
====================== =============== ========================================
|
2018-08-21 04:15:26 +08:00
|
|
|
GNU C 4.6 gcc --version
|
2017-05-06 23:39:17 +08:00
|
|
|
GNU make 3.81 make --version
|
2017-06-09 13:24:17 +08:00
|
|
|
binutils 2.20 ld -v
|
kbuild: prepare to remove C files pre-generated by flex and bison
In Linux build system convention, pre-generated files are version-
controlled with a "_shipped" suffix. During the kernel building,
they are simply shipped (copied) removing the suffix.
This approach can reduce external tool dependency for the kernel build,
but it is tedious to manually regenerate such artifacts from developers'
point of view. (We need to do "make REGENERATE_PARSERS=1" every time
we touch real source files such as *.l, *.y)
Some months ago, I sent out RFC patches to run flex, bison, and gperf
during the build.
In the review and test, Linus noticed gperf-3.1 had changed the lookup
function prototype. Then, the use of gperf in kernel was entirely
removed by commit bb3290d91695 ("Remove gperf usage from toolchain").
This time, I tested several versions of flex and bison, and I was not
hit by any compatibility issue except a flaw in flex-2.6.3; if you
generate lexer for dtc and genksyms with flex-2.6.3, you will see
"yywrap redefined" warning. This was not intentional, but a bug,
fixed by flex-2.6.4. Otherwise, both flex and bison look fairly
stable for a long time.
This commit prepares some build rules to remove the _shipped files.
Also, document minimal requirement for flex and bison.
Rationale for the minimal version:
The -Wmissing-prototypes option of GCC warns "no previous prototype"
for lexers generated by flex-2.5.34 or older, so I chose 2.5.35 as the
required version for flex. Flex-2.5.35 was released in 2008. Bison
looks more stable. I did not see any problem with bison-2.0, released
in 2004. I did not test bison-1.x, but bison-2.0 should be old enough.
Tested flex versions:
2.5.35
2.5.36
2.5.37
2.5.39
2.6.0
2.6.1
2.6.2
2.6.3 (*)
2.6.4
(*) flex-2.6.3 causes "yywrap redefined" warning
Tested bison versions:
2.0
2.1
2.2
2.3
2.4
2.4.1
2.5.1
2.6
2.6.1
2.6.2
2.6.3
2.6.4
2.6.5
2.7
2.7.1
3.0
3.0.1
3.0.2
3.0.3
3.0.4
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-12-10 00:02:29 +08:00
|
|
|
flex 2.5.35 flex --version
|
|
|
|
bison 2.0 bison --version
|
2016-09-19 19:07:42 +08:00
|
|
|
util-linux 2.10o fdformat --version
|
2018-07-02 10:46:06 +08:00
|
|
|
kmod 13 depmod -V
|
2016-09-19 19:07:42 +08:00
|
|
|
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
|
2017-07-15 00:41:16 +08:00
|
|
|
Sphinx\ [#f1]_ 1.3 sphinx-build --version
|
2016-09-19 19:07:42 +08:00
|
|
|
====================== =============== ========================================
|
2009-12-14 21:52:10 +08:00
|
|
|
|
2016-09-19 19:07:43 +08:00
|
|
|
.. [#f1] Sphinx is needed only to build the Kernel documentation
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Kernel compilation
|
2016-09-19 19:07:42 +08:00
|
|
|
******************
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
GCC
|
|
|
|
---
|
|
|
|
|
|
|
|
The gcc version requirements may vary depending on the type of CPU in your
|
2006-01-08 17:04:09 +08:00
|
|
|
computer.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Make
|
|
|
|
----
|
|
|
|
|
2017-05-07 06:39:25 +08:00
|
|
|
You will need GNU make 3.81 or later to build the kernel.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Binutils
|
|
|
|
--------
|
|
|
|
|
2017-06-09 13:24:17 +08:00
|
|
|
The build system has, as of 4.13, switched to using thin archives (`ar T`)
|
2018-02-10 22:25:04 +08:00
|
|
|
rather than incremental linking (`ld -r`) for built-in.a intermediate steps.
|
2017-06-09 13:24:17 +08:00
|
|
|
This requires binutils 2.20 or newer.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2018-06-29 07:39:50 +08:00
|
|
|
pkg-config
|
|
|
|
----------
|
|
|
|
|
|
|
|
The build system, as of 4.18, requires pkg-config to check for installed
|
|
|
|
kconfig tools and to determine flags settings for use in
|
kconfig: do not require pkg-config on make {menu,n}config
Meelis Roos reported a {menu,n}config regression:
"I have libncurses devel package installed in the default system
location (as do 99%+ on actual developers probably) and in this
case, pkg-config is useless. pkg-config is needed only when
libraries and headers are installed in non-default locations but
it is bad to require installation of pkg-config on all the machines
where make menuconfig would be possibly run."
For {menu,n}config, do not use pkg-config if it is not installed.
For {g,x}config, keep checking pkg-config since we really rely on it
for finding the installation paths of the required packages.
Fixes: 4ab3b80159d4 ("kconfig: check for pkg-config on make {menu,n,g,x}config")
Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Meelis Roos <mroos@linux.ee>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
2018-08-31 17:34:55 +08:00
|
|
|
'make {g,x}config'. Previously pkg-config was being used but not
|
2018-06-29 07:39:50 +08:00
|
|
|
verified or documented.
|
|
|
|
|
kbuild: prepare to remove C files pre-generated by flex and bison
In Linux build system convention, pre-generated files are version-
controlled with a "_shipped" suffix. During the kernel building,
they are simply shipped (copied) removing the suffix.
This approach can reduce external tool dependency for the kernel build,
but it is tedious to manually regenerate such artifacts from developers'
point of view. (We need to do "make REGENERATE_PARSERS=1" every time
we touch real source files such as *.l, *.y)
Some months ago, I sent out RFC patches to run flex, bison, and gperf
during the build.
In the review and test, Linus noticed gperf-3.1 had changed the lookup
function prototype. Then, the use of gperf in kernel was entirely
removed by commit bb3290d91695 ("Remove gperf usage from toolchain").
This time, I tested several versions of flex and bison, and I was not
hit by any compatibility issue except a flaw in flex-2.6.3; if you
generate lexer for dtc and genksyms with flex-2.6.3, you will see
"yywrap redefined" warning. This was not intentional, but a bug,
fixed by flex-2.6.4. Otherwise, both flex and bison look fairly
stable for a long time.
This commit prepares some build rules to remove the _shipped files.
Also, document minimal requirement for flex and bison.
Rationale for the minimal version:
The -Wmissing-prototypes option of GCC warns "no previous prototype"
for lexers generated by flex-2.5.34 or older, so I chose 2.5.35 as the
required version for flex. Flex-2.5.35 was released in 2008. Bison
looks more stable. I did not see any problem with bison-2.0, released
in 2004. I did not test bison-1.x, but bison-2.0 should be old enough.
Tested flex versions:
2.5.35
2.5.36
2.5.37
2.5.39
2.6.0
2.6.1
2.6.2
2.6.3 (*)
2.6.4
(*) flex-2.6.3 causes "yywrap redefined" warning
Tested bison versions:
2.0
2.1
2.2
2.3
2.4
2.4.1
2.5.1
2.6
2.6.1
2.6.2
2.6.3
2.6.4
2.6.5
2.7
2.7.1
3.0
3.0.1
3.0.2
3.0.3
3.0.4
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-12-10 00:02:29 +08:00
|
|
|
Flex
|
|
|
|
----
|
|
|
|
|
|
|
|
Since Linux 4.16, the build system generates lexical analyzers
|
|
|
|
during build. This requires flex 2.5.35 or later.
|
|
|
|
|
|
|
|
|
|
|
|
Bison
|
|
|
|
-----
|
|
|
|
|
|
|
|
Since Linux 4.16, the build system generates parsers
|
|
|
|
during build. This requires bison 2.0 or later.
|
|
|
|
|
2009-06-18 07:26:30 +08:00
|
|
|
Perl
|
|
|
|
----
|
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
You will need perl 5 and the following modules: ``Getopt::Long``,
|
|
|
|
``Getopt::Std``, ``File::Basename``, and ``File::Find`` to build the kernel.
|
2009-06-18 07:26:30 +08:00
|
|
|
|
2014-05-19 21:02:17 +08:00
|
|
|
BC
|
|
|
|
--
|
|
|
|
|
|
|
|
You will need bc to build kernels 3.10 and higher
|
|
|
|
|
2009-06-18 07:26:30 +08:00
|
|
|
|
2015-08-27 18:13:36 +08:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
System utilities
|
2016-09-19 19:07:42 +08:00
|
|
|
****************
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
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
|
2017-05-14 22:50:11 +08:00
|
|
|
definitions in the source. These comments can be combined with ReST
|
|
|
|
files the Documentation/ directory to make enriched documentation, which can
|
|
|
|
then be converted to PostScript, HTML, LaTex, ePUB and PDF files.
|
|
|
|
In order to convert from ReST format to a format of your choice, you'll need
|
|
|
|
Sphinx.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Util-linux
|
|
|
|
----------
|
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
New versions of util-linux provide ``fdisk`` support for larger disks,
|
2005-04-17 06:20:36 +08:00
|
|
|
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
|
|
|
|
--------
|
|
|
|
|
2005-11-07 17:01:03 +08:00
|
|
|
If the unthinkable happens and your kernel oopses, you may need the
|
|
|
|
ksymoops tool to decode it, but in most cases you don't.
|
2016-09-19 19:07:42 +08:00
|
|
|
It is generally preferred to build the kernel with ``CONFIG_KALLSYMS`` so
|
2011-07-12 07:48:38 +08:00
|
|
|
that it produces readable dumps that can be used as-is (this also
|
|
|
|
produces better output than ksymoops). If for some reason your kernel
|
2016-09-19 19:07:42 +08:00
|
|
|
is not build with ``CONFIG_KALLSYMS`` and you have no way to rebuild and
|
2011-07-12 07:48:38 +08:00
|
|
|
reproduce the Oops with that option, then you can still decode that Oops
|
|
|
|
with ksymoops.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Mkinitrd
|
|
|
|
--------
|
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
These changes to the ``/lib/modules`` file tree layout also require that
|
2005-04-17 06:20:36 +08:00
|
|
|
mkinitrd be upgraded.
|
|
|
|
|
|
|
|
E2fsprogs
|
|
|
|
---------
|
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
The latest version of ``e2fsprogs`` fixes several bugs in fsck and
|
2005-04-17 06:20:36 +08:00
|
|
|
debugfs. Obviously, it's a good idea to upgrade.
|
|
|
|
|
|
|
|
JFSutils
|
|
|
|
--------
|
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
The ``jfsutils`` package contains the utilities for the file system.
|
2005-04-17 06:20:36 +08:00
|
|
|
The following utilities are available:
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- ``fsck.jfs`` - initiate replay of the transaction log, and check
|
2005-04-17 06:20:36 +08:00
|
|
|
and repair a JFS formatted partition.
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- ``mkfs.jfs`` - create a JFS formatted partition.
|
|
|
|
|
|
|
|
- other file system utilities are also available in this package.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
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
|
2016-09-19 19:07:42 +08:00
|
|
|
versions of ``mkreiserfs``, ``resize_reiserfs``, ``debugreiserfs`` and
|
|
|
|
``reiserfsck``. These utils work on both i386 and alpha platforms.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Xfsprogs
|
|
|
|
--------
|
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
The latest version of ``xfsprogs`` contains ``mkfs.xfs``, ``xfs_db``, and the
|
|
|
|
``xfs_repair`` utilities, among others, for the XFS filesystem. It is
|
2005-04-17 06:20:36 +08:00
|
|
|
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).
|
|
|
|
|
2005-06-28 07:28:45 +08:00
|
|
|
PCMCIAutils
|
|
|
|
-----------
|
|
|
|
|
2016-09-19 19:07:42 +08:00
|
|
|
PCMCIAutils replaces ``pcmcia-cs``. It properly sets up
|
2005-06-28 07:28:45 +08:00
|
|
|
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.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
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,
|
2005-06-21 12:15:16 +08:00
|
|
|
accessible as a normal (misc) character device. If you are not using
|
2016-09-21 08:46:36 +08:00
|
|
|
udev you may need to::
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
mkdir /dev/cpu
|
|
|
|
mknod /dev/cpu/microcode c 10 184
|
|
|
|
chmod 0644 /dev/cpu/microcode
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
as root before you can use this. You'll probably also want to
|
|
|
|
get the user-space microcode_ctl utility to use with this.
|
|
|
|
|
|
|
|
udev
|
|
|
|
----
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
``udev`` is a userspace application for populating ``/dev`` dynamically with
|
|
|
|
only entries for devices actually present. ``udev`` replaces the basic
|
2006-11-30 12:32:19 +08:00
|
|
|
functionality of devfs, while allowing persistent device naming for
|
2005-06-21 12:15:16 +08:00
|
|
|
devices.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2005-09-28 12:45:20 +08:00
|
|
|
FUSE
|
|
|
|
----
|
|
|
|
|
|
|
|
Needs libfuse 2.4.0 or later. Absolute minimum is 2.3.0 but mount
|
2016-09-19 19:07:42 +08:00
|
|
|
options ``direct_io`` and ``kernel_cache`` won't work.
|
2005-09-28 12:45:20 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
Networking
|
2016-09-19 19:07:42 +08:00
|
|
|
**********
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2005-06-21 12:15:16 +08:00
|
|
|
If you are not using udev, you must have the device file /dev/ppp
|
2016-09-21 08:46:36 +08:00
|
|
|
which can be made by::
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
mknod /dev/ppp c 108 0
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
as root.
|
|
|
|
|
|
|
|
Isdn4k-utils
|
|
|
|
------------
|
|
|
|
|
|
|
|
Due to changes in the length of the phone number field, isdn4k-utils
|
|
|
|
needs to be recompiled or (preferably) upgraded.
|
|
|
|
|
|
|
|
NFS-utils
|
|
|
|
---------
|
|
|
|
|
2011-07-12 07:48:38 +08:00
|
|
|
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
|
2016-09-19 19:07:42 +08:00
|
|
|
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``.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
This approach is quite fragile as it depends on rmtab being correct
|
|
|
|
which is not always easy, particularly when trying to implement
|
2016-09-19 19:07:42 +08:00
|
|
|
fail-over. Even when the system is working well, ``rmtab`` suffers from
|
2005-04-17 06:20:36 +08:00
|
|
|
getting lots of old entries that never get removed.
|
|
|
|
|
2011-07-12 07:48:38 +08:00
|
|
|
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
|
2016-09-19 19:07:42 +08:00
|
|
|
dependency on ``rmtab`` and means that the kernel only needs to know about
|
2011-07-12 07:48:38 +08:00
|
|
|
currently active clients.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2016-09-21 08:46:36 +08:00
|
|
|
To enable this new functionality, you need to::
|
2016-09-19 19:07:42 +08:00
|
|
|
|
2006-09-12 00:39:19 +08:00
|
|
|
mount -t nfsd nfsd /proc/fs/nfsd
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2009-04-29 05:37:02 +08:00
|
|
|
mcelog
|
|
|
|
------
|
|
|
|
|
2014-07-13 00:54:52 +08:00
|
|
|
On x86 kernels the mcelog utility is needed to process and log machine check
|
2016-09-19 19:07:42 +08:00
|
|
|
events when ``CONFIG_X86_MCE`` is enabled. Machine check events are errors
|
|
|
|
reported by the CPU. Processing them is strongly encouraged.
|
2009-04-29 05:37:02 +08:00
|
|
|
|
2016-09-19 19:07:43 +08:00
|
|
|
Kernel documentation
|
|
|
|
********************
|
|
|
|
|
|
|
|
Sphinx
|
|
|
|
------
|
|
|
|
|
2017-07-15 00:41:17 +08:00
|
|
|
Please see :ref:`sphinx_install` in ``Documentation/doc-guide/sphinx.rst``
|
|
|
|
for details about Sphinx requirements.
|
2016-09-19 19:07:43 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
Getting updated software
|
|
|
|
========================
|
|
|
|
|
|
|
|
Kernel compilation
|
|
|
|
******************
|
|
|
|
|
2006-01-08 17:04:09 +08:00
|
|
|
gcc
|
|
|
|
---
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <ftp://ftp.gnu.org/gnu/gcc/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Make
|
|
|
|
----
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <ftp://ftp.gnu.org/gnu/make/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Binutils
|
|
|
|
--------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
2017-03-27 21:05:34 +08:00
|
|
|
- <https://www.kernel.org/pub/linux/devel/binutils/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
kbuild: prepare to remove C files pre-generated by flex and bison
In Linux build system convention, pre-generated files are version-
controlled with a "_shipped" suffix. During the kernel building,
they are simply shipped (copied) removing the suffix.
This approach can reduce external tool dependency for the kernel build,
but it is tedious to manually regenerate such artifacts from developers'
point of view. (We need to do "make REGENERATE_PARSERS=1" every time
we touch real source files such as *.l, *.y)
Some months ago, I sent out RFC patches to run flex, bison, and gperf
during the build.
In the review and test, Linus noticed gperf-3.1 had changed the lookup
function prototype. Then, the use of gperf in kernel was entirely
removed by commit bb3290d91695 ("Remove gperf usage from toolchain").
This time, I tested several versions of flex and bison, and I was not
hit by any compatibility issue except a flaw in flex-2.6.3; if you
generate lexer for dtc and genksyms with flex-2.6.3, you will see
"yywrap redefined" warning. This was not intentional, but a bug,
fixed by flex-2.6.4. Otherwise, both flex and bison look fairly
stable for a long time.
This commit prepares some build rules to remove the _shipped files.
Also, document minimal requirement for flex and bison.
Rationale for the minimal version:
The -Wmissing-prototypes option of GCC warns "no previous prototype"
for lexers generated by flex-2.5.34 or older, so I chose 2.5.35 as the
required version for flex. Flex-2.5.35 was released in 2008. Bison
looks more stable. I did not see any problem with bison-2.0, released
in 2004. I did not test bison-1.x, but bison-2.0 should be old enough.
Tested flex versions:
2.5.35
2.5.36
2.5.37
2.5.39
2.6.0
2.6.1
2.6.2
2.6.3 (*)
2.6.4
(*) flex-2.6.3 causes "yywrap redefined" warning
Tested bison versions:
2.0
2.1
2.2
2.3
2.4
2.4.1
2.5.1
2.6
2.6.1
2.6.2
2.6.3
2.6.4
2.6.5
2.7
2.7.1
3.0
3.0.1
3.0.2
3.0.3
3.0.4
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-12-10 00:02:29 +08:00
|
|
|
Flex
|
|
|
|
----
|
|
|
|
|
|
|
|
- <https://github.com/westes/flex/releases>
|
|
|
|
|
|
|
|
Bison
|
|
|
|
-----
|
|
|
|
|
|
|
|
- <ftp://ftp.gnu.org/gnu/bison/>
|
|
|
|
|
2015-08-27 18:13:36 +08:00
|
|
|
OpenSSL
|
|
|
|
-------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <https://www.openssl.org/>
|
2015-08-27 18:13:36 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
System utilities
|
|
|
|
****************
|
|
|
|
|
|
|
|
Util-linux
|
|
|
|
----------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
2017-03-27 21:05:34 +08:00
|
|
|
- <https://www.kernel.org/pub/linux/utils/util-linux/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2018-07-02 10:46:06 +08:00
|
|
|
Kmod
|
|
|
|
----
|
|
|
|
|
|
|
|
- <https://www.kernel.org/pub/linux/utils/kernel/kmod/>
|
|
|
|
- <https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git>
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
Ksymoops
|
|
|
|
--------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
2017-03-27 21:05:34 +08:00
|
|
|
- <https://www.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Mkinitrd
|
|
|
|
--------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <https://code.launchpad.net/initrd-tools/main>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
E2fsprogs
|
|
|
|
---------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.29.tar.gz>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
JFSutils
|
|
|
|
--------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://jfs.sourceforge.net/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Reiserfsprogs
|
|
|
|
-------------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://www.kernel.org/pub/linux/utils/fs/reiserfs/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Xfsprogs
|
|
|
|
--------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <ftp://oss.sgi.com/projects/xfs/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2005-06-28 07:28:45 +08:00
|
|
|
Pcmciautils
|
|
|
|
-----------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
2017-03-27 21:05:34 +08:00
|
|
|
- <https://www.kernel.org/pub/linux/utils/kernel/pcmcia/>
|
2005-06-28 07:28:45 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
Quota-tools
|
2016-09-19 19:07:42 +08:00
|
|
|
-----------
|
|
|
|
|
|
|
|
- <http://sourceforge.net/projects/linuxquota/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2005-05-01 23:59:27 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
Intel P6 microcode
|
|
|
|
------------------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <https://downloadcenter.intel.com/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
udev
|
|
|
|
----
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://www.freedesktop.org/software/systemd/man/udev.html>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2005-09-28 12:45:20 +08:00
|
|
|
FUSE
|
|
|
|
----
|
2016-09-19 19:07:42 +08:00
|
|
|
|
2018-03-27 20:59:50 +08:00
|
|
|
- <https://github.com/libfuse/libfuse/releases>
|
2005-09-28 12:45:20 +08:00
|
|
|
|
2009-04-29 05:37:02 +08:00
|
|
|
mcelog
|
|
|
|
------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://www.mcelog.org/>
|
2009-04-29 05:37:02 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
Networking
|
|
|
|
**********
|
|
|
|
|
|
|
|
PPP
|
|
|
|
---
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <ftp://ftp.samba.org/pub/ppp/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Isdn4k-utils
|
|
|
|
------------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
NFS-utils
|
|
|
|
---------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://sourceforge.net/project/showfiles.php?group_id=14>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Iptables
|
|
|
|
--------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://www.iptables.org/downloads.html>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
Ip-route2
|
|
|
|
---------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <https://www.kernel.org/pub/linux/utils/net/iproute2/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
OProfile
|
|
|
|
--------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://oprofile.sf.net/download/>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
NFS-Utils
|
|
|
|
---------
|
2016-09-19 19:07:42 +08:00
|
|
|
|
|
|
|
- <http://nfs.sourceforge.net/>
|
2016-09-19 19:07:43 +08:00
|
|
|
|
|
|
|
Kernel documentation
|
|
|
|
********************
|
|
|
|
|
|
|
|
Sphinx
|
|
|
|
------
|
|
|
|
|
|
|
|
- <http://www.sphinx-doc.org/>
|