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 PaulWFrields: http://fedoraproject.org/wiki/Docs/Beats/Kernel The comment on the change is: Simplify and put the steps in proper order; code must be indented for numbering ------------------------------------------------------------------------------ 1. Prepare a RPM package building environment in your home directory. Run the following commands: - {{{ + {{{ - su -c 'yum install fedora-rpmdevtools' + su -c 'yum install fedora-rpmdevtools yum-utils' fedora-buildrpmtree }}} Enter the `root` password when prompted. - 1. Obtain the `kernel-<version>.src.rpm` file from one of the following sources: + 1. Enable the appropriate `source` repository definition. In the case of the kernel released with Fedora Core 5, enable `core-source` by editing the file `/etc/yum.repos.d/fedora-core.repo`, setting the option `enabled=1`. In the case of update or testing kernels, enable the `source` definitions in `/etc/yum.repos.d/fedora-updates.repo` or `/etc/yum.repos.d/fedora-updates-testing.repo` as appropriate. + 1. Download the `kernel-<version>.src.rpm` file: - * the SRPMS directory on the appropriate SRPMS CD iso image - * the HTTP or FTP site where you got the kernel package - * by running the following command: - {{{ + {{{ - su -c 'yum install yum-utils' yumdownloader --source kernel }}} Enter the `root` password when prompted. - For the {{{yumdownloader}}} command to work you must first enable the appropriate `source` repository definition. You do not need to be root to use {{{yumdownloader}}}, it works as a normal user once you have set the correct `source` repositories. In the case of the kernel released with Fedora Core 5, you must enable `core-source` by editing the file `/etc/yum.repos.d/fedora-core.repo`, setting `enabled=1` in the `[core-source]` repository definition. For update kernels you must do a similar edit to the file `fedora-updates.repo`, and possibly `fedora-updates-testing.repo` if you are using a testing kernel. - 1. Install `kernel-<version>.src.rpm` using the command: - {{{ + {{{ rpm -Uvh kernel-<version>.src.rpm` }}} @@ -130, +125 @@ 1. Prepare the kernel sources using the commands: - {{{ + {{{ cd ~/rpmbuild/SPECS rpmbuild -bp --target $(uname -m) kernel-2.6.spec }}} @@ -139, +134 @@ 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 }}} @@ -149, +144 @@ 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 }}} @@ -163, +158 @@ 1. Run the following command: - {{{ + {{{ make oldconfig }}}