Documentation Kernel Beat

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
m (1 revision(s))
(Cleanup from import)
Line 1: Line 1:
<pre>#!html
+
==Linux Kernel==
==Linux Kernel==</pre>
+
  
This section covers changes and important information regarding the {{Template:DocsDict/KernelVer}}
+
This section covers changes and important information regarding the {{Template:DocsDict/KernelVer}} based kernel in Fedora {{Template:DocsDict/BeatsVer}}.  The {{Template:DocsDict/KernelVer}} kernel includes:
based kernel in Fedora {{Template:DocsDict/BeatsVer}}
+
.  The {{Template:DocsDict/KernelVer}}
+
  kernel includes:
+
 
    
 
    
 
<!-- The following is not new but we can retain for people moving to Fedora 9 from Fedora 7.  Remove for Fedora 10.  PWF 2008-03-17
 
<!-- The following is not new but we can retain for people moving to Fedora 9 from Fedora 7.  Remove for Fedora 10.  PWF 2008-03-17
Line 14: Line 10:
 
* The kernel spec file is now named <code>kernel.spec</code> rather than <code>kernel-2.6.spec</code>.
 
* The kernel spec file is now named <code>kernel.spec</code> rather than <code>kernel-2.6.spec</code>.
 
* The kernel spec file has new macros that ease the kernel building process. Refer to http://fedoraproject.org/wiki/Docs/CustomKernel for further information.
 
* The kernel spec file has new macros that ease the kernel building process. Refer to http://fedoraproject.org/wiki/Docs/CustomKernel for further information.
* The kernel in Fedora {{Template:DocsDict/BeatsVer}}
+
* The kernel in Fedora {{Template:DocsDict/BeatsVer}} no longer loads modules by default for ISA sound cards.  Load the module by hand using the command <code>modprobe module-name</code>, or put an entry in <code>/etc/modprobe.conf</code>.  For example, for the Creative SoundBlaster AWE64, add the following entry:
  no longer loads modules by default for ISA sound cards.  Load the module by hand using the command <code>modprobe module-name</code>, or put an entry in <code>/etc/modprobe.conf</code>.  For example, for the Creative SoundBlaster AWE64, add the following entry:
+
<pre>install snd-sbawe
  <pre>install snd-sbawe
+
 
</pre>
 
</pre>
 
<!-- End stuff to be removed for Fedora 10.  PWF 2008-03-17
 
<!-- End stuff to be removed for Fedora 10.  PWF 2008-03-17
 
-->
 
-->
 
* The Fedora kernel offers <code>paravirt_ops</code> support in <code>domU</code>, as part of the kernel team's efforts to reduce the work required to produce current Xen kernels.
 
