zoukankan      html  css  js  c++  java
  • install kernel source for fedora8

    install kernel source for fedora8
    来源: ChinaUnix博客  日期: 2008.07.10 20:43 (共有0条评论) 我要评论
     
    Install Kernel Source
    07 November 2007
    Installing the kernel source is typically NOT needed unless you wish to
    re-compile your kernel or for some special development. However in some
    cases the
    kernel headers
    may be required.
    There are 3 basic steps involved in installing the kernel source.
  • Download the desired kernel source (matching your current kernel if required)
  • Installing the SRC.RPM package
  • Using rpmbuild to prepare the source into a usable state
    NOTE: Following these steps will consume at least 400MB of disk space!
    1. Download the Kernel Source
    Obtaining Kernel Source (for default Fedora 8 kernel)
    The default kernel source can be found through any Fedora mirror. Look in the
    directory "/source/SRPMS/" under the "/8/" directory . For example:
    http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Fedora/source/SRPMS/
    .
    kernel-2.6.23.1-42.fc8.src.rpm         31-Oct-2007 00:06          46M
           
    Obtaining Kernel Source (for an updated Fedora 8 kernel)
    If you updated your kernel, then the typically the last 2 or 3 releases of the
    source of the kernel will be available though the Fedora updates.
    IF YOU REQUIRE you can (try to) match the kernel source with your running kernel.
    Look in the update directory on most Fedora mirror sites. For example:
    http://download.fedora.redhat.com/pub/fedora/linux/updates/8/SRPMS/
    .
    Obtaining Kernel Source through 'yum' (for latest Fedora 8 kernel)
    There are yum utilities which will download the LATEST kernel source. If it does not find anything, then there are no updates (yet) use the DEFAULT Fedora kernel source.
    [mirandam@charon ~]$
    sudo
    yum install yum-utils
    [mirandam@charon ~]$ cd downloads
    [mirandam@charon downloads]$ yumdownloader --source kernel
    2. Install the Kernel Source
    Install the kernel.src.rpm that you chose to download in the previous steps.
    [mirandam@charon downloads]$ sudo rpm -ivh kernel-2.6.23.1-42.fc8.src.rpm
       1:kernel                 ########################################### [100%]
    Ignore group kojibuilder does not exist or user kojibuilder does not exist warnings.
    3. Prepare the Source
    To prepare the source to be useable:
    [mirandam@charon downloads]$ sudo rpmbuild -bp --target=$(uname -m) /usr/src/redhat/SPECS/kernel.spec
    The source files will be properly located in /usr/src/redhat/BUILD/kernel-2.6.23/.
    There are 2 useful directories:
  • linux-2.6.23.ARCH/
           This will have the standard kernel.org kernel WITH Fedora patches and updates.
           The ARCH architecture will match the output of uname -m, usually i686.
           You may use noarch for the --target= option if you wish.
  • vanilla/
           This will have the standard kernel.org kernel ONLY (no patches or updates).
    NOTE: The process Fedora uses to build and configure kernels can be found in greater depth on the
    Fedora Wiki
    . The above information is very basic and meant to allow access to the source and not necessarily build it.
                   
                   
                   

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1807/showart_1078335.html
  • 相关阅读:
    php调用dll的实例操作动画
    刚用Mootools写了一个随着鼠标移动而背景图也跟着移动的东西
    Jquery内存溢出实况,录像会说话
    自己写个扩展把Mootools的语法改的和Jquery的语法一模一样
    一个PHP的QRcode类,与大家分享
    使用Mootools动态添加Css样式表代码,兼容各浏览器
    分享一個用Mootools剛寫的小玩意
    一周学会Mootools 1.4中文教程:(2)函数
    计算机精品学习资料大放送
    30天学会 MooTools 教学(3): 数组管理DOM元素
  • 原文地址:https://www.cnblogs.com/SunWentao/p/1310200.html
Copyright © 2011-2022 走看看