[relnotes] [Fedora Project Wiki] Update of "Docs/Beats/Kernel" by KarstenWade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Fedora Project Wiki" for change notification.

The following page has been changed by KarstenWade:
http://fedoraproject.org/wiki/Docs/Beats/Kernel

The comment on the change is:
adding links to new pages of content from lwang

------------------------------------------------------------------------------
  
  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
  }}}
  
@@ -20, +20 @@

  
  To retrieve a log of changes to the package, run the following command:
  
-  {{{
+ {{{
  rpm -q --changelog kernel-<version>
  }}}
  
@@ -43, +43 @@

  
  You may install sources for all kernel flavors at the same time. The files are installed in the `/usr/src/kernels/<version>-[xen0|xenU|kdump]-<arch>/` tree. Use the following command:
  
-  {{{
+ {{{
  su -c 'yum install kernel-{xen0,xenU,kdump}-devel'
  }}}
     
@@ -55, +55 @@

   || {i} '''PowerPC Kernel Support''' ||
   || There is no support for Xen or kdump for the PowerPC architecture in Fedora Core [[GetVal(DocsDict,BeatsVer)]]. ||
  
+ == Kexec and Kdump ==
+ 
+ Kexec and kdump are new features in the 2.6 mainstream kernel. Major portions
+ of these features are now in Fedora Core 5. Currently these features are available on x86, x86_64, and ppc64 platforms.
+ 
+ The purpose of these features is to ensure faster boot up and creation of
+ reliable kernel vmcores for diagnostic purposes.  Instructions on the kexec and kdump pages verify that the features work on your systems.  For more information refer to:
+ 
+ http://fedoraproject.org/wiki/Kernel/kexec
+ http://fedoraproject.org/wiki/Kernel/kdump
+ 
  == 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 which are specific to Fedora. 
@@ -63, +74 @@

  
  Many of the tutorials, examples, and textbooks about Linux kernel development assume the kernel sources are installed under the `/usr/src/linux/` directory. If you make a symbolic link, as shown below, you should be able to use those learning materials with the Fedora Core packages. Install the appropriate kernel sources, as shown earlier, and then run the following command:
  
-  {{{
+ {{{
  su -c 'ln -s /usr/src/kernels/kernel-<all-the-rest> /usr/src/linux'
  }}}
  
@@ -83, +94 @@

  
   1. Prepare a RPM package building environment in your home directory.  Run the following commands:
  
-   {{{
+ {{{
  su -c 'yum install fedora-rpmdevtools'
  fedora-buildrpmtree
  }}}
@@ -96, +107 @@

    * the HTTP or FTP site where you got the kernel package
    * by running the following command: 
  
-    {{{
+ {{{
  su -c 'yum install yum-utils'
  su -c 'yumdownloader --source kernel'
  }}}
@@ -105, +116 @@

  
   1. Install `kernel-<version>.src.rpm` using the command: 
  
-   {{{
+ {{{
  rpm -Uvh kernel-<version>.src.rpm`
  }}}
  
@@ -116, +127 @@

  
   1. Prepare the kernel sources using the commands:
  
-   {{{
+ {{{
  cd ~/rpmbuild/SPECS
  rpmbuild -bp --target $(uname -m) kernel-2.6.spec
  }}}
@@ -125, +136 @@

  
   1. The configurations for the specific kernels shipped in Fedora Core [[GetVal(DocsDict,BeatsVer)]] are in the `configs/` directory. For example, the i686 SMP configuration file is named `configs/kernel-<version>-i686-smp.config`. Issue the following command to place the desired configuration file in the proper place for building:
  
-   {{{
+ {{{
  cp configs/<desired-config-file> .config
  }}}
  
@@ -135, +146 @@

  
    For example, if the {{{uname -r}}} returns the string `2.6.15-1.1948_FC5`, change the `EXTRAVERSION` definition from this:
  
-   {{{
+ {{{
  EXTRAVERSION = -prep
  }}}
  
    to this:
  
-   {{{
+ {{{
  EXTRAVERSION = -1.1948_FC5
  }}}
  
@@ -149, +160 @@

  
   1. Run the following command:
  
-   {{{
+ {{{
  make oldconfig
  }}}
  
@@ -159, +170 @@

  
  An exploded source tree is not required to build a kernel module, such as your own device driver, against the currently in-use kernel. For example, to build the `foo.ko` module, create the following `Makefile` in the directory containing the `foo.c` file:
  
-  {{{
+ {{{
  obj-m := foo.o
  
  KDIR  := /lib/modules/$(shell uname -r)/build


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Gnome Users]     [KDE Users]

  Powered by Linux