sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget&/translations/zh_CN/admin-guide/READMEmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/zh_TW/admin-guide/READMEmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/it_IT/admin-guide/READMEmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/ja_JP/admin-guide/READMEmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/ko_KR/admin-guide/READMEmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/sp_SP/admin-guide/READMEmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhtarget)}(h .. _readme:h]h}(h]h ]h"]h$]h&]refidreadmeuh1hhKhhhhh@/var/lib/git/docbuild/linux/Documentation/admin-guide/README.rstubhsection)}(hhh](htitle)}(h-Linux kernel release 6.x h](hLinux kernel release 6.x <}(hhhhhNhNubh reference)}(hhttp://kernel.org/h]hhttp://kernel.org/}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurihuh1hhhubh>}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hThese are the release notes for Linux version 6. Read them carefully, as they tell you what this is all about, explain how to install the kernel, and what to do if something goes wrong.h]hThese are the release notes for Linux version 6. Read them carefully, as they tell you what this is all about, explain how to install the kernel, and what to do if something goes wrong.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hWhat is Linux?h]hWhat is Linux?}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh block_quote)}(hXSLinux is a clone of the operating system Unix, written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UNIX Specification compliance. It has all the features you would expect in a modern fully-fledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management, and multistack networking including IPv4 and IPv6. It is distributed under the GNU General Public License v2 - see the accompanying COPYING file for more details. h](h)}(hLinux is a clone of the operating system Unix, written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UNIX Specification compliance.h]hLinux is a clone of the operating system Unix, written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UNIX Specification compliance.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhubh)}(hXIt has all the features you would expect in a modern fully-fledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management, and multistack networking including IPv4 and IPv6.h]hXIt has all the features you would expect in a modern fully-fledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management, and multistack networking including IPv4 and IPv6.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubh)}(hoIt is distributed under the GNU General Public License v2 - see the accompanying COPYING file for more details.h]hoIt is distributed under the GNU General Public License v2 - see the accompanying COPYING file for more details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubeh}(h]h ]h"]h$]h&]uh1hhhhK hhhhubeh}(h] what-is-linuxah ]h"]what is linux?ah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hOn what hardware does it run?h]hOn what hardware does it run?}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hhhhhKubh)}(hX Although originally developed first for 32-bit x86-based PCs (386 or higher), today Linux also runs on (at least) the Compaq Alpha AXP, Sun SPARC and UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, Cell, IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC VAX, AMD x86-64 Xtensa, and ARC architectures. Linux is easily portable to most general-purpose 32- or 64-bit architectures as long as they have a paged memory management unit (PMMU) and a port of the GNU C compiler (gcc) (part of The GNU Compiler Collection, GCC). Linux has also been ported to a number of architectures without a PMMU, although functionality is then obviously somewhat limited. Linux has also been ported to itself. You can now run the kernel as a userspace application - this is called UserMode Linux (UML). h](h)}(hX=Although originally developed first for 32-bit x86-based PCs (386 or higher), today Linux also runs on (at least) the Compaq Alpha AXP, Sun SPARC and UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, Cell, IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC VAX, AMD x86-64 Xtensa, and ARC architectures.h]hX=Although originally developed first for 32-bit x86-based PCs (386 or higher), today Linux also runs on (at least) the Compaq Alpha AXP, Sun SPARC and UltraSPARC, Motorola 68000, PowerPC, PowerPC64, ARM, Hitachi SuperH, Cell, IBM S/390, MIPS, HP PA-RISC, Intel IA-64, DEC VAX, AMD x86-64 Xtensa, and ARC architectures.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjJubh)}(hXLinux is easily portable to most general-purpose 32- or 64-bit architectures as long as they have a paged memory management unit (PMMU) and a port of the GNU C compiler (gcc) (part of The GNU Compiler Collection, GCC). Linux has also been ported to a number of architectures without a PMMU, although functionality is then obviously somewhat limited. Linux has also been ported to itself. You can now run the kernel as a userspace application - this is called UserMode Linux (UML).h]hXLinux is easily portable to most general-purpose 32- or 64-bit architectures as long as they have a paged memory management unit (PMMU) and a port of the GNU C compiler (gcc) (part of The GNU Compiler Collection, GCC). Linux has also been ported to a number of architectures without a PMMU, although functionality is then obviously somewhat limited. Linux has also been ported to itself. You can now run the kernel as a userspace application - this is called UserMode Linux (UML).}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjJubeh}(h]h ]h"]h$]h&]uh1hhhhKhj9hhubeh}(h]on-what-hardware-does-it-runah ]h"]on what hardware does it run?ah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Documentationh]h Documentation}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhK+ubh)}(hX- There is a lot of documentation available both in electronic form on the Internet and in books, both Linux-specific and pertaining to general UNIX questions. I'd recommend looking into the documentation subdirectories on any Linux FTP site for the LDP (Linux Documentation Project) books. This README is not meant to be documentation on the system: there are much better sources available. - There are various README files in the Documentation/ subdirectory: these typically contain kernel-specific installation notes for some drivers for example. Please read the :ref:`Documentation/process/changes.rst ` file, as it contains information about the problems, which may result by upgrading your kernel. h]h bullet_list)}(hhh](h list_item)}(hXThere is a lot of documentation available both in electronic form on the Internet and in books, both Linux-specific and pertaining to general UNIX questions. I'd recommend looking into the documentation subdirectories on any Linux FTP site for the LDP (Linux Documentation Project) books. This README is not meant to be documentation on the system: there are much better sources available. h]h)}(hXThere is a lot of documentation available both in electronic form on the Internet and in books, both Linux-specific and pertaining to general UNIX questions. I'd recommend looking into the documentation subdirectories on any Linux FTP site for the LDP (Linux Documentation Project) books. This README is not meant to be documentation on the system: there are much better sources available.h]hXThere is a lot of documentation available both in electronic form on the Internet and in books, both Linux-specific and pertaining to general UNIX questions. I’d recommend looking into the documentation subdirectories on any Linux FTP site for the LDP (Linux Documentation Project) books. This README is not meant to be documentation on the system: there are much better sources available.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hX?There are various README files in the Documentation/ subdirectory: these typically contain kernel-specific installation notes for some drivers for example. Please read the :ref:`Documentation/process/changes.rst ` file, as it contains information about the problems, which may result by upgrading your kernel. h]h)}(hX>There are various README files in the Documentation/ subdirectory: these typically contain kernel-specific installation notes for some drivers for example. Please read the :ref:`Documentation/process/changes.rst ` file, as it contains information about the problems, which may result by upgrading your kernel.h](hThere are various README files in the Documentation/ subdirectory: these typically contain kernel-specific installation notes for some drivers for example. Please read the }(hjhhhNhNubh)}(h2:ref:`Documentation/process/changes.rst `h]hinline)}(hjh]h!Documentation/process/changes.rst}(hjhhhNhNubah}(h]h ](xrefstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocadmin-guide/README refdomainjreftyperef refexplicitrefwarn reftargetchangesuh1hhhhK4hjubh` file, as it contains information about the problems, which may result by upgrading your kernel.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhK-hjubah}(h]h ]h"]h$]h&]uh1hhhhK-hjxhhubeh}(h] documentationah ]h"] documentationah$]h&]uh1hhhhhhhhK+ubh)}(hhh](h)}(hInstalling the kernel sourceh]hInstalling the kernel source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK`. Alternatively, the script patch-kernel can be used to automate this process. It determines the current kernel version and applies any patches found:: linux/scripts/patch-kernel linux The first argument in the command above is the location of the kernel source. Patches are applied from the current directory, but an alternative directory can be specified as the second argument. - Make sure you have no stale .o files and dependencies lying around:: cd linux make mrproper You should now have the sources correctly installed. h]j)}(hhh](j)}(hXIf you install the full sources, put the kernel tarball in a directory where you have permissions (e.g. your home directory) and unpack it:: xz -cd linux-6.x.tar.xz | tar xvf - Replace "X" with the version number of the latest kernel. Do NOT use the /usr/src/linux area! This area has a (usually incomplete) set of kernel headers that are used by the library header files. They should match the library, and not get messed up by whatever the kernel-du-jour happens to be. h](h)}(hIf you install the full sources, put the kernel tarball in a directory where you have permissions (e.g. your home directory) and unpack it::h]hIf you install the full sources, put the kernel tarball in a directory where you have permissions (e.g. your home directory) and unpack it:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK>hjubh literal_block)}(h#xz -cd linux-6.x.tar.xz | tar xvf -h]h#xz -cd linux-6.x.tar.xz | tar xvf -}hj/sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j-hhhKBhjubh)}(h9Replace "X" with the version number of the latest kernel.h]h=Replace “X” with the version number of the latest kernel.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjubh)}(hDo NOT use the /usr/src/linux area! This area has a (usually incomplete) set of kernel headers that are used by the library header files. They should match the library, and not get messed up by whatever the kernel-du-jour happens to be.h]hDo NOT use the /usr/src/linux area! This area has a (usually incomplete) set of kernel headers that are used by the library header files. They should match the library, and not get messed up by whatever the kernel-du-jour happens to be.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKFhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hX-You can also upgrade between 6.x releases by patching. Patches are distributed in the xz format. To install by patching, get all the newer patch files, enter the top level directory of the kernel source (linux-6.x) and execute:: xz -cd ../patch-6.x.xz | patch -p1 Replace "x" for all versions bigger than the version "x" of your current source tree, **in_order**, and you should be ok. You may want to remove the backup files (some-file-name~ or some-file-name.orig), and make sure that there are no failed patches (some-file-name# or some-file-name.rej). If there are, either you or I have made a mistake. Unlike patches for the 6.x kernels, patches for the 6.x.y kernels (also known as the -stable kernels) are not incremental but instead apply directly to the base 6.x kernel. For example, if your base kernel is 6.0 and you want to apply the 6.0.3 patch, you must not first apply the 6.0.1 and 6.0.2 patches. Similarly, if you are running kernel version 6.0.2 and want to jump to 6.0.3, you must first reverse the 6.0.2 patch (that is, patch -R) **before** applying the 6.0.3 patch. You can read more on this in :ref:`Documentation/process/applying-patches.rst `. Alternatively, the script patch-kernel can be used to automate this process. It determines the current kernel version and applies any patches found:: linux/scripts/patch-kernel linux The first argument in the command above is the location of the kernel source. Patches are applied from the current directory, but an alternative directory can be specified as the second argument. h](h)}(hYou can also upgrade between 6.x releases by patching. Patches are distributed in the xz format. To install by patching, get all the newer patch files, enter the top level directory of the kernel source (linux-6.x) and execute::h]hYou can also upgrade between 6.x releases by patching. Patches are distributed in the xz format. To install by patching, get all the newer patch files, enter the top level directory of the kernel source (linux-6.x) and execute:}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKKhjaubj.)}(h"xz -cd ../patch-6.x.xz | patch -p1h]h"xz -cd ../patch-6.x.xz | patch -p1}hjssbah}(h]h ]h"]h$]h&]j=j>uh1j-hhhKPhjaubh)}(hXWReplace "x" for all versions bigger than the version "x" of your current source tree, **in_order**, and you should be ok. You may want to remove the backup files (some-file-name~ or some-file-name.orig), and make sure that there are no failed patches (some-file-name# or some-file-name.rej). If there are, either you or I have made a mistake.h](h^Replace “x” for all versions bigger than the version “x” of your current source tree, }(hjhhhNhNubhstrong)}(h **in_order**h]hin_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and you should be ok. You may want to remove the backup files (some-file-name~ or some-file-name.orig), and make sure that there are no failed patches (some-file-name# or some-file-name.rej). If there are, either you or I have made a mistake.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKRhjaubh)}(hXCUnlike patches for the 6.x kernels, patches for the 6.x.y kernels (also known as the -stable kernels) are not incremental but instead apply directly to the base 6.x kernel. For example, if your base kernel is 6.0 and you want to apply the 6.0.3 patch, you must not first apply the 6.0.1 and 6.0.2 patches. Similarly, if you are running kernel version 6.0.2 and want to jump to 6.0.3, you must first reverse the 6.0.2 patch (that is, patch -R) **before** applying the 6.0.3 patch. You can read more on this in :ref:`Documentation/process/applying-patches.rst `.h](hXUnlike patches for the 6.x kernels, patches for the 6.x.y kernels (also known as the -stable kernels) are not incremental but instead apply directly to the base 6.x kernel. For example, if your base kernel is 6.0 and you want to apply the 6.0.3 patch, you must not first apply the 6.0.1 and 6.0.2 patches. Similarly, if you are running kernel version 6.0.2 and want to jump to 6.0.3, you must first reverse the 6.0.2 patch (that is, patch -R) }(hjhhhNhNubj)}(h **before**h]hbefore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 applying the 6.0.3 patch. You can read more on this in }(hjhhhNhNubh)}(hD:ref:`Documentation/process/applying-patches.rst `h]j)}(hjh]h*Documentation/process/applying-patches.rst}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjapplying_patchesuh1hhhhKXhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKXhjaubh)}(hAlternatively, the script patch-kernel can be used to automate this process. It determines the current kernel version and applies any patches found::h]hAlternatively, the script patch-kernel can be used to automate this process. It determines the current kernel version and applies any patches found:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKahjaubj.)}(h linux/scripts/patch-kernel linuxh]h linux/scripts/patch-kernel linux}hjsbah}(h]h ]h"]h$]h&]j=j>uh1j-hhhKehjaubh)}(hThe first argument in the command above is the location of the kernel source. Patches are applied from the current directory, but an alternative directory can be specified as the second argument.h]hThe first argument in the command above is the location of the kernel source. Patches are applied from the current directory, but an alternative directory can be specified as the second argument.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKghjaubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hMake sure you have no stale .o files and dependencies lying around:: cd linux make mrproper You should now have the sources correctly installed. h](h)}(hDMake sure you have no stale .o files and dependencies lying around::h]hCMake sure you have no stale .o files and dependencies lying around:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhjubj.)}(hcd linux make mrproperh]hcd linux make mrproper}hj)sbah}(h]h ]h"]h$]h&]j=j>uh1j-hhhKmhjubh)}(h4You should now have the sources correctly installed.h]h4You should now have the sources correctly installed.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhK>hjubah}(h]h ]h"]h$]h&]uh1hhhhK>hjhhubeh}(h]installing-the-kernel-sourceah ]h"]installing the kernel sourceah$]h&]uh1hhhhhhhhK` for the minimum version numbers required and how to get updates for these packages. Beware that using excessively old versions of these packages can cause indirect errors that are very difficult to track down, so don't assume that you can just update packages when obvious problems arise during build or operation. h]h)}(hXCompiling and running the 6.x kernels requires up-to-date versions of various software packages. Consult :ref:`Documentation/process/changes.rst ` for the minimum version numbers required and how to get updates for these packages. Beware that using excessively old versions of these packages can cause indirect errors that are very difficult to track down, so don't assume that you can just update packages when obvious problems arise during build or operation.h](hjCompiling and running the 6.x kernels requires up-to-date versions of various software packages. Consult }(hjthhhNhNubh)}(h2:ref:`Documentation/process/changes.rst `h]j)}(hj~h]h!Documentation/process/changes.rst}(hjhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjchangesuh1hhhhKuhjtubhX> for the minimum version numbers required and how to get updates for these packages. Beware that using excessively old versions of these packages can cause indirect errors that are very difficult to track down, so don’t assume that you can just update packages when obvious problems arise during build or operation.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKuhjpubah}(h]h ]h"]h$]h&]uh1hhhhKuhj_hhubeh}(h]software-requirementsah ]h"]software requirementsah$]h&]uh1hhhhhhhhKsubh)}(hhh](h)}(hBuild directory for the kernelh]hBuild directory for the kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXWhen compiling the kernel, all output files will per default be stored together with the kernel source code. Using the option ``make O=output/dir`` allows you to specify an alternate place for the output files (including .config). Example:: kernel source code: /usr/src/linux-6.x build directory: /home/name/build/kernel To configure and build the kernel, use:: cd /usr/src/linux-6.x make O=/home/name/build/kernel menuconfig make O=/home/name/build/kernel sudo make O=/home/name/build/kernel modules_install install Please note: If the ``O=output/dir`` option is used, then it must be used for all invocations of make. h](h)}(hWhen compiling the kernel, all output files will per default be stored together with the kernel source code. Using the option ``make O=output/dir`` allows you to specify an alternate place for the output files (including .config). Example::h](h~When compiling the kernel, all output files will per default be stored together with the kernel source code. Using the option }(hjhhhNhNubhliteral)}(h``make O=output/dir``h]hmake O=output/dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh\ allows you to specify an alternate place for the output files (including .config). Example:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubj.)}(hRkernel source code: /usr/src/linux-6.x build directory: /home/name/build/kernelh]hRkernel source code: /usr/src/linux-6.x build directory: /home/name/build/kernel}hjsbah}(h]h ]h"]h$]h&]j=j>uh1j-hhhKhjubh)}(h(To configure and build the kernel, use::h]h'To configure and build the kernel, use:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj.)}(hcd /usr/src/linux-6.x make O=/home/name/build/kernel menuconfig make O=/home/name/build/kernel sudo make O=/home/name/build/kernel modules_install installh]hcd /usr/src/linux-6.x make O=/home/name/build/kernel menuconfig make O=/home/name/build/kernel sudo make O=/home/name/build/kernel modules_install install}hjsbah}(h]h ]h"]h$]h&]j=j>uh1j-hhhKhjubh)}(hfPlease note: If the ``O=output/dir`` option is used, then it must be used for all invocations of make.h](hPlease note: If the }(hjhhhNhNubj)}(h``O=output/dir``h]h O=output/dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB option is used, then it must be used for all invocations of make.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]build-directory-for-the-kernelah ]h"]build directory for the kernelah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hConfiguring the kernelh]hConfiguring the kernel}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChhhhhKubh)}(hX> Do not skip this step even if you are only upgrading one minor version. New configuration options are added in each release, and odd problems will turn up if the configuration files are not set up as expected. If you want to carry your existing configuration to a new version with minimal work, use ``make oldconfig``, which will only ask you for the answers to new questions. - Alternative configuration commands are:: "make config" Plain text interface. "make menuconfig" Text based color menus, radiolists & dialogs. "make nconfig" Enhanced text based color menus. "make xconfig" Qt based configuration tool. "make gconfig" GTK based configuration tool. "make oldconfig" Default all questions based on the contents of your existing ./.config file and asking about new config symbols. "make olddefconfig" Like above, but sets new symbols to their default values without prompting. "make defconfig" Create a ./.config file by using the default symbol values from either arch/$ARCH/configs/defconfig or arch/$ARCH/configs/${PLATFORM}_defconfig, depending on the architecture. "make ${PLATFORM}_defconfig" Create a ./.config file by using the default symbol values from arch/$ARCH/configs/${PLATFORM}_defconfig. Use "make help" to get a list of all available platforms of your architecture. "make allyesconfig" Create a ./.config file by setting symbol values to 'y' as much as possible. "make allmodconfig" Create a ./.config file by setting symbol values to 'm' as much as possible. "make allnoconfig" Create a ./.config file by setting symbol values to 'n' as much as possible. "make randconfig" Create a ./.config file by setting symbol values to random values. "make localmodconfig" Create a config based on current config and loaded modules (lsmod). Disables any module option that is not needed for the loaded modules. To create a localmodconfig for another machine, store the lsmod of that machine into a file and pass it in as a LSMOD parameter. Also, you can preserve modules in certain folders or kconfig files by specifying their paths in parameter LMC_KEEP. target$ lsmod > /tmp/mylsmod target$ scp /tmp/mylsmod host:/tmp host$ make LSMOD=/tmp/mylsmod \ LMC_KEEP="drivers/usb:drivers/gpu:fs" \ localmodconfig The above also works when cross compiling. "make localyesconfig" Similar to localmodconfig, except it will convert all module options to built in (=y) options. You can also preserve modules by LMC_KEEP. "make kvm_guest.config" Enable additional options for kvm guest kernel support. "make xen.config" Enable additional options for xen dom0 guest kernel support. "make tinyconfig" Configure the tiniest possible kernel. You can find more information on using the Linux kernel config tools in Documentation/kbuild/kconfig.rst. - NOTES on ``make config``: - Having unnecessary drivers will make the kernel bigger, and can under some circumstances lead to problems: probing for a nonexistent controller card may confuse your other controllers. - A kernel with math-emulation compiled in will still use the coprocessor if one is present: the math emulation will just never get used in that case. The kernel will be slightly larger, but will work on different machines regardless of whether they have a math coprocessor or not. - The "kernel hacking" configuration details usually result in a bigger or slower kernel (or both), and can even make the kernel less stable by configuring some routines to actively try to break bad code to find kernel problems (kmalloc()). Thus you should probably answer 'n' to the questions for "development", "experimental", or "debugging" features. h](h)}(hX{Do not skip this step even if you are only upgrading one minor version. New configuration options are added in each release, and odd problems will turn up if the configuration files are not set up as expected. If you want to carry your existing configuration to a new version with minimal work, use ``make oldconfig``, which will only ask you for the answers to new questions. h]h)}(hXzDo not skip this step even if you are only upgrading one minor version. New configuration options are added in each release, and odd problems will turn up if the configuration files are not set up as expected. If you want to carry your existing configuration to a new version with minimal work, use ``make oldconfig``, which will only ask you for the answers to new questions.h](hX-Do not skip this step even if you are only upgrading one minor version. New configuration options are added in each release, and odd problems will turn up if the configuration files are not set up as expected. If you want to carry your existing configuration to a new version with minimal work, use }(hj\hhhNhNubj)}(h``make oldconfig``h]hmake oldconfig}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh;, which will only ask you for the answers to new questions.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjXubah}(h]h ]h"]h$]h&]uh1hhhhKhjTubj)}(hhh](j)}(hX Alternative configuration commands are:: "make config" Plain text interface. "make menuconfig" Text based color menus, radiolists & dialogs. "make nconfig" Enhanced text based color menus. "make xconfig" Qt based configuration tool. "make gconfig" GTK based configuration tool. "make oldconfig" Default all questions based on the contents of your existing ./.config file and asking about new config symbols. "make olddefconfig" Like above, but sets new symbols to their default values without prompting. "make defconfig" Create a ./.config file by using the default symbol values from either arch/$ARCH/configs/defconfig or arch/$ARCH/configs/${PLATFORM}_defconfig, depending on the architecture. "make ${PLATFORM}_defconfig" Create a ./.config file by using the default symbol values from arch/$ARCH/configs/${PLATFORM}_defconfig. Use "make help" to get a list of all available platforms of your architecture. "make allyesconfig" Create a ./.config file by setting symbol values to 'y' as much as possible. "make allmodconfig" Create a ./.config file by setting symbol values to 'm' as much as possible. "make allnoconfig" Create a ./.config file by setting symbol values to 'n' as much as possible. "make randconfig" Create a ./.config file by setting symbol values to random values. "make localmodconfig" Create a config based on current config and loaded modules (lsmod). Disables any module option that is not needed for the loaded modules. To create a localmodconfig for another machine, store the lsmod of that machine into a file and pass it in as a LSMOD parameter. Also, you can preserve modules in certain folders or kconfig files by specifying their paths in parameter LMC_KEEP. target$ lsmod > /tmp/mylsmod target$ scp /tmp/mylsmod host:/tmp host$ make LSMOD=/tmp/mylsmod \ LMC_KEEP="drivers/usb:drivers/gpu:fs" \ localmodconfig The above also works when cross compiling. "make localyesconfig" Similar to localmodconfig, except it will convert all module options to built in (=y) options. You can also preserve modules by LMC_KEEP. "make kvm_guest.config" Enable additional options for kvm guest kernel support. "make xen.config" Enable additional options for xen dom0 guest kernel support. "make tinyconfig" Configure the tiniest possible kernel. You can find more information on using the Linux kernel config tools in Documentation/kbuild/kconfig.rst. h](h)}(h(Alternative configuration commands are::h]h'Alternative configuration commands are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj.)}(hX "make config" Plain text interface. "make menuconfig" Text based color menus, radiolists & dialogs. "make nconfig" Enhanced text based color menus. "make xconfig" Qt based configuration tool. "make gconfig" GTK based configuration tool. "make oldconfig" Default all questions based on the contents of your existing ./.config file and asking about new config symbols. "make olddefconfig" Like above, but sets new symbols to their default values without prompting. "make defconfig" Create a ./.config file by using the default symbol values from either arch/$ARCH/configs/defconfig or arch/$ARCH/configs/${PLATFORM}_defconfig, depending on the architecture. "make ${PLATFORM}_defconfig" Create a ./.config file by using the default symbol values from arch/$ARCH/configs/${PLATFORM}_defconfig. Use "make help" to get a list of all available platforms of your architecture. "make allyesconfig" Create a ./.config file by setting symbol values to 'y' as much as possible. "make allmodconfig" Create a ./.config file by setting symbol values to 'm' as much as possible. "make allnoconfig" Create a ./.config file by setting symbol values to 'n' as much as possible. "make randconfig" Create a ./.config file by setting symbol values to random values. "make localmodconfig" Create a config based on current config and loaded modules (lsmod). Disables any module option that is not needed for the loaded modules. To create a localmodconfig for another machine, store the lsmod of that machine into a file and pass it in as a LSMOD parameter. Also, you can preserve modules in certain folders or kconfig files by specifying their paths in parameter LMC_KEEP. target$ lsmod > /tmp/mylsmod target$ scp /tmp/mylsmod host:/tmp host$ make LSMOD=/tmp/mylsmod \ LMC_KEEP="drivers/usb:drivers/gpu:fs" \ localmodconfig The above also works when cross compiling. "make localyesconfig" Similar to localmodconfig, except it will convert all module options to built in (=y) options. You can also preserve modules by LMC_KEEP. "make kvm_guest.config" Enable additional options for kvm guest kernel support. "make xen.config" Enable additional options for xen dom0 guest kernel support. "make tinyconfig" Configure the tiniest possible kernel.h]hX "make config" Plain text interface. "make menuconfig" Text based color menus, radiolists & dialogs. "make nconfig" Enhanced text based color menus. "make xconfig" Qt based configuration tool. "make gconfig" GTK based configuration tool. "make oldconfig" Default all questions based on the contents of your existing ./.config file and asking about new config symbols. "make olddefconfig" Like above, but sets new symbols to their default values without prompting. "make defconfig" Create a ./.config file by using the default symbol values from either arch/$ARCH/configs/defconfig or arch/$ARCH/configs/${PLATFORM}_defconfig, depending on the architecture. "make ${PLATFORM}_defconfig" Create a ./.config file by using the default symbol values from arch/$ARCH/configs/${PLATFORM}_defconfig. Use "make help" to get a list of all available platforms of your architecture. "make allyesconfig" Create a ./.config file by setting symbol values to 'y' as much as possible. "make allmodconfig" Create a ./.config file by setting symbol values to 'm' as much as possible. "make allnoconfig" Create a ./.config file by setting symbol values to 'n' as much as possible. "make randconfig" Create a ./.config file by setting symbol values to random values. "make localmodconfig" Create a config based on current config and loaded modules (lsmod). Disables any module option that is not needed for the loaded modules. To create a localmodconfig for another machine, store the lsmod of that machine into a file and pass it in as a LSMOD parameter. Also, you can preserve modules in certain folders or kconfig files by specifying their paths in parameter LMC_KEEP. target$ lsmod > /tmp/mylsmod target$ scp /tmp/mylsmod host:/tmp host$ make LSMOD=/tmp/mylsmod \ LMC_KEEP="drivers/usb:drivers/gpu:fs" \ localmodconfig The above also works when cross compiling. "make localyesconfig" Similar to localmodconfig, except it will convert all module options to built in (=y) options. You can also preserve modules by LMC_KEEP. "make kvm_guest.config" Enable additional options for kvm guest kernel support. "make xen.config" Enable additional options for xen dom0 guest kernel support. "make tinyconfig" Configure the tiniest possible kernel.}hjsbah}(h]h ]h"]h$]h&]j=j>uh1j-hhhKhjubh)}(hiYou can find more information on using the Linux kernel config tools in Documentation/kbuild/kconfig.rst.h]hiYou can find more information on using the Linux kernel config tools in Documentation/kbuild/kconfig.rst.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hXzNOTES on ``make config``: - Having unnecessary drivers will make the kernel bigger, and can under some circumstances lead to problems: probing for a nonexistent controller card may confuse your other controllers. - A kernel with math-emulation compiled in will still use the coprocessor if one is present: the math emulation will just never get used in that case. The kernel will be slightly larger, but will work on different machines regardless of whether they have a math coprocessor or not. - The "kernel hacking" configuration details usually result in a bigger or slower kernel (or both), and can even make the kernel less stable by configuring some routines to actively try to break bad code to find kernel problems (kmalloc()). Thus you should probably answer 'n' to the questions for "development", "experimental", or "debugging" features. h](h)}(hNOTES on ``make config``:h](h NOTES on }(hjhhhNhNubj)}(h``make config``h]h make config}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hXQ- Having unnecessary drivers will make the kernel bigger, and can under some circumstances lead to problems: probing for a nonexistent controller card may confuse your other controllers. - A kernel with math-emulation compiled in will still use the coprocessor if one is present: the math emulation will just never get used in that case. The kernel will be slightly larger, but will work on different machines regardless of whether they have a math coprocessor or not. - The "kernel hacking" configuration details usually result in a bigger or slower kernel (or both), and can even make the kernel less stable by configuring some routines to actively try to break bad code to find kernel problems (kmalloc()). Thus you should probably answer 'n' to the questions for "development", "experimental", or "debugging" features. h]j)}(hhh](j)}(hHaving unnecessary drivers will make the kernel bigger, and can under some circumstances lead to problems: probing for a nonexistent controller card may confuse your other controllers. h]h)}(hHaving unnecessary drivers will make the kernel bigger, and can under some circumstances lead to problems: probing for a nonexistent controller card may confuse your other controllers.h]hHaving unnecessary drivers will make the kernel bigger, and can under some circumstances lead to problems: probing for a nonexistent controller card may confuse your other controllers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXA kernel with math-emulation compiled in will still use the coprocessor if one is present: the math emulation will just never get used in that case. The kernel will be slightly larger, but will work on different machines regardless of whether they have a math coprocessor or not. h]h)}(hXA kernel with math-emulation compiled in will still use the coprocessor if one is present: the math emulation will just never get used in that case. The kernel will be slightly larger, but will work on different machines regardless of whether they have a math coprocessor or not.h]hXA kernel with math-emulation compiled in will still use the coprocessor if one is present: the math emulation will just never get used in that case. The kernel will be slightly larger, but will work on different machines regardless of whether they have a math coprocessor or not.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXaThe "kernel hacking" configuration details usually result in a bigger or slower kernel (or both), and can even make the kernel less stable by configuring some routines to actively try to break bad code to find kernel problems (kmalloc()). Thus you should probably answer 'n' to the questions for "development", "experimental", or "debugging" features. h]h)}(hX`The "kernel hacking" configuration details usually result in a bigger or slower kernel (or both), and can even make the kernel less stable by configuring some routines to actively try to break bad code to find kernel problems (kmalloc()). Thus you should probably answer 'n' to the questions for "development", "experimental", or "debugging" features.h]hXtThe “kernel hacking” configuration details usually result in a bigger or slower kernel (or both), and can even make the kernel less stable by configuring some routines to actively try to break bad code to find kernel problems (kmalloc()). Thus you should probably answer ‘n’ to the questions for “development”, “experimental”, or “debugging” features.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjTubeh}(h]h ]h"]h$]h&]uh1hhhhKhjChhubeh}(h]configuring-the-kernelah ]h"]configuring the kernelah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hCompiling the kernelh]hCompiling the kernel}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhhhhhMubh)}(hXr - Make sure you have at least gcc 5.1 available. For more information, refer to :ref:`Documentation/process/changes.rst `. - Do a ``make`` to create a compressed kernel image. It is also possible to do ``make install`` if you have lilo installed or if your distribution has an install script recognised by the kernel's installer. Most popular distributions will have a recognized install script. You may want to check your distribution's setup first. To do the actual install, you have to be root, but none of the normal build should require that. Don't take the name of root in vain. - If you configured any of the parts of the kernel as ``modules``, you will also have to do ``make modules_install``. - Verbose kernel compile/build output: Normally, the kernel build system runs in a fairly quiet mode (but not totally silent). However, sometimes you or other kernel developers need to see compile, link, or other commands exactly as they are executed. For this, use "verbose" build mode. This is done by passing ``V=1`` to the ``make`` command, e.g.:: make V=1 all To have the build system also tell the reason for the rebuild of each target, use ``V=2``. The default is ``V=0``. - Keep a backup kernel handy in case something goes wrong. This is especially true for the development releases, since each new release contains new code which has not been debugged. Make sure you keep a backup of the modules corresponding to that kernel, as well. If you are installing a new kernel with the same version number as your working kernel, make a backup of your modules directory before you do a ``make modules_install``. Alternatively, before compiling, use the kernel config option "LOCALVERSION" to append a unique suffix to the regular kernel version. LOCALVERSION can be set in the "General Setup" menu. - In order to boot your new kernel, you'll need to copy the kernel image (e.g. .../linux/arch/x86/boot/bzImage after compilation) to the place where your regular bootable kernel is found. - Booting a kernel directly from a storage device without the assistance of a bootloader such as LILO or GRUB, is no longer supported in BIOS (non-EFI systems). On UEFI/EFI systems, however, you can use EFISTUB which allows the motherboard to boot directly to the kernel. On modern workstations and desktops, it's generally recommended to use a bootloader as difficulties can arise with multiple kernels and secure boot. For more details on EFISTUB, see "Documentation/admin-guide/efi-stub.rst". - It's important to note that as of 2016 LILO (LInux LOader) is no longer in active development, though as it was extremely popular, it often comes up in documentation. Popular alternatives include GRUB2, rEFInd, Syslinux, systemd-boot, or EFISTUB. For various reasons, it's not recommended to use software that's no longer in active development. - Chances are your distribution includes an install script and running ``make install`` will be all that's needed. Should that not be the case you'll have to identify your bootloader and reference its documentation or configure your EFI. h]j)}(hhh](j)}(hMake sure you have at least gcc 5.1 available. For more information, refer to :ref:`Documentation/process/changes.rst `. h]h)}(hMake sure you have at least gcc 5.1 available. For more information, refer to :ref:`Documentation/process/changes.rst `.h](hNMake sure you have at least gcc 5.1 available. For more information, refer to }(hjnhhhNhNubh)}(h2:ref:`Documentation/process/changes.rst `h]j)}(hjxh]h!Documentation/process/changes.rst}(hjzhhhNhNubah}(h]h ](jstdstd-refeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocj refdomainjreftyperef refexplicitrefwarnjchangesuh1hhhhMhjnubh.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(hXDo a ``make`` to create a compressed kernel image. It is also possible to do ``make install`` if you have lilo installed or if your distribution has an install script recognised by the kernel's installer. Most popular distributions will have a recognized install script. You may want to check your distribution's setup first. To do the actual install, you have to be root, but none of the normal build should require that. Don't take the name of root in vain. h](h)}(hXEDo a ``make`` to create a compressed kernel image. It is also possible to do ``make install`` if you have lilo installed or if your distribution has an install script recognised by the kernel's installer. Most popular distributions will have a recognized install script. You may want to check your distribution's setup first.h](hDo a }(hjhhhNhNubj)}(h``make``h]hmake}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@ to create a compressed kernel image. It is also possible to do }(hjhhhNhNubj)}(h``make install``h]h make install}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if you have lilo installed or if your distribution has an install script recognised by the kernel’s installer. Most popular distributions will have a recognized install script. You may want to check your distribution’s setup first.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM hjubh)}(hTo do the actual install, you have to be root, but none of the normal build should require that. Don't take the name of root in vain.h]hTo do the actual install, you have to be root, but none of the normal build should require that. Don’t take the name of root in vain.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjgubj)}(htIf you configured any of the parts of the kernel as ``modules``, you will also have to do ``make modules_install``. h]h)}(hsIf you configured any of the parts of the kernel as ``modules``, you will also have to do ``make modules_install``.h](h4If you configured any of the parts of the kernel as }(hjhhhNhNubj)}(h ``modules``h]hmodules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, you will also have to do }(hjhhhNhNubj)}(h``make modules_install``h]hmake modules_install}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(hXVerbose kernel compile/build output: Normally, the kernel build system runs in a fairly quiet mode (but not totally silent). However, sometimes you or other kernel developers need to see compile, link, or other commands exactly as they are executed. For this, use "verbose" build mode. This is done by passing ``V=1`` to the ``make`` command, e.g.:: make V=1 all To have the build system also tell the reason for the rebuild of each target, use ``V=2``. The default is ``V=0``. h](h)}(h$Verbose kernel compile/build output:h]h$Verbose kernel compile/build output:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj,ubh)}(hX:Normally, the kernel build system runs in a fairly quiet mode (but not totally silent). However, sometimes you or other kernel developers need to see compile, link, or other commands exactly as they are executed. For this, use "verbose" build mode. This is done by passing ``V=1`` to the ``make`` command, e.g.::h](hXNormally, the kernel build system runs in a fairly quiet mode (but not totally silent). However, sometimes you or other kernel developers need to see compile, link, or other commands exactly as they are executed. For this, use “verbose” build mode. This is done by passing }(hj>hhhNhNubj)}(h``V=1``h]hV=1}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh to the }(hj>hhhNhNubj)}(h``make``h]hmake}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh command, e.g.:}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj,ubj.)}(h make V=1 allh]h make V=1 all}hjpsbah}(h]h ]h"]h$]h&]j=j>uh1j-hhhMhj,ubh)}(hsTo have the build system also tell the reason for the rebuild of each target, use ``V=2``. The default is ``V=0``.h](hRTo have the build system also tell the reason for the rebuild of each target, use }(hj~hhhNhNubj)}(h``V=2``h]hV=2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh. The default is }(hj~hhhNhNubj)}(h``V=0``h]hV=0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj,ubeh}(h]h ]h"]h$]h&]uh1jhjgubj)}(hXpKeep a backup kernel handy in case something goes wrong. This is especially true for the development releases, since each new release contains new code which has not been debugged. Make sure you keep a backup of the modules corresponding to that kernel, as well. If you are installing a new kernel with the same version number as your working kernel, make a backup of your modules directory before you do a ``make modules_install``. Alternatively, before compiling, use the kernel config option "LOCALVERSION" to append a unique suffix to the regular kernel version. LOCALVERSION can be set in the "General Setup" menu. h](h)}(hXKeep a backup kernel handy in case something goes wrong. This is especially true for the development releases, since each new release contains new code which has not been debugged. Make sure you keep a backup of the modules corresponding to that kernel, as well. If you are installing a new kernel with the same version number as your working kernel, make a backup of your modules directory before you do a ``make modules_install``.h](hXKeep a backup kernel handy in case something goes wrong. This is especially true for the development releases, since each new release contains new code which has not been debugged. Make sure you keep a backup of the modules corresponding to that kernel, as well. If you are installing a new kernel with the same version number as your working kernel, make a backup of your modules directory before you do a }(hjhhhNhNubj)}(h``make modules_install``h]hmake modules_install}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM"hjubh)}(hAlternatively, before compiling, use the kernel config option "LOCALVERSION" to append a unique suffix to the regular kernel version. LOCALVERSION can be set in the "General Setup" menu.h]hAlternatively, before compiling, use the kernel config option “LOCALVERSION” to append a unique suffix to the regular kernel version. LOCALVERSION can be set in the “General Setup” menu.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hjubeh}(h]h ]h"]h$]h&]uh1jhjgubj)}(hIn order to boot your new kernel, you'll need to copy the kernel image (e.g. .../linux/arch/x86/boot/bzImage after compilation) to the place where your regular bootable kernel is found. h]h)}(hIn order to boot your new kernel, you'll need to copy the kernel image (e.g. .../linux/arch/x86/boot/bzImage after compilation) to the place where your regular bootable kernel is found.h]hIn order to boot your new kernel, you’ll need to copy the kernel image (e.g. .../linux/arch/x86/boot/bzImage after compilation) to the place where your regular bootable kernel is found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(hXBooting a kernel directly from a storage device without the assistance of a bootloader such as LILO or GRUB, is no longer supported in BIOS (non-EFI systems). On UEFI/EFI systems, however, you can use EFISTUB which allows the motherboard to boot directly to the kernel. On modern workstations and desktops, it's generally recommended to use a bootloader as difficulties can arise with multiple kernels and secure boot. For more details on EFISTUB, see "Documentation/admin-guide/efi-stub.rst". h]h)}(hXBooting a kernel directly from a storage device without the assistance of a bootloader such as LILO or GRUB, is no longer supported in BIOS (non-EFI systems). On UEFI/EFI systems, however, you can use EFISTUB which allows the motherboard to boot directly to the kernel. On modern workstations and desktops, it's generally recommended to use a bootloader as difficulties can arise with multiple kernels and secure boot. For more details on EFISTUB, see "Documentation/admin-guide/efi-stub.rst".h]hXBooting a kernel directly from a storage device without the assistance of a bootloader such as LILO or GRUB, is no longer supported in BIOS (non-EFI systems). On UEFI/EFI systems, however, you can use EFISTUB which allows the motherboard to boot directly to the kernel. On modern workstations and desktops, it’s generally recommended to use a bootloader as difficulties can arise with multiple kernels and secure boot. For more details on EFISTUB, see “Documentation/admin-guide/efi-stub.rst”.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(hXYIt's important to note that as of 2016 LILO (LInux LOader) is no longer in active development, though as it was extremely popular, it often comes up in documentation. Popular alternatives include GRUB2, rEFInd, Syslinux, systemd-boot, or EFISTUB. For various reasons, it's not recommended to use software that's no longer in active development. h]h)}(hXXIt's important to note that as of 2016 LILO (LInux LOader) is no longer in active development, though as it was extremely popular, it often comes up in documentation. Popular alternatives include GRUB2, rEFInd, Syslinux, systemd-boot, or EFISTUB. For various reasons, it's not recommended to use software that's no longer in active development.h]hX^It’s important to note that as of 2016 LILO (LInux LOader) is no longer in active development, though as it was extremely popular, it often comes up in documentation. Popular alternatives include GRUB2, rEFInd, Syslinux, systemd-boot, or EFISTUB. For various reasons, it’s not recommended to use software that’s no longer in active development.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM;hjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(hChances are your distribution includes an install script and running ``make install`` will be all that's needed. Should that not be the case you'll have to identify your bootloader and reference its documentation or configure your EFI. &h]h)}(hChances are your distribution includes an install script and running ``make install`` will be all that's needed. Should that not be the case you'll have to identify your bootloader and reference its documentation or configure your EFI.h](hEChances are your distribution includes an install script and running }(hj:hhhNhNubj)}(h``make install``h]h make install}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh will be all that’s needed. Should that not be the case you’ll have to identify your bootloader and reference its documentation or configure your EFI.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMAhj6ubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjcubah}(h]h ]h"]h$]h&]uh1hhhhMhjRhhubeh}(h]compiling-the-kernelah ]h"]compiling the kernelah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hLegacy LILO Instructionsh]hLegacy LILO Instructions}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhMGubh)}(hX- If you use LILO the kernel images are specified in the file /etc/lilo.conf. The kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or /boot/bzImage. To use the new kernel, save a copy of the old image and copy the new image over the old one. Then, you MUST RERUN LILO to update the loading map! If you don't, you won't be able to boot the new kernel image. - Reinstalling LILO is usually a matter of running /sbin/lilo. You may wish to edit /etc/lilo.conf to specify an entry for your old kernel image (say, /vmlinux.old) in case the new one does not work. See the LILO docs for more information. - After reinstalling LILO, you should be all set. Shutdown the system, reboot, and enjoy! - If you ever need to change the default root device, video mode, etc. in the kernel image, use your bootloader's boot options where appropriate. No need to recompile the kernel to change these parameters. - Reboot with the new kernel and enjoy. h]j)}(hhh](j)}(hXqIf you use LILO the kernel images are specified in the file /etc/lilo.conf. The kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or /boot/bzImage. To use the new kernel, save a copy of the old image and copy the new image over the old one. Then, you MUST RERUN LILO to update the loading map! If you don't, you won't be able to boot the new kernel image. h]h)}(hXpIf you use LILO the kernel images are specified in the file /etc/lilo.conf. The kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or /boot/bzImage. To use the new kernel, save a copy of the old image and copy the new image over the old one. Then, you MUST RERUN LILO to update the loading map! If you don't, you won't be able to boot the new kernel image.h]hXtIf you use LILO the kernel images are specified in the file /etc/lilo.conf. The kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or /boot/bzImage. To use the new kernel, save a copy of the old image and copy the new image over the old one. Then, you MUST RERUN LILO to update the loading map! If you don’t, you won’t be able to boot the new kernel image.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hReinstalling LILO is usually a matter of running /sbin/lilo. You may wish to edit /etc/lilo.conf to specify an entry for your old kernel image (say, /vmlinux.old) in case the new one does not work. See the LILO docs for more information. h]h)}(hReinstalling LILO is usually a matter of running /sbin/lilo. You may wish to edit /etc/lilo.conf to specify an entry for your old kernel image (say, /vmlinux.old) in case the new one does not work. See the LILO docs for more information.h]hReinstalling LILO is usually a matter of running /sbin/lilo. You may wish to edit /etc/lilo.conf to specify an entry for your old kernel image (say, /vmlinux.old) in case the new one does not work. See the LILO docs for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXAfter reinstalling LILO, you should be all set. Shutdown the system, reboot, and enjoy! h]h)}(hWAfter reinstalling LILO, you should be all set. Shutdown the system, reboot, and enjoy!h]hWAfter reinstalling LILO, you should be all set. Shutdown the system, reboot, and enjoy!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hIf you ever need to change the default root device, video mode, etc. in the kernel image, use your bootloader's boot options where appropriate. No need to recompile the kernel to change these parameters. h]h)}(hIf you ever need to change the default root device, video mode, etc. in the kernel image, use your bootloader's boot options where appropriate. No need to recompile the kernel to change these parameters.h]hIf you ever need to change the default root device, video mode, etc. in the kernel image, use your bootloader’s boot options where appropriate. No need to recompile the kernel to change these parameters.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'Reboot with the new kernel and enjoy. h]h)}(h%Reboot with the new kernel and enjoy.h]h%Reboot with the new kernel and enjoy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMJhjubah}(h]h ]h"]h$]h&]uh1hhhhMJhjthhubeh}(h]legacy-lilo-instructionsah ]h"]legacy lilo instructionsah$]h&]uh1hhhhhhhhMGubh)}(hhh](h)}(hIf something goes wrongh]hIf something goes wrong}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM`ubh)}(hIf you have problems that seem to be due to kernel bugs, please follow the instructions at 'Documentation/admin-guide/reporting-issues.rst'.h]hIf you have problems that seem to be due to kernel bugs, please follow the instructions at ‘Documentation/admin-guide/reporting-issues.rst’.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMbhjhhubh)}(hHints on understanding kernel bug reports are in 'Documentation/admin-guide/bug-hunting.rst'. More on debugging the kernel with gdb is in 'Documentation/process/debugging/gdb-kernel-debugging.rst' and 'Documentation/process/debugging/kgdb.rst'.h]hXHints on understanding kernel bug reports are in ‘Documentation/admin-guide/bug-hunting.rst’. More on debugging the kernel with gdb is in ‘Documentation/process/debugging/gdb-kernel-debugging.rst’ and ‘Documentation/process/debugging/kgdb.rst’.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMehjhhubeh}(h]if-something-goes-wrongah ]h"]if something goes wrongah$]h&]uh1hhhhhhhhM`ubeh}(h]((linux-kernel-release-6-x-http-kernel-orgheh ]h"](-linux kernel release 6.x readmeeh$]h&]uh1hhhhhhhhKexpect_referenced_by_name}jShsexpect_referenced_by_id}hhsubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj}error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}h]hasnameids}(jShjRjOj6j3jujrjjj\jYjjj@j=jOjLjqjnjjjJjGu nametypes}(jSjRj6jujj\jj@jOjqjjJuh}(hhjOhj3hjrj9jjxjYjjj_j=jjLjCjnjRjjtjGju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages]hsystem_message)}(hhh]h)}(hhh]h,Hyperlink target "readme" is not referenced.}hjsbah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1juba transformerN include_log] decorationNhhub.