* The Fedora kernel offers <code>paravirt_ops</code> support in <code>domU</code>, as part of the kernel team's efforts to reduce the work required to produce current Xen kernels.
* Xen fully virtualized guests can directly boot a kernel and <code>initrd</code> image and pass kernel boot args.  For more details refer to [http://fedoraproject.org/wiki/Features/XenFullvirtKernelBoot] .
+
* Xen fully virtualized guests can directly boot a kernel and <code>initrd</code> image and pass kernel boot args.  For more details refer to [http://fedoraproject.org/wiki/Features/XenFullvirtKernelBoot].
  
 
=== Version ===
 
=== Version ===
Line 31: Line 26:
 
To obtain a list of these patches, download the source RPM package and run the following command against it:
 
To obtain a list of these patches, download the source RPM package and run the following command against it:
  
<pre>rpm -qpl kernel-<version>.src.rpm
+
<pre>rpm -qpl kernel-<version>.src.rpm</pre>
</pre>
+
  
 
=== Changelog ===
 
=== Changelog ===
Line 38: Line 32:
 
To retrieve a log of changes to the package, run the following command:
 
To retrieve a log of changes to the package, run the following command:
  
<pre>rpm -q --changelog kernel-<version>
+
<pre>rpm -q --changelog kernel-<version></pre>
</pre>
+
  
 
If you need a user friendly version of the changelog, refer to http://wiki.kernelnewbies.org/LinuxChanges. A short and full diff of the kernel is available from http://kernel.org/git. The Fedora version kernel is based on the Linus tree.
 
If you need a user friendly version of the changelog, refer to http://wiki.kernelnewbies.org/LinuxChanges. A short and full diff of the kernel is available from http://kernel.org/git. The Fedora version kernel is based on the Linus tree.
Line 49: Line 42:
 
{{Anchor|Kernel_Flavors}}
 
{{Anchor|Kernel_Flavors}}
  
Fedora {{Template:DocsDict/BeatsVer}}
+
Fedora {{Template:DocsDict/BeatsVer}} includes the following kernel builds:
  includes the following kernel builds:
+
 
    
 
    
 
* Native kernel, for use in most systems.  Configured sources are available in the <code>kernel-devel</code> package.
 
* Native kernel, for use in most systems.  Configured sources are available in the <code>kernel-devel</code> package.
Line 60: Line 52:
 
You may install kernel headers for all four kernel flavors at the same time. The files are installed in the <code>/usr/src/kernels/<version>[-PAE|-xen|-kdump] -<arch>/</code> tree. Use the following command:
 
You may install kernel headers for all four kernel flavors at the same time. The files are installed in the <code>/usr/src/kernels/<version>[-PAE|-xen|-kdump] -<arch>/</code> tree. Use the following command:
  
<pre>su -c 'yum install kernel{,-PAE,-xen,-kdump}-devel'
+
<pre>su -c 'yum install kernel{,-PAE,-xen,-kdump}-devel'</pre>
</pre>
+
  
 
Select one or more of these flavors, separated by commas and no spaces, as appropriate.  Enter the root password when prompted.
 
Select one or more of these flavors, separated by commas and no spaces, as appropriate.  Enter the root password when prompted.
  
Admonition("note","x86 Kernel Includes Kdump","Both the x86_64 and the i686 kernels are relocatable, so they no longer require a separate kernel for kdump capability. PPC64 still requires a separate kdump kernel.") 
+
{{Admon/note|x86 Kernel Includes Kdump|Both the x86_64 and the i686 kernels are relocatable, so they no longer require a separate kernel for kdump capability. PPC64 still requires a separate kdump kernel.}}
  
Admonition("note","Default Kernel Provides SMP","There is no separate SMP kernel available for Fedora on i386, x86_64, and ppc64. Multiprocessor support is provided by the native kernel.") 
+
{{Admon/note|Default Kernel Provides SMP|There is no separate SMP kernel available for Fedora on i386, x86_64, and ppc64. Multiprocessor support is provided by the native kernel.}}
  
Admonition("note", "PowerPC Kernel Support", "There is no support for Xen or kdump for the PowerPC architecture in Fedora. 32-bit PowerPC does still have a separate SMP kernel.") 
+
{{Admon/note|PowerPC Kernel Support|There is no support for Xen or kdump for the PowerPC architecture in Fedora. 32-bit PowerPC does still have a separate SMP kernel.}}
  
 
=== Preparing for Kernel Development ===
 
=== Preparing for Kernel Development ===
  
Fedora {{Template:DocsDict/BeatsVer}}
+
Fedora {{Template:DocsDict/BeatsVer}} does not include the kernel-source package provided by older versions since only the kernel-devel package is required now to build external modules. Configured sources are available, as described [#Kernel_Flavors above].
  does not include the kernel-source package provided by older versions since only the kernel-devel package is required now to build external modules. Configured sources are available, as described [#Kernel_Flavors above] .
+
 
    
 
    
Admonition("important", "Custom Kernel Building", "For information on kernel development and working with custom kernels, refer to http://fedoraproject.org/wiki/Docs/CustomKernel.") 
+
{{Admon/important|Custom Kernel Building|For information on kernel development and working with custom kernels, refer to http://fedoraproject.org/wiki/Docs/CustomKernel.}}
  
 
=== Reporting Bugs ===
 
=== Reporting Bugs ===
  
 
Refer to http://kernel.org/pub/linux/docs/lkml/reporting-bugs.html for information on reporting bugs in the Linux kernel.  You may also use http://bugzilla.redhat.com for reporting bugs that are specific to Fedora.
 
Refer to http://kernel.org/pub/linux/docs/lkml/reporting-bugs.html for information on reporting bugs in the Linux kernel.  You may also use http://bugzilla.redhat.com for reporting bugs that are specific to Fedora.

Revision as of 19:27, 14 June 2008

Contents

Linux Kernel

This section covers changes and important information regarding the 2.6.27 based kernel in Fedora 21. The 2.6.27 kernel includes:

  • Tickless support for x86 64bit systems (32 bit was added previously), which greatly improves power management.
  • Some elements of the realtime kernel project.
  • The kernel has a new version naming scheme to more closely match the upstream version naming scheme.
  • The kernel spec file is now named kernel.spec rather than kernel-2.6.spec.
  • The kernel spec file has new macros that ease the kernel building process. Refer to http://fedoraproject.org/wiki/Docs/CustomKernel for further information.
  • The kernel in Fedora 21 no longer loads modules by default for ISA sound cards. Load the module by hand using the command modprobe module-name, or put an entry in /etc/modprobe.conf. For example, for the Creative SoundBlaster AWE64, add the following entry:
install snd-sbawe
  • The Fedora kernel offers paravirt_ops support in domU, as part of the kernel team's efforts to reduce the work required to produce current Xen kernels.
  • Xen fully virtualized guests can directly boot a kernel and initrd image and pass kernel boot args. For more details refer to [1].

Version

Fedora may include additional patches to the kernel for improvements, bug fixes, or additional features. For this reason, the Fedora kernel may not be line-for-line equivalent to the so-called vanilla kernel from the kernel.org web site:

http://www.kernel.org/

To obtain a list of these patches, download the source RPM package and run the following command against it:

rpm -qpl kernel-<version>.src.rpm

Changelog

To retrieve a log of changes to the package, run the following command:

rpm -q --changelog kernel-<version>

If you need a user friendly version of the changelog, refer to http://wiki.kernelnewbies.org/LinuxChanges. A short and full diff of the kernel is available from http://kernel.org/git. The Fedora version kernel is based on the Linus tree.

Customizations made for the Fedora version are available from http://cvs.fedoraproject.org .

Kernel Flavors

Fedora 21 includes the following kernel builds:

  • Native kernel, for use in most systems. Configured sources are available in the kernel-devel package.
  • The kernel-PAE, for use in 32-bit x86 systems with more than 4GB of RAM, or with CPUs that have a NX (No eXecute) feature. This kernel support both uniprocessor and multi-processor systems. Configured sources are available in the kernel-PAE-devel package.
  • Virtualization kernel for use with the Xen emulator package. Configured sources are available in the kernel-xen-devel package.

You may install kernel headers for all four kernel flavors at the same time. The files are installed in the /usr/src/kernels/<version>[-PAE|-xen|-kdump] -<arch>/ tree. Use the following command:

su -c 'yum install kernel{,-PAE,-xen,-kdump}-devel'

Select one or more of these flavors, separated by commas and no spaces, as appropriate. Enter the root password when prompted.

Note.png
x86 Kernel Includes Kdump
Both the x86_64 and the i686 kernels are relocatable, so they no longer require a separate kernel for kdump capability. PPC64 still requires a separate kdump kernel.
Note.png
Default Kernel Provides SMP
There is no separate SMP kernel available for Fedora on i386, x86_64, and ppc64. Multiprocessor support is provided by the native kernel.
Note.png
PowerPC Kernel Support
There is no support for Xen or kdump for the PowerPC architecture in Fedora. 32-bit PowerPC does still have a separate SMP kernel.

Preparing for Kernel Development

Fedora 21 does not include the kernel-source package provided by older versions since only the kernel-devel package is required now to build external modules. Configured sources are available, as described [#Kernel_Flavors above].

Important.png
Custom Kernel Building
For information on kernel development and working with custom kernels, refer to http://fedoraproject.org/wiki/Docs/CustomKernel.

Reporting Bugs

Refer to http://kernel.org/pub/linux/docs/lkml/reporting-bugs.html for information on reporting bugs in the Linux kernel. You may also use http://bugzilla.redhat.com for reporting bugs that are specific to Fedora